[Trac] Link to attachments containing a '#' in the filename is not possible

107 views
Skip to first unread message

Riedel, Torge

unread,
Feb 1, 2016, 9:48:50 AM2/1/16
to trac-...@googlegroups.com

Hi list,

 

I added a PDF-document as an attachment to a milestone (milestone name is “1.0.0”). The filename of the document contains a ‘#’ char (let’s say: “MySpec_Version_#2.pdf”). If I now want to add a link from a ticket to this document, I write the following markup:

 

[[attachment:MySpec_Version_#2.pdf:milestone:1.0.0|Specification]]

 

But this does not generate a link, just grayed text. If I rename the attached file to remove the ‘#’ char and attach it again, I can write following markup:

 

[[attachment:MySpec_Version_2.pdf:milestone:1.0.0|Specification]]

 

And it generates a link to the document.

 

Is this a bug or do a miss a trick how to do this?

 

Thanks and regards

Torge


CENIT AG, Industriestrasse 52-54, 70565 Stuttgart, Tel.: +49 711 7825-30, Fax: +49 711 7825-4000, Internet: www.cenit.com
Geschaeftsstellen: Berlin, Frankfurt, Hamburg, Hannover, Muenchen, Oelsnitz, Ratingen, Saarbruecken
Vorstandsmitglieder: Kurt Bengel, Matthias Schmidt
Aufsichtsratsmitglieder: Andreas Schmidt (Vorsitzender des Aufsichtsrats), Hubert Leypoldt, Andreas Karrer
Bankverbindungen:
Deutsche Bank (BLZ 600 700 70) Kto. 1661 040 IBAN : DE85 6007 0070 0166 1040 00 SWIFT-CODE : DEUTDESS,
Commerzbank (BLZ 600 400 71) Kto. 532 015 500 IBAN : DE83 6004 0071 0532 0155 00 SWIFT-Code : COBADEFF600,
Registergericht: Amtsgericht Stuttgart
Handelsregister: HRB Nr. 19117
Umsatzsteuer: ID-Nr. DE 147 862 777

RjOllos

unread,
Feb 1, 2016, 2:17:38 PM2/1/16
to Trac Users, T.Ri...@cenit.de


On Monday, February 1, 2016 at 6:48:50 AM UTC-8, Riedel, Torge wrote:

Hi list,

 

I added a PDF-document as an attachment to a milestone (milestone name is “1.0.0”). The filename of the document contains a ‘#’ char (let’s say: “MySpec_Version_#2.pdf”). If I now want to add a link from a ticket to this document, I write the following markup:

 

[[attachment:MySpec_Version_#2.pdf:milestone:1.0.0|Specification]]

 

But this does not generate a link, just grayed text. If I rename the attached file to remove the ‘#’ char and attach it again, I can write following markup:

 

[[attachment:MySpec_Version_2.pdf:milestone:1.0.0|Specification]]

 

And it generates a link to the document.

 

Is this a bug or do a miss a trick how to do this?

 

Thanks and regards

Torge


Riedel, Torge

unread,
Feb 2, 2016, 3:25:32 AM2/2/16
to trac-...@googlegroups.com, RjOllos

Sorry, didn’t see that. I added my scenario. Any chance this will be fixed in 1.0.10?

RjOllos

unread,
Feb 9, 2016, 12:59:21 PM2/9/16
to Trac Users, rjo...@gmail.com, T.Ri...@cenit.de


On Tuesday, February 2, 2016 at 12:25:32 AM UTC-8, Riedel, Torge wrote:

Sorry, didn’t see that. I added my scenario. Any chance this will be fixed in 1.0.10?


It won't be fixed for 1.0.10 since the release will be made this weekend tickets are already scheduled.

I doubt it will be fixed soon unless someone from the community provides a patch.

- Ryan

Reply all
Reply to author
Forward
0 new messages