Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thumbnails with titles do not open in lightbox #33

Closed
tofi86 opened this issue Jan 26, 2017 · 6 comments
Closed

Thumbnails with titles do not open in lightbox #33

tofi86 opened this issue Jan 26, 2017 · 6 comments
Assignees
Labels

Comments

@tofi86
Copy link
Collaborator

tofi86 commented Jan 26, 2017

@FutureLinkOpenSource wrote in #28 (comment)

We see this issue still in 0.3.1 with Redmine 3.3.2. Clicking on a thumbnail in a wiki page generated by the {{thumbnail(filename, size=x, Title=Foo)}} macro will return a 404 response. For some reason, version 0.3.1 of this plugin is using the attachment title set in the thumbnail macro instead of the file name itself:

Started GET "/attachments/download/2314/Bottom%20of%20rack%20-%20rear%20view" for 127.0.0.1 at 2017-01-26 10:35:53 -0400
Processing by AttachmentsController#download as HTML
Parameters: {"id"=>"2314", "filename"=>"Bottom of rack - rear view"}
Current user: test_user (id=9001)
Rendered common/error.html.erb within layouts/base (0.2ms)
Rendered plugins/redmine_code_review/app/views/code_review/_html_header.html.erb (0.1ms)
Rendered plugins/redmine_code_review/app/views/code_review/_body_bottom.html.erb (0.1ms)
Filter chain halted as :find_attachment rendered or redirected
Completed 404 Not Found in 44ms (Views: 25.7ms | ActiveRecord: 12.7ms)

This is limited to the lightbox2 plugin, as removing the plugin and clicking on the attachment link will display the image. If this is fixed in master, could we please get a new version of the package tagged?

The bug can be reproduced in Redmine 3.3.2 when using the thumbnail macro with title attribute:

{{thumbnail(filename, size=x, Title=Foo)}}
@tofi86
Copy link
Collaborator Author

tofi86 commented Jan 26, 2017

this is fixed on the master branch with 89aad68

@FutureLinkOpenSource would you please confirm that this works for you before I release a new version?

@FutureLinkOpenSource
Copy link

Work great. Thank you very much for the fixes. Will update the package in pkgsrc once a new version is tagged.

@tofi86
Copy link
Collaborator Author

tofi86 commented Jan 26, 2017

great, thanks for testing! 👍
new version will be released soon...

@FutureLinkOpenSource
Copy link

Thanks! Do you have an estimation of when that might be?

@tofi86
Copy link
Collaborator Author

tofi86 commented Jan 31, 2017

Just tagged the new release: https://github.com/paginagmbh/redmine_lightbox2/releases/tag/v0.3.2

Have fun!

tofi86 added a commit that referenced this issue Aug 6, 2017
# Conflicts:
#	assets/javascripts/lightbox.js
@tofi86
Copy link
Collaborator Author

tofi86 commented Aug 6, 2017

Note: This fix has been backported without testing to the redmine-3.0-3.2 branch for Redmine 3.0-3.2 by request of @robertfausk. Please see #36 for further discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants