Apache OpenOffice (AOO) Bugzilla – Issue 37361
Error "Datei kann nicht erstellt werden" loading document from "private:stream"
Last modified: 2013-02-24 21:08:27 UTC
When trying to load a document from an XInputStream ("private:stream" url and stream in mediadescriptor) on a user account a user id containing umlauts, loading fails with an error message "Konnte Datei "private:stream" nicht öffnen. Datei konnte nicht erstellt werden". On other user accounts, everything works as expected. Also, when changing the path for temporary files from the 8-character form (which is the default) to the long path name form, loading succeeds also on that user account with the umlaut.
sw->pjentsch: I executed the following macro sfa = createUnoService("com.sun.star.ucb.SimpleFileAccess") inputstream = sfa.openFileRead("file:///filename") dim props(0) as new com.sun.star.beans.PropertyValue props(0).Name="InputStream" props(0).Value=inputstream doc =StarDesktop.loadcomponentfromurl("private:stream","_blank",0,props()) and the file is perfectly loaded. Additionally I changed the temp variable to something that contains umlauts ... what do I miss ?
sw->pjentsch: any updates ?
thanks, sorry. right now I don't have the time to create a testcase for this... I'll get back to this in january :-)
erm, some additional info: we're developing a java application which embeds OOo. OOo fails to start in embedded mode (using the OOoBean with a pipe connection) on one particular user-account, which is hard to reproduce (I could in fact reproduce it on my machine, with the symptoms described here). The only special thing about that account is that it's the only one around with umlauts in the account name. anyway, I currently don't have the time to investigate further into this, but will get back to this (and give an update) in January.
Yes, this might have been related to a bug in our software where the soffice.exe was started from java with an additional environment variable, which unfortunately replaces all inherited environment variables, including the "TEMP" and "TMP" variables. This eventually led to OpenOffice.org trying to write temporary files to the CWD, where it didn't have write access. So this most probably isn't an OpenOffice.org bug. Also, the problem "Konnte Datei "private:stream" nicht öffnen" seems to be unrelated to the problem with umlauts (which I think is a problem in the officebean java classes, which has been addressed in the upcoming release, where the name for pipe connections gets quoted somehow, which it wasn't in the slightly outdated version of the officebean we're working with) Thanks
changing state to invalid
closing