http://bugzilla.novell.com/show_bug.cgi?id=542169 Summary: Rest service resource controller creates path in different way then how it is created Classification: openSUSE Product: openSUSE 11.2 Version: Milestone 7 Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: WebYaST AssignedTo: kkaempf@novell.com ReportedBy: jreidinger@novell.com QAContact: qa@suse.de Found By: --- see: http://lists.opensuse.org/yast-devel/2009-09/msg00141.html and http://lists.opensuse.org/yast-devel/2009-09/msg00142.html There is main problem in synchronization of how is way created. Resource controller expects that controller name is route path and resource_registration creates path from last part of interface name. This breaks all plugins that have different controller name and interface name like systemtime. I create test case for this problem and it is already in git repository. I think that create path based on controller name is quite good as it is also reflect namespaces (network::Hostnames is network/hostnames). But I think that the best way to maintenance and also for external plugin creators is use own private routes for plugin, as you quick recognize problem and it is quite easy to fix it. This dynamic creation of path and then provide it to frontend is nightmare to debugging (I finding it for 2 hours and I know good internals, if this happen to external developer then he really hate us). Creation path from interface name have also problem in interface name collision as for org.opensuse.yast.modules.time is created same route as for org.suse.de.registration.time (just example). Routing is one of the more difficult think in rails and I think we should try use KISS. -- 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.