Tags:
create new tag
view all tags

Question

I am having problems attaching some files. When I try to attach a file that looks like name(WikiWord).txt the resulting html (in the show/hide attachments section) broken. I am using the default PatternSkin

If the name does not have parentheses or the text inside the paren's is not a WikiWord, things work fine.

Here is the html of a working and nonworking attachment. On the second line (the one that does not work, note the extra (and wrong) span tags around the filename.

<tr><td bgcolor="#FFFFFF" class="twikiFirstCol"> <img width="16" alt="txt" align="top" src="/twiki/pub/TWiki/TWikiDocGraphics/txt.gif" height="16" border="0" /><span class="twikiHidden">txt</span> </td><td bgcolor="#FFFFFF"> <a href="/twiki/bin/viewfile/Sandbox/AttachProblem?rev=1;filename=T(wikiWord).txt">T(wikiWord).txt</a> </td><td bgcolor="#FFFFFF"> <a href="/twiki/bin/attach/Sandbox/AttachProblem?filename=T(wikiWord).txt&amp;revInfo=1" title='change, update, previous revisions, move, delete...'rel='nofollow'>manage</a> </td><td bgcolor="#FFFFFF" align="right"> 0.1&nbsp;K </td><td bgcolor="#FFFFFF"> 07 Dec 2006 - 16:27 </td><td bgcolor="#FFFFFF"> <a href="/twiki/bin/view/Main/KevinKalmbach" class="twikiLink">KevinKalmbach</a> </td><td bgcolor="#FFFFFF"> &nbsp; </td></tr>

<tr><td bgcolor="#FFFFFF" class="twikiFirstCol"> <img width="16" alt="txt" align="top" src="/twiki/pub/TWiki/TWikiDocGraphics/txt.gif" height="16" border="0" /><span class="twikiHidden">txt</span> </td><td bgcolor="#FFFFFF"> <a href="/twiki/bin/viewfile/Sandbox/AttachProblem?rev=1;filename=T(<span class="twikiNewLink">WikiWord<a rel="nofollow" href="/twiki/bin/edit/Sandbox/WikiWord?topicparent=Sandbox.AttachProblem" title="Create this topic"><sup>?</sup></a></span>).txt">T(<span class="twikiNewLink">WikiWord<a rel="nofollow" href="/twiki/bin/edit/Sandbox/WikiWord?topicparent=Sandbox.AttachProblem" title="Create this topic"><sup>?</sup></a></span>).txt</a> </td><td bgcolor="#FFFFFF"> <a href="/twiki/bin/attach/Sandbox/AttachProblem?filename=T(<span class="twikiNewLink">WikiWord<a rel="nofollow" href="/twiki/bin/edit/Sandbox/WikiWord?topicparent=Sandbox.AttachProblem" title="Create this topic"><sup>?</sup></a></span>).txt&amp;revInfo=1" title='change, update, previous revisions, move, delete...'rel='nofollow'>manage</a> </td><td bgcolor="#FFFFFF" align="right"> 0.1&nbsp;K </td><td bgcolor="#FFFFFF"> 07 Dec 2006 - 16:45 </td><td bgcolor="#FFFFFF"> <a href="/twiki/bin/view/Main/KevinKalmbach" class="twikiLink">KevinKalmbach</a> </td><td bgcolor="#FFFFFF"> &nbsp; </td></tr>

Thanks for all your help.

Environment

TWiki version: TWikiRelease04x00x05
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: AIX
Web server: Apache 2.0.55
Perl version: 5.8.2
Client OS: Windows
Web Browser: Firefox 2.0
Categories: Platform

-- KevinKalmbach - 07 Dec 2006

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

This should be reported at the bug web

-- SteveStark - 11 Dec 2006

Change status to:
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2006-12-11 - SteveStark
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.