On 01/29/10 09:25, Marek Szyda wrote:
thank you for the answer. To be more specific I'm using servlets and webdav
server for uploading and downloading files to OOo.
Indeed there is such possibility to add parameters for GET method
(loadComponentFromURL) and it is working well.
But using storeAsURL method I set parameters same way, like:
http://server_address:port
/webdav_context/file_path/file_name.odt?tid=some_id
on server I receive tid parameter as follows
tid = some_Id/file_name.odt
and path info from HttpServletRequest is '/file_path/' instead of
'/file_path/file_name.odt'. Without attaching any parameters to URL
everything is fine.
Maybe I'm wrong but it seems like storeAsURL is reordering request URL. I
have attached parameters other ways, like adding valid path as second
parameter to URL, but than file size on server is empty. Is there any OOo
work-around for this behaviour?
Sounds like a bug. (And I could well imagine that somewhere within
storeAsURL some URL re-writing takes place that first strips the last
path segment and later erroneously adds it back to the very end of the
URL, after the query part, instead of at the end of the path part. That
would explain your observations.) I suggest you file an issue.
-Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org