Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-1416

Can't download attachment


    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • None
    • 1.4.2
    • None

      In the XDoclet JIRA (1.4.2#22) I was trying to download the attachments from one of the issues, XDT-132 http://opensource.atlassian.com/projects/xdoclet/secure/ViewIssue.jspa?key=XDT-132

      When I select either of the attachments' Download links, http://opensource.atlassian.com/projects/xdoclet/secure/attachment/10060/resin-ejb.xdt or http://opensource.atlassian.com/projects/xdoclet/secure/attachment/10062/resin-ejb.xdt
      I just get the message:

      Fatal error in file:/opt/j2ee/atlassian/jira/jira-xdoclet/xdoclet-jira-web/secure/attachment at line 1: Illegal character "<" in encoding name.

      I suspect this is because JIRA identifies the Mime Type as text/xml (at least, that's what's displayed on the attachments page). However, the file in question is actually an XDoclet template file which generates an XML document, and thus begins

      <?xml version="1.0" encoding="<XDtConfig:configParameterValue paramName='Xmlencoding'/>"?>

      However, it's not a valid XML document itself, just a text file. Unfortunately, due to the above error I can't download the updated template, which is preventing me from resolving the issue

            scott@atlassian.com Scott Farquhar
            07f480500bb2 Andrew Stevens
            0 Vote for this issue
            0 Start watching this issue