1
出於某種奇怪的原因,我無法將圖像上傳到Redmine的門票中。我可以上傳一個txt文件或zip文件。當我上傳票中的圖像時,它會顯示「服務不可用」或「無法處理」。奇怪的是,它曾經工作。我們更新到我看着production.log最新的管理平臺(2.6.0.stable)無法將圖像上傳到Redmine
,這是錯誤(無法驗證CSRF令牌真實性):
Started POST "/uploads.js?attachment_id=1&filename=test.png" for xx.xx.xxx.xxx at 2014-12-03 12:58:49 -0500
Processing by AttachmentsController#upload as JS
Parameters: {"attachment_id"=>"1", "filename"=>"test.png"}
WARNING: Can't verify CSRF token authenticity
Filter chain halted as :verify_authenticity_token rendered or redirected
Completed 422 Unprocessable Entity in 2.6ms (ActiveRecord: 0.3ms)
這裏是我的管理平臺資料:
Default administrator account changed \t True
Attachments directory writable \t True
Plugin assets directory writable \t True
RMagick available (optional) Exclamation
ImageMagick convert available (optional) True
Environment:
Redmine version 2.6.0.stable
Ruby version 1.9.3-p547 (2014-05-14) [x86_64-linux]
Rails version 3.2.19
Environment production
Database adapter Mysql2
SCM:
Git 1.8.2.1
Filesystem
Redmine plugins:
redmine_agile 1.3.2
redmine_ckeditor 1.0.16
redmine_github_hook 2.1.0
redmine_my_page_queries 2.1.6
redmine_theme_changer 0.1.0