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

Bug 348775

Summary: [server][git]Error 500 on git diff when repository is in subfolder
Product: [ECD] Orion Reporter: Malgorzata Janczarska <malgorzata.tomczyk>
Component: ClientAssignee: Tomasz Zarna <tomasz.zarna>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: libingw
Version: 0.2Flags: malgorzata.tomczyk: review+
Target Milestone: 0.2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
mylyn/context/zip none

Description Malgorzata Janczarska CLA 2011-06-08 12:23:36 EDT
1. Clone a reporitory into a subfolder of a project
2. Go to git log for the repository
3. Select a commit on UI, to open commit details (on the right)
4. In "Commit diffs" section in commit details click "Shof diff" action on the right of the file name
5. Compare editory opens with no content and error message for each site (example: Unable to load /gitapi/diff/92590403058b6f1cfbf0c432674fa3b56fe9821e..86ee7ffe99a716bd4826de6b39436d0535883903/file/a/bundles/org.eclipse.orion.client.core/web/orion/pluginregistry.js?parts=diff status:500)
In console I can see that GET http://localhost:8080/gitapi/diff/92590403058b6f1cfbf0c432674fa3b56fe9821e..86ee7ffe99a716bd4826de6b39436d0535883903/file/a/bundles/org.eclipse.orion.client.core/web/orion/pluginregistry.js?parts=diff is made and the response is 500 with message:
Failed to generate diff for 92590403058b6f1cfbf0c432674fa3b56fe9821e..86ee7ffe99a716bd4826de6b39436d0535883903/file/a/bundles/org.eclipse.orion.client.core/web/orion/pluginregistry.js
Comment 1 Tomasz Zarna CLA 2011-06-09 10:16:17 EDT
Created attachment 197697 [details]
mylyn/context/zip