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

Bug 371205

Summary: [server] /git/commit/ returns 500 code when commit sha1 does not exist
Product: [ECD] Orion Reporter: Szymon Brandys <Szymon.Brandys>
Component: GitAssignee: Tomasz Zarna <tomasz.zarna>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: 0.4   
Target Milestone: 0.5 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Szymon Brandys CLA 2012-02-10 06:37:32 EST
When I use wrong sha1 in a call like this:
GET http://localhost:8080/gitapi/commit/2be0158b12bae37a0183bda4bb2944e19130dd1f/file/ag/?page=1&pageSize=1
I get 500 instead of 404
Comment 1 Tomasz Zarna CLA 2012-03-19 09:21:27 EDT
This works fine for me, it must have been fixed in the meantime. Added a test verifying that 404 is returned: 1a44934a9d7c9df1560ce121d7c6e902d9ca2d76