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

Bug 350265

Summary: [server][log] ContentLocation from git log returns 405
Product: [ECD] Orion Reporter: Tomasz Zarna <tomasz.zarna>
Component: GitAssignee: Project Inbox <orion.git-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: Szymon.Brandys
Version: 0.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Tomasz Zarna CLA 2011-06-24 10:07:29 EDT
Steps:
1. List commits for a repository, GET  http://localhost:8080/gitapi/commit/HEAD/file/q0/?parts=log
2. Pick a commit and get its ContentLocation: http://localhost:8080/gitapi/commit/91e0cd59fcf0be00fb9d2469e4eb06e7620e97c9/file/q0/?parts=body
3. Follow the link with GET
=> 
HTTP ERROR 405
Problem accessing /gitapi/commit/91e0cd59fcf0be00fb9d2469e4eb06e7620e97c9/file/q0/. Reason:
HTTP method GET is not supported by this URL

ContentLocations like that are meant for retrieving content of a file in a commit. The link from 2. points to a folder (repository root) and this is probably the reason it fails.
Comment 1 John Arthorne CLA 2015-05-05 15:48:23 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
Comment 2 John Arthorne CLA 2015-05-05 16:01:41 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