Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 382001

Summary: Git status gives older version of diff.
Product: [ECD] Orion Reporter: libing wang <libingw>
Component: GitAssignee: Project Inbox <orion.git-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: major    
Priority: P3 CC: susan, Szymon.Brandys
Version: 0.4   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description libing wang CLA 2012-06-07 10:07:04 EDT
Yestoday Susan told me she has been experiencing this issue quite frequently but sh could not find a reproducible step.
Today when I worked on my self hosting on orion.eclipse.org, I hit this issue.

I was trying to change /org.eclipse.orion.client.core/web/orion/compare/nls/root/messages.js in order to see if DBCS is working in tooltips.

I changed {"Open the compare page": "Open the compare page"} into {"Open the compare page": "違いを見る""}, the first time.

The button shows me "undefine" in UI . Then I went to git status page I realized that there is a typo: I put additional ".
Now I removed that additional " and tooltip shows me the correct Japanese character.

In git status page, I refreshed the page several times and it constantly shows me the older version of diff with the additional ".

I captured the DIFF response from the server. It gives back the older version of diff:

"diff --git a/bundles/org.eclipse.orion.client.core/web/orion/compare/nls/root/messages.js b/bundles/org.eclipse.orion.client.core/web/orion/compare/nls/root/messages.js
index 7bb4953..7d7d66f 100644
--- a/bundles/org.eclipse.orion.client.core/web/orion/compare/nls/root/messages.js
+++ b/bundles/org.eclipse.orion.client.core/web/orion/compare/nls/root/messages.js
@@ -24,7 +24,7 @@
 	"Previous diff change": "Previous diff change",
 	"Copy the link URL:": "Copy the link URL:",
 	"Compare": "Compare",
-	"Open the compare page": "Open the compare page",
+	"Open the compare page": "違いを見る"",
 	"fetching...": "fetching...",
 	"There are unsaved changes.": "There are unsaved changes.",
 	"ERROR: ": "ERROR: ",
"
Comment 1 libing wang CLA 2012-06-07 10:11:12 EDT
After 10-15 minutes, when I finished opening this bug, I refresh the git status page again I got the right DIFF.
Comment 2 libing wang CLA 2012-06-07 10:20:28 EDT
OK, I changed the file again and I could reproduce it in the same browser.
I was using Chrome. If I change to FF right away, I can see the new DIFF.
Seems that the diff provider(service) is caching something. Not sure though...
As changing browser makes it work, I think it is a caching issue instead of server issue.
Comment 3 Susan McCourt CLA 2012-06-07 10:57:37 EDT
I'm pretty sure I see this only on Chrome.
It's a similar set of steps, where I opened status already, then changed the file, then reloaded the status page.
Comment 4 John Arthorne CLA 2015-05-05 14:44:08 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:

https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html