Bugs: Browse | Submit New | Admin

[#6189] Can't Delete Page

Date:
2006-10-16 23:25
Priority:
3
Submitted By:
Bret Pettichord (bret)
Assigned To:
Assaph Mehr (assaph)
Category:
Storage
State:
Open
Summary:
Can't Delete Page

Detailed description
I created a page with the title
  About "Watir"

Yes, including the quotes.

I cannot delete or rename this page.

 Instiki::ValidationError in Wiki#page_admin

Unknown page: 'About '

RAILS_ROOT: c:/pimki-2.0
Application Trace | Framework Trace | Full Trace

#{RAILS_ROOT}/app/models/web.rb:458:in `delete_page'
#{RAILS_ROOT}/app/models/wiki_service.rb:182:in `delete_page'
#{RAILS_ROOT}/app/controllers/wiki_controller.rb:149:in `page_admin'
#{RAILS_ROOT}/pimki:6:in `load'
#{RAILS_ROOT}/pimki:6

c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/madeleine-0.7.3/lib/madeleine/automatic.rb:144:in `send'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/madeleine-0.7.3/lib/madeleine/automatic.rb:144:in `execute'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/madeleine-0.7.3/lib/madeleine.rb:189:in `execute'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/madeleine-0.7.3/lib/madeleine.rb:93:in `execute_command'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/madeleine-0.7.3/lib/madeleine.rb:90:in `synchronize'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/madeleine-0.7.3/lib/madeleine.rb:172:in `synchronize'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/madeleine-0.7.3/lib/madeleine.rb:90:in `execute_command'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/madeleine-0.7.3/lib/madeleine/automatic.rb:358:in `send'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/madeleine-0.7.3/lib/madeleine/automatic.rb:358:in `method_missing'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/madeleine-0.7.3/lib/madeleine/automatic.rb:195:in `method_missing'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:853:in `send'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:853:in
`perform_action_without_filters'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/filters.rb:332:in
`perform_action_without_benchmark'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:69:in
`perform_action_without_rescue'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:69:in `measure'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:69:in
`perform_action_without_rescue'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/rescue.rb:82:in `perform_action'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:369:in `send'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:369:in
`process_without_session_management_support'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/session_management.rb:116:in `process'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:38:in `dispatch'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/webrick_server.rb:117:in `handle_dispatch'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/webrick_server.rb:83:in `service'
c:/ruby-1.8.2-15/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
c:/ruby-1.8.2-15/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
c:/ruby-1.8.2-15/lib/ruby/1.8/webrick/server.rb:155:in `start_thread'
c:/ruby-1.8.2-15/lib/ruby/1.8/webrick/server.rb:144:in `start'
c:/ruby-1.8.2-15/lib/ruby/1.8/webrick/server.rb:144:in `start_thread'
c:/ruby-1.8.2-15/lib/ruby/1.8/webrick/server.rb:94:in `start'
c:/ruby-1.8.2-15/lib/ruby/1.8/webrick/server.rb:89:in `each'
c:/ruby-1.8.2-15/lib/ruby/1.8/webrick/server.rb:89:in `start'
c:/ruby-1.8.2-15/lib/ruby/1.8/webrick/server.rb:79:in `start'
c:/ruby-1.8.2-15/lib/ruby/1.8/webrick/server.rb:79:in `start'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/webrick_server.rb:69:in `dispatch'
#{RAILS_ROOT}/script/server:107

#{RAILS_ROOT}/app/models/web.rb:458:in `delete_page'
#{RAILS_ROOT}/app/models/wiki_service.rb:182:in `delete_page'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/madeleine-0.7.3/lib/madeleine/automatic.rb:144:in `send'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/madeleine-0.7.3/lib/madeleine/automatic.rb:144:in `execute'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/madeleine-0.7.3/lib/madeleine.rb:189:in `execute'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/madeleine-0.7.3/lib/madeleine.rb:93:in `execute_command'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/madeleine-0.7.3/lib/madeleine.rb:90:in `synchronize'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/madeleine-0.7.3/lib/madeleine.rb:172:in `synchronize'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/madeleine-0.7.3/lib/madeleine.rb:90:in `execute_command'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/madeleine-0.7.3/lib/madeleine/automatic.rb:358:in `send'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/madeleine-0.7.3/lib/madeleine/automatic.rb:358:in `method_missing'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/madeleine-0.7.3/lib/madeleine/automatic.rb:195:in `method_missing'
#{RAILS_ROOT}/app/controllers/wiki_controller.rb:149:in `page_admin'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:853:in `send'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:853:in
`perform_action_without_filters'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/filters.rb:332:in
`perform_action_without_benchmark'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:69:in
`perform_action_without_rescue'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:69:in `measure'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:69:in
`perform_action_without_rescue'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/rescue.rb:82:in `perform_action'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:369:in `send'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:369:in
`process_without_session_management_support'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/session_management.rb:116:in `process'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:38:in `dispatch'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/webrick_server.rb:117:in `handle_dispatch'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/webrick_server.rb:83:in `service'
c:/ruby-1.8.2-15/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
c:/ruby-1.8.2-15/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
c:/ruby-1.8.2-15/lib/ruby/1.8/webrick/server.rb:155:in `start_thread'
c:/ruby-1.8.2-15/lib/ruby/1.8/webrick/server.rb:144:in `start'
c:/ruby-1.8.2-15/lib/ruby/1.8/webrick/server.rb:144:in `start_thread'
c:/ruby-1.8.2-15/lib/ruby/1.8/webrick/server.rb:94:in `start'
c:/ruby-1.8.2-15/lib/ruby/1.8/webrick/server.rb:89:in `each'
c:/ruby-1.8.2-15/lib/ruby/1.8/webrick/server.rb:89:in `start'
c:/ruby-1.8.2-15/lib/ruby/1.8/webrick/server.rb:79:in `start'
c:/ruby-1.8.2-15/lib/ruby/1.8/webrick/server.rb:79:in `start'
c:/ruby-1.8.2-15/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/webrick_server.rb:69:in `dispatch'
#{RAILS_ROOT}/script/server:107
#{RAILS_ROOT}/pimki:6:in `load'
#{RAILS_ROOT}/pimki:6

Request

Parameters: {"system_password"=>"9000test", "ren_sel_page_name"=>"noselect",
"ren_page_name"=>"", "del_sel_page_name"=>"About ",
"new_page_name"=>"", "web"=>"pimki",
"admin_action"=>"Delete"}

Show session dump

--- 
flash: !ruby/hash:ActionController::Flash::FlashHash {}
:return_to: /pimki/list

Response
Headers: {"cookie"=>[], "Content-Type"=>"text/html; charset=UTF-8",
"Cache-Control"=>"no-cache"}

Add A Comment: Notepad

Please login


Followup

Message
Date: 2006-10-18 01:10
Sender: Assaph Mehr

Looks like the quote marks cause the rename to submit only 'About'
and not the full name. Will fix soon, but in the mean time you
can play with the debug_storage in scripts if you feel adventurous
;)

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
category_idNone2006-10-18 01:10assaph
artifact_group_idNone2006-10-18 01:10assaph
assigned_tonone2006-10-18 01:10assaph