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

Bug 368434

Summary: [server] Cannot get details of a lightweight tag
Product: [ECD] Orion Reporter: Szymon Brandys <Szymon.Brandys>
Component: GitAssignee: Tomasz Zarna <tomasz.zarna>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: malgorzata.tomczyk
Version: 0.3   
Target Milestone: 0.4   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Szymon Brandys CLA 2012-01-12 05:44:20 EST
GET on /gitapi/tag/file/{path} works fine and returns the list of tags.
However GET on /gitapi/tag/{tagId}/file/{path} returns something like this:

{
    "Severity": "Error",
    "Message": "Failed to handle tag request for v20120110-2150/file/ag/",
    "HttpCode": 500,
    "Code": 0,
    "DetailedMessage": "Object 96a4d0fa85b0ef4e3f2b91f74292f53034e5c9f9 is not a tag."
}

Nothing on the server console.
Comment 1 Tomasz Zarna CLA 2012-01-27 09:19:34 EST
The problem exists only for lightweight tags (updated the summary), for tags created with Orion (annotated tags) this works fine.
Comment 2 Tomasz Zarna CLA 2012-01-30 06:54:39 EST
Fixed with 9c0dd2d7cc5a9735419c4fd266189bcce55eecde