Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 339341 - [client] No status for subfolders
Summary: [client] No status for subfolders
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 0.2   Edit
Assignee: Szymon Brandys CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-09 07:37 EST by Szymon Brandys CLA
Modified: 2011-09-01 11:42 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.