Edgewall Software
Modify

Opened 17 years ago

Closed 14 years ago

#4202 closed defect (fixed)

[PATCH] Images are not found on WikiStart page when the URL contains an ending slash

Reported by: Christine.L.Middleton@… Owned by: Jonas Borgström
Priority: low Milestone: 0.11
Component: wiki system Version: 0.10.2
Severity: minor Keywords: image macro
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

If users are redirected from a project listing page to /trac/wiki/ (with a slash), the image macro fails to show the images on the wiki start page (attachment does not exist).

This patch checks to make sure the second piece of the split path_info is not empty before assigning it to the id.

Attachments (1)

trac-macro-diff.diff (599 bytes ) - added by Christine.L.Middleton@… 17 years ago.
Patch to image macro so images are rendered on wiki start page even with ending slash (/trac/wiki/)

Download all attachments as: .zip

Change History (6)

by Christine.L.Middleton@…, 17 years ago

Attachment: trac-macro-diff.diff added

Patch to image macro so images are rendered on wiki start page even with ending slash (/trac/wiki/)

comment:1 by Christian Boos, 17 years ago

Milestone: 0.10.4
Severity: normalminor

comment:2 by Otavio Salvador, 17 years ago

Why does it being marked to 0.10.4 instead of 0.10.3? Since there's a know patch to it and it's a bugfix and a regression I think it should go to .3. Have I missed something?

comment:3 by Christian Boos, 17 years ago

Milestone: 0.10.40.11
Resolution: fixed
Status: newclosed

This is indeed a problem in 0.10-stable, but works now in 0.11, though I'm not sure about which changeset fixed it.

comment:4 by anonymous, 14 years ago

Resolution: fixed
Status: closedreopened
Version: 0.10.20.11.6

This bug seems to have popped back up in 0.11.6. If you need more details please contact me at aedgar (at) research att com

Thanks

comment:5 by Remy Blank, 14 years ago

Resolution: fixed
Status: reopenedclosed
Version: 0.11.60.10.2

I cannot reproduce this on 0.11.7, as URLs with a trailing slash are redirected to strip the slash (try http://trac.edgewall.org/demo-0.11/wiki/ which is running 0.11.7).

If you can provide a way to reproduce the issue on the demo site above, please open a new ticket and explain the steps.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.