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

ActionController::UnknownFormat (ActionController::UnknownFormat) #1

Open
ANovitsky opened this issue Dec 14, 2018 · 1 comment
Open

Comments

@ANovitsky
Copy link

Hi,

REST API broken after install the plugin. Please fix it.

If I try download attachments via REST API,

Example
/redmine/attachments/20314.json?key=[key]

I got error in logs:
ActionController::UnknownFormat (ActionController::UnknownFormat):
plugins/redmine_preview_pdf/lib/redmine_preview_pdf/patches/attachments_controller_patch.rb:70:in `show_with_pdf'

I thinking you need add condition for API. Like this format.api

@nanego
Copy link

nanego commented Feb 11, 2019

I encountered the same issue, so I added a fix in this Pull Request: #2

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

No branches or pull requests

2 participants