Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368434 - [server] Cannot get details of a lightweight tag
Summary: [server] Cannot get details of a lightweight tag
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Git (show other bugs)
Version: 0.3   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.4   Edit
Assignee: Tomasz Zarna CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-12 05:44 EST by Szymon Brandys CLA
Modified: 2012-01-30 06:54 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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