プロジェクト

全般

プロフィール

Vote #76164

完了

ActionController::UnknownFormat: error for PDF request and unknown user

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Accounts / authentication_7
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
7
version_id:
92
issue_org_id:
19325
author_id:
56864
assigned_to_id:
1
comments:
3
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
80
ステータス-->[Closed]

説明

Hi, I just got the following error for my Redmine 3.0.0 installation:

ERROR MESSAGE:

ActionController::UnknownFormat: ActionController::UnknownFormat

WHERE:

issues#show

app/controllers/application_controller.rb:238
app/controllers/application_controller.rb:266

URL:

https:///issues/353.pdf

BROWSER:

100.0%  Googlebot 2.1 ()


FULL BACKTRACE:

[GEM_ROOT]/gems/actionpack-4.2.0/lib/action_controller/metal/mime_responds.rb:218
app/controllers/application_controller.rb:238
app/controllers/application_controller.rb:266
[GEM_ROOT]/gems/activesupport-4.2.0/lib/active_support/rescuable.rb:80
...

The problem arises when a user that is not logged in tries to retrive the PDF export of an issue, which is not allowed in our configuration. It seems for me that the method @require_login@ in @application_controller.rb@ is missing a case for the PDF format.


journals

> The problem arises when a user that is not logged in tries to retrive the PDF export of an issue, which is not allowed in our configuration

Permission for exporting to PDF is not a core feature but this error should be fixed by r14069.
--------------------------------------------------------------------------------
Thanks for fixing this!
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリAccounts / authentication_7 にセット
  • 対象バージョン3.0.1_92 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0