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

Bug 339341

Summary: [client] No status for subfolders
Product: [ECD] Orion Reporter: Szymon Brandys <Szymon.Brandys>
Component: ClientAssignee: Szymon Brandys <Szymon.Brandys>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: libingw, tomasz.zarna
Version: 0.2   
Target Milestone: 0.2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Szymon Brandys CLA 2011-03-09 07:37:35 EST
Steps:

I have the following folder structure in my workspace:
- folderA
	|- folderB
		| - fileC.txt
		
folderA points at a Git repo.

1) Modify fileC.txt and use 'Git Status' for 'folderA'. You will see the Status UI with one change to stage.
2) Use 'Git Status' action on 'folderB' now. No change to stage now.

It seems to be a problem with the server.

GET http://localhost:8080/git/status/file/folderA/folderB has no changes in the response.

{
  "Added": [],
  "Changed": [],
  "Missing": [],
  "Modified": [],
  "Removed": [],
  "Untracked": []
}
Comment 1 Tomasz Zarna CLA 2011-03-09 12:36:47 EST
The URI should be "http://localhost:8080/git/status/file/folderA/folderB/" with a trailing separator. I must have been lost on the client side since "Git"/"StatusLocation" for a folder looks like this: "http://localhost:8080/git/status/file/{id}/folder/"
Comment 2 Tomasz Zarna CLA 2011-03-09 12:41:33 EST
I've updated org.eclipse.orion.server.tests.servlets.git.GitStatusTest.testStatusWithPath() to verify the above -- 9437c3023d13828f6ccf998a4035d6734c00ee76.
Comment 3 Szymon Brandys CLA 2011-03-10 04:57:52 EST
I guess it was a problem in git-status.html somewhere. It looks like Libing or someone else fixed that in the meantime.