Project

General

Profile

Actions

Defect #10938

closed

Unable to add attachment to an existing issue

Added by Etienne Massip almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
Attachments
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

When trying to add an attachment to an already existing issue, I get a "Page not found" error.

With Chrome 18.0.1025.168 m (not tried with other browsers).

production.log stack trace is as follow:

Started POST "/issues/783" for 10.132.21.139 at 2012-05-16 10:29:26 +0200

ActionController::RoutingError (No route matches [POST] "/issues/783"):
  actionpack (3.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
  actionpack (3.2.3) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
  railties (3.2.3) lib/rails/rack/logger.rb:26:in `call_app'
  railties (3.2.3) lib/rails/rack/logger.rb:16:in `call'
  actionpack (3.2.3) lib/action_dispatch/middleware/request_id.rb:22:in `call'
  rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
  rack (1.4.1) lib/rack/runtime.rb:17:in `call'
  activesupport (3.2.3) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
  rack (1.4.1) lib/rack/lock.rb:15:in `call'
  actionpack (3.2.3) lib/action_dispatch/middleware/static.rb:62:in `call'
  rack-cache (1.2) lib/rack/cache/context.rb:136:in `forward'
  rack-cache (1.2) lib/rack/cache/context.rb:143:in `pass'
  rack-cache (1.2) lib/rack/cache/context.rb:155:in `invalidate'
  rack-cache (1.2) lib/rack/cache/context.rb:71:in `call!'
  rack-cache (1.2) lib/rack/cache/context.rb:49:in `call'
  railties (3.2.3) lib/rails/engine.rb:479:in `call'
  railties (3.2.3) lib/rails/application.rb:220:in `call'
  rack (1.4.1) lib/rack/content_length.rb:14:in `call'
  railties (3.2.3) lib/rails/rack/log_tailer.rb:14:in `call'
  puma (1.3.0) lib/puma/server.rb:418:in `handle_request'
  puma (1.3.0) lib/puma/server.rb:288:in `process_client'
  puma (1.3.0) lib/puma/server.rb:197:in `block in run'
  puma (1.3.0) lib/puma/thread_pool.rb:92:in `call'
  puma (1.3.0) lib/puma/thread_pool.rb:92:in `block in spawn_thread'

Server is running on a Windows environment.

Actions #1

Updated by Etienne Massip almost 12 years ago

Weird, _method is present and there is no substential difference between a request with or without attachment.

------WebKitFormBoundaryiQcAUP1AzvJ5AhqN

Content-Disposition: form-data; name="_method" 

put

Might be a Puma server issue?

Actions #2

Updated by Etienne Massip almost 12 years ago

Attaching a file on issue creation I get a redirect to login page:

Started POST "/projects/prctwa/issues" for 10.132.21.139 at 2012-05-16 11:07:50 +0200
Processing by IssuesController#create as HTML
  Parameters: {"attachments"=>{"1"=>{"description"=>""}}, "commit"=>"Créer", "project_id"=>"prctwa"}
WARNING: Can't verify CSRF token authenticity
Redirected to http://xxx/login?back_url=http%3A%2F%2Fxxx%2Fprojects%2Fprctwa%2Fissues
Filter chain halted as :check_if_login_required rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Started GET "/login?back_url=http%3A%2F%2Fxxx%2Fprojects%2Fprctwa%2Fissues" for 10.132.21.139 at 2012-05-16 11:07:50 +0200
Processing by AccountController#login as HTML
...
Actions #3

Updated by Etienne Massip almost 12 years ago

  • Status changed from Confirmed to Closed
  • Resolution set to Invalid

Puma issue, fixed with today's release 1.3.1.

Actions #4

Updated by Etienne Massip almost 12 years ago

  • Target version deleted (2.0.1)
Actions

Also available in: Atom PDF