• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7700 for generic doc work for TWiki-6.0.2. Use View topic Item7703 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item5432: Image links inserted with Manage Attachment only work with lower case file extension

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension TinyMCEPlugin Normal Closed   patch  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

  1. I upload an (image) attachment using the Manage Attachment button.
  2. I close and re-open the dialog box.
  3. I then insert a link to the (image) attachment.
  4. If the image was saved with a lower case file extension, eg image.jpg, the image link works fine. In raw view the link is <img alt="image.jpg" src="%ATTACHURL%/image.jpg" />
  5. However, if the image was saved with an upper case file extension, eg image.JPG, I get a link as if to a non-image attachment. In raw view: [[%ATTACHURL%/image.JPG][image.JPG]]
  6. In the latter case, deleting the 2nd square bracket will shown the image.

Can this be changed so that the attachment is recognised as an image regardless of the case if the file extension?

I hope I have filled the form in correctly as it is a bit beyond me!

-- TWiki:Main/TamsinTweddell - 10 Mar 2008

You filled it in correctly, thanks. Trying what you describe:

-- CrawfordCurrie - 11 Mar 2008

Hmmm, seems to work as advertised. Can you reproduce the problem here, and describe the steps you followed?

-- CrawfordCurrie - 11 Mar 2008

Could this be associated with the browser? I am using IE7. I think I read somewhere that you use Firefox.

In addition to the info above, the image link is inserted using the Manage Attachment button, not the Insert Image button. I'm not sure I made this clear.

-- TWiki:Main.TamsinTweddell - 11 Mar 2008

Manage Attachment explicitly inserts a HTML anchor link - . Such links are not converted to IMG links. TN_camel_50.JPG. If they were, it would be inpossible to insert an anchor link to an image. Therefore the problem appears to be that a link to an image file with a lowercase extension is incorrectly being saved as an IMG.

TN_camel_50.jpg ok, I see what you mean. Confirmed.

-- CrawfordCurrie - 13 Mar 2008

Fixed in trunk and uploaded to TWiki.org. Will need to be merged to patch branch.

CC

Somehow the changed got merged over by a later checkin

It is pretty bad to close a bug and hope you later merge

-- TWiki:Main.KennethLavrsen - 04 Aug 2008

ItemTemplate
Summary Image links inserted with Manage Attachment only work with lower case file extension
ReportedBy TWiki:Main.TamsinTweddell
Codebase 4.1.2
SVN Range

AppliesTo Extension
Component TinyMCEPlugin
Priority Normal
CurrentState Closed
WaitingFor

Checkins TWikirev:16548
TargetRelease patch
ReleasedIn

Topic attachments
I Attachment History Action Size Date Who Comment
JPEGjpg TN_camel_50.JPG r1 manage 4.9 K 2008-03-11 - 07:55 CrawfordCurrie  
JPEGjpg TN_camel_50.jpg r1 manage 4.9 K 2008-03-13 - 09:29 CrawfordCurrie  
Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r9 - 2008-08-04 - KennethLavrsen
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback