To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=100991 Issue #|100991 Summary|pyuno: mismatched urls on using expandUri on urlHelper |.getRootStorageURI when afterwards splitting up URLS Component|udk Version|OOO300m9 Platform|All URL| OS/Version|Linux Status|NEW Status whiteboard| Keywords| Resolution| Issue type|PATCH Priority|P3 Subcomponent|code Assigned to|jbu Reported by|cmc
------- Additional comments from [email protected] Thu Apr 9 14:50:04 +0000 2009 ------- Are we sure we're supposed to call expandUri on urlHelper.getRootStorageURI() in pythonscript.py ? In #i98990# pythonscript.py was modified, and one modification was... - rootUrl = urlHelper.getRootStorageURI() + rootUrl = expandUri( urlHelper.getRootStorageURI() ) So when I try and run an OOo python script from the OOo run macro dialogs I get a big error dialog. Toggling the debug output on I see that the change is one of orig: file:///opt/openoffice.org3/program/../basis-link/share/Scripts/python vs new: file:///opt/openoffice.org3/program/basis3.1/share/Scripts/python and so the prefix no longer matches that of ScriptingFrameworkURIHelpe::m_sBaseURI in scripting/source/provider/URIHelper.cxx which continues to use relative urls (file:///opt/openoffice.org3/program/../basis-link/share/Scripts) in ScriptingFrameworkURIHelper::getLanguagePart and splitting up the URLs of the scripts no longer works correctly, so I get errors like... Thu Apr 9 15:36:15 2009 [DEBUG] getPersistentUrlFromStorageUrl file:///opt/openoffice.org/basis3.1/share/Scripts/python/HelloWorld.py$HelloWorldPython -> file:///opt/openoffice.org/basis3.1/share/Scripts/python/HelloWorld.py$HelloWorldPython Thu Apr 9 15:36:15 2009 [DEBUG] ScriptBrowseNode.getPropertyValue called for URI, returning vnd.sun.star.script:?language=Python&location=share Thu Apr 9 15:36:15 2009 [DEBUG] getScript vnd.sun.star.script:?language=Python&location=share invoked Thu Apr 9 15:36:15 2009 [ERROR] pythonscript.com.sun.star.lang.IllegalArgumentException: Script URI not valid instead of... Thu Apr 9 15:37:27 2009 [DEBUG] getPersistentUrlFromStorageUrl file:///opt/openoffice.org3/program/../basis-link/share/Scripts/python/HelloWorld.py$HelloWorldPython -> file:///opt/openoffice.org3/program/../basis-link/share/Scripts/python/HelloWorld.py$HelloWorldPython Thu Apr 9 15:37:27 2009 [DEBUG] ScriptBrowseNode.getPropertyValue called for URI, returning vnd.sun.star.script:HelloWorld.py$HelloWorldPython?language=Python&location=share Thu Apr 9 15:37:27 2009 [DEBUG] getScript vnd.sun.star.script:HelloWorld.py$HelloWorldPython?language=Python&location=share invoked --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
