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

Bug 355508

Summary: [server] Locations in Commit JSONs are wrong
Product: [ECD] Orion Reporter: Szymon Brandys <Szymon.Brandys>
Component: GitAssignee: Tomasz Zarna <tomasz.zarna>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 0.3 M2   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
mylyn/context/zip none

Description Szymon Brandys CLA 2011-08-23 10:03:27 EDT
master 2011, Aug 23

Steps:

1) Clone org.eclipse.orion.client repo to your Orion workspace

2) Navigate to a file and open Git Log for it

3) One of calls is something like:
http://localhost:8080/gitapi/commit/master/file/C/bundles/org.eclipse.orion.client.git/web/orion/git/git-clone-details.js?page=1
which returns the commit list.

4) In the returned JSON check Children and see that all commits have Locations 
/gitapi/commit/[commitId]/file/C/. It should be rather /gitapi/commit/[commitId]/file/C/bundles/org.eclipse.orion.client.git/web/orion/git/git-clone-details.js

The same problem is with ContentLocation and DiffLocation.
Comment 1 Tomasz Zarna CLA 2011-08-25 11:33:13 EDT
Created attachment 202162 [details]
mylyn/context/zip
Comment 2 Tomasz Zarna CLA 2011-08-25 11:40:09 EDT
Fixed with http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=ee118e4f14fba0942c06acbea32b3c2e10ec7b20 and 3 previous commits. Sorry for not squashing them.