[Bug 549156] New: handle YaPI (Perl) syntax errors better
http://bugzilla.novell.com/show_bug.cgi?id=549156 User mvidner@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=549156#c412 Summary: handle YaPI (Perl) syntax errors better Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: WebYaST AssignedTo: mvidner@novell.com ReportedBy: mvidner@novell.com QAContact: qa@suse.de CC: jreidinger@novell.com Found By: --- If one makes a syntax error in a YaPI Perl file, the situation is handled problematically on multiple levels. How to reproduce: 1) sed -i.bak -e '/sub Read/a!@$%^syntax error' /usr/share/YaST2/modules/YaPI/TIME.pm 2) xdg-open http://localhost:54984/systemtime The problems (maybe worth bug entries on their own) A) [yast2-perl-bindings] The org.opensuse.YaST.modules dbus service just dies when the code is reached. Instead, it should catch the problem like in FATE#412 B) [yast2-perl-bindings] The error message reported by Perl is lost. One must call perl from the console to see it. C) [ruby-dbus] webservice log has this exception+backtrace. It is sufficient, but it would be nicer to see immediately the details of the failed message: service, object path, interface, method, arguments. DBus::Error (org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)): (eval):24:in `Read' /usr/lib/ruby/vendor_ruby/1.8/dbus/bus.rb:505:in `call' /usr/lib/ruby/vendor_ruby/1.8/dbus/bus.rb:505:in `process' /usr/lib/ruby/vendor_ruby/1.8/dbus/bus.rb:463:in `send_sync' (eval):22:in `Read' /usr/lib/ruby/vendor_ruby/1.8/dbus/introspect.rb:472:in `call' /usr/lib/ruby/vendor_ruby/1.8/dbus/introspect.rb:472:in `method_missing' lib/yast_service.rb:65:in `send' lib/yast_service.rb:65:in `Call' vendor/plugins/time/app/models/systemtime.rb:72:in `find' vendor/plugins/time/app/controllers/systemtime_controller.rb:39:in `show' D) the web client translates it to a "500 Internal Server Error", where the details show the CLIENT part of the backtrace. It is necessary to show also the SERVICE part as quoted in item (C). (Pepa said he would work on this) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=549156
User jreidinger@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=549156#c1
--- Comment #1 from Josef Reidinger
http://bugzilla.novell.com/show_bug.cgi?id=549156
User kkaempf@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=549156#c2
Klaus Kämpf
http://bugzilla.novell.com/show_bug.cgi?id=549156
Klaus Kämpf
http://bugzilla.novell.com/show_bug.cgi?id=549156
User jreidinger@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=549156#c3
--- Comment #3 from Josef Reidinger
http://bugzilla.novell.com/show_bug.cgi?id=549156
http://bugzilla.novell.com/show_bug.cgi?id=549156#c4
Klaus Kämpf
participants (1)
-
bugzilla_noreply@novell.com