Bug 169757 - support viewing and retrieving attachments
Summary: support viewing and retrieving attachments
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: 1.0   Edit
Hardware: PC Linux
: P2 enhancement with 2 votes (vote)
Target Milestone: 2.0 M3   Edit
Assignee: Steffen Pingel CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2007-01-06 07:57 EST by Sami Siren CLA
Modified: 2007-05-24 01:50 EDT (History)
3 users (show)

See Also:


Attachments
mylar/context/zip (2.29 KB, application/octet-stream)
2007-01-21 19:51 EST, Mik Kersten CLA
no flags Details
mylar/context/zip (17.31 KB, application/octet-stream)
2007-05-05 22:25 EDT, Steffen Pingel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sami Siren CLA 2007-01-06 07:57:08 EST
Attachements are not visible from ui. Tested this on 1.0 and 1.0.1 against apache jira instance. 

Eclipse Version: 3.3.0
Comment 1 Mik Kersten CLA 2007-01-21 19:51:02 EST
The Jira Connector does not currently support attachments, as these are not supported by the Jira API that we are using (also see bug 165389).  For now I have removed the attachments table from the Jira task editor.
Comment 2 Mik Kersten CLA 2007-01-21 19:51:05 EST
Created attachment 57231 [details]
mylar/context/zip
Comment 3 Steffen Pingel CLA 2007-02-14 11:14:56 EST
At least recent JIRA versions seem to include attachment information in the XML/RSS view of the ticket so there is hope that this can be integrated at some point.
Comment 4 Papick G. Taboada CLA 2007-03-18 13:48:49 EDT
It seems that version 3.8 has fixed the problem, I am not sure.

@ Atlassian

  http://jira.atlassian.com/browse/JRA-11180

@ Jira Dashboard

  http://developer.atlassian.com/jira/browse/JDB-10

Hope this helps to get it implemented 4 jira!
Comment 5 Steffen Pingel CLA 2007-03-18 14:08:36 EDT
Unfortunately the API changes will only be available in JIRA 3.8 and later so we won't be able to use it for the Mylar connector which currently maintains backwards compatibility up to JIRA 3.3.3.

It should be fairly straight forward to enhance the RSS parser to extract attachment information and download attachments from the web interface. Uploading can implemented through SOAP (or through the web interface also).
Comment 6 Mik Kersten CLA 2007-03-18 22:34:25 EDT
Steffen: hopefully we should be able to support attachments on 3.8 and later only while maintaining the core functionality backwards compatible.  The easiest way to do this is probably to have the attach/retrieve fail with a decent message that says 3.8 or later is needed for this functionality.
Comment 7 Jörg Thönnes CLA 2007-03-30 18:14:57 EDT
Implementing this feature would be greatly increase the collaboration in the www.quickfixj.org open source project.
Comment 8 Steffen Pingel CLA 2007-05-05 22:25:37 EDT
Implemented attachment support. 

Unfortunately JIRA does not support attachment filenames that contain '%' characters so attaching context does not yet work. Also JIRA does not allow a description for an attachment so we will need to rely on the filename to detect contexts.
Comment 9 Steffen Pingel CLA 2007-05-05 22:25:39 EDT
Created attachment 66015 [details]
mylar/context/zip
Comment 10 Steffen Pingel CLA 2007-05-06 17:05:58 EDT
Added detection code for context attachments that changes the filename to mylar-context.zip.
Comment 11 Mik Kersten CLA 2007-05-08 22:08:59 EDT
Wow!

Steffen: could you please file a bug on our use of the URL encoding (% symbols)?  We may want to get rid of that in the framework.
Comment 12 Eugene Kuleshov CLA 2007-05-23 16:43:51 EDT
Weird. I don't see attachments in the rss feed for this issue https://jira.terracotta.org/jira/browse/CDV-271
I wonder if something need to be enabled somewhere...
Comment 13 Steffen Pingel CLA 2007-05-23 16:50:06 EDT
Apparently it's missing in the RSS feed. I wonder if attachments have been added in a recent JIRA version (Terracotta uses 3.6.5).
Comment 14 Steffen Pingel CLA 2007-05-24 01:22:54 EDT
BTW, uploading of attachments is done through the web interface by means of an HTTP POST so it works despite attachments not being displayed in the table.
Comment 15 Eugene Kuleshov CLA 2007-05-24 01:50:44 EDT
I noticed that. :-)

BTW, attachments were added to rss in JIRA 3.7...