[opensuse-buildservice] error with upload of non-xml file named _link
Hi all I think I found a serious error with the Web UI. I was attempting to link to an existing package in someone else's home project. I created a new package in my home project, gave description, etc, then clicked [+] to add a new file. I named it _link and uploaded a small, trivial text file as a place holder (there is no way to create an empty text file using the Web UI). One my text file had uploaded, I got the output shown below. I can now not delete or edit this _link file, because the page https://build.opensuse.org/package/show?project=home%3Ajdpipe&package=boost always shows with an error. I couldn't see any other obvious way to link to another package: either I should be barred from uploading _link files, or this problem should cause a more graceful failure. Cheers JP ------8<------ OpenSUSE Webclient Error: Error Details: *Errorcode: *unknown *Message: *undefined method `to_str' for nil:NilClass Exception from Webclient: *ActionView::TemplateError*: undefined method `to_str' for nil:NilClass Stack Trace: On line #8 of app/views/package/_links.rhtml 5: <h3>Link</h3> 6: <p> 7: This package links to the sources of the package 8: <%= link_to_package @link.project, @link.package %> 9: of project <%= link_to_project @link.project %>. 10: </p> 11: <% end %> /srv/www/opensuse/common/current/lib/activexml/node.rb:160:in `data' /srv/www/opensuse/common/current/lib/activexml/node.rb:309:in `method_missing' #{RAILS_ROOT}/app/views/package/_links.rhtml:8:in `_run_rhtml_47app47views47package47_links46rhtml' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:326:in `send' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:326:in `compile_and_render_template' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:301:in `render_template' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:260:in `render_file' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:275:in `render' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/partials.rb:59:in `render_partial' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:26:in `benchmark' /usr/lib64/ruby/1.8/benchmark.rb:293:in `measure' /usr/lib64/ruby/1.8/benchmark.rb:307:in `realtime' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:26:in `benchmark' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/partials.rb:58:in `render_partial' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:287:in `render' #{RAILS_ROOT}/app/views/package/show.rhtml:38:in `_run_rhtml_47app47views47package47show46rhtml' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:326:in `send' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:326:in `compile_and_render_template' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:301:in `render_template' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:260:in `render_file' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:806:in `render_file' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:711:in `render_with_no_layout' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/layout.rb:247:in `render_without_benchmark' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:50:in `render' /usr/lib64/ruby/1.8/benchmark.rb:293:in `measure' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:50:in `render' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1096:in `perform_action_without_filters' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:632:in `call_filter' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:638:in `call_filter' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:438:in `call' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:637:in `call_filter' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:638:in `call_filter' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:438:in `call' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:637:in `call_filter' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:638:in `call_filter' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:438:in `call' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:637:in `call_filter' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:638:in `call_filter' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:438:in `call' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:637:in `call_filter' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:638:in `call_filter' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:449:in `call' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:637:in `call_filter' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:619:in `perform_action_without_benchmark' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue' /usr/lib64/ruby/1.8/benchmark.rb:293:in `measure' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/rescue.rb:83:in `perform_action' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in `send' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in `process_without_filters' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:624:in `process_without_session_management_support' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/session_management.rb:114:in `process' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:330:in `process' /usr/lib64/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:41:in `dispatch' /usr/lib64/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:168:in `process_request' /usr/lib64/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:143:in `process_each_request!' /usr/lib64/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:109:in `with_signal_handler' /usr/lib64/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:142:in `process_each_request!' /usr/lib64/ruby/vendor_ruby/1.8/fcgi.rb:612:in `each_cgi' /usr/lib64/ruby/vendor_ruby/1.8/fcgi.rb:609:in `each' /usr/lib64/ruby/vendor_ruby/1.8/fcgi.rb:609:in `each_cgi' /usr/lib64/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:141:in `process_each_request!' /usr/lib64/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:55:in `process!' /usr/lib64/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:25:in `process!' /srv/www/opensuse/webclient/current/public/dispatch.fcgi:24 --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
John Pye wrote:
Hi all
I think I found a serious error with the Web UI. I was attempting to link to an existing package in someone else's home project. I created a new package in my home project, gave description, etc, then clicked [+] to add a new file. I named it _link and uploaded a small, trivial text file as a place holder (there is no way to create an empty text file using the Web UI). One my text file had uploaded, I got the output shown below.
Probably the webclient is trying to parse the (bogus) _link file and crashes. Deleting it with osc should work.
I couldn't see any other obvious way to link to another package: either I should be barred from uploading _link files, or this problem should cause a more graceful failure.
There's a [Link Package from other Project] button at the bottom of the project page :) Michal --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Michal Marek wrote:
John Pye wrote:
Hi all
I think I found a serious error with the Web UI. I was attempting to link to an existing package in someone else's home project. I created a new package in my home project, gave description, etc, then clicked [+] to add a new file. I named it _link and uploaded a small, trivial text file as a place holder (there is no way to create an empty text file using the Web UI). One my text file had uploaded, I got the output shown below.
Probably the webclient is trying to parse the (bogus) _link file and crashes. Deleting it with osc should work.
Correct, the webclient is unable to handle _link files that aren't xml and don't have a project and package attribute in the root element. I opened a bug for it. Should be easy to fix (at least keeping the package page alive). https://bugzilla.novell.com/show_bug.cgi?id=340198 Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (3)
-
Andreas Bauer
-
John Pye
-
Michal Marek