[opencms-dev] WebDAV: 'Error in repository while executing method "PUT"' for Images

Andrea Puddu docpuddu at tiscali.it
Thu Jul 8 11:29:57 CEST 2010


Hi Ahmed,
I can reproduce the issue we came across a few months ago.

Moreover I thinks it's an OpenCms bug since as discussed previously it 
seems that the malformed encoding error is thrown by a method for 
propertied writing which tries to write... a binary file.

05 Jul 2010 13:06:27,342 ERROR [pencms.webdav.CmsWebdavServlet:2069] 
Error in repository while executing method "PUT" for path 
"/agencies/media/10/07/05/example.jpg"
java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
    at java.util.Properties.loadConvert(Properties.java:552)
    at java.util.Properties.load0(Properties.java:375)
    at java.util.Properties.load(Properties.java:325)
    at 
org.opencms.file.wrapper.CmsResourceWrapperUtils.writePropertyFile(CmsResourceWrapperUtils.java:366)
    at 
org.opencms.file.wrapper.CmsResourceWrapperPropertyFile.writeFile(CmsResourceWrapperPropertyFile.java:372)
    at 
org.opencms.file.wrapper.CmsObjectWrapper.writeFile(CmsObjectWrapper.java:813)
    at 
org.opencms.repository.CmsRepositorySession.save(CmsRepositorySession.java:399)
    at org.opencms.webdav.CmsWebdavServlet.doPut(CmsWebdavServlet.java:2065)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:640)
    at 
org.opencms.webdav.CmsWebdavServlet.service(CmsWebdavServlet.java:2901)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
    at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    at java.lang.Thread.run(Thread.java:619)


You can find the whole story (and how to replicate the bug) here:
http://bugzilla.opencms.org/show_bug.cgi?id=1880

I'll really appreciate any contribution/suggestion if you have one.

Kind regards,
Andrea

---------------------------
Andrea Puddu
docpuddu at tiscali dot it
http://www.linkedin.com/in/andreapuddu
-------------------------------------------



A. Motaz ha scritto:
> Hello all,
>  
> I'm new to OpenCms, and I inherited a large website. Big learning 
> curve, but I'm doing relatively good so far hacking my way through and 
> slowly picking up pace.
>  
> But I'm stuck at one issue that I hope you can help me with (and 
> excuse my ignorance if it's too silly). I edit VFS files either using 
> the the Edit option from the workplace, or via WebDAV. My problem with 
> WebDAV is that, for some reason, I cannot replace/overwrite IMAGES. 
> All other files seem to be working OK, but when it comes to 
> downloading an image to the real file system, editing it, and putting 
> it back into the VFS, it gives an error "An error occurred copying 
> some or all of the selected files."
>  
> I am currently using the Web Folders method, but the same problem 
> happens with Eclipse and a little app called AnyClient.
>  
> Checking OpenCms (v7.0.5) logs, I found this exception when I try to 
> copy an image back to the VFS. Below are the first few lines of the 
> stack trace:
>  
> --- snip ---
> 23 Feb 2010 11:44:35,859 ERROR [pencms.webdav.CmsWebdavServlet:2063] 
> Error in repository while executing method "PUT" for path 
> "/vfspath/to/image.jpg"
> java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
>  at java.util.Properties.loadConvert(Unknown Source)
>  at java.util.Properties.load0(Unknown Source)
>  at java.util.Properties.load(Unknown Source)
>  at 
> org.opencms.file.wrapper.CmsResourceWrapperUtils.writePropertyFile(CmsResourceWrapperUtils.java:366)
> --- /snip ---
>  
> I seems to be a problem with the property file (which, btw, I do not 
> attempt to replace) It is also worth noting that it works fine if the 
> file does not already exist. Again, this only happens, so far, with 
> images only.
>  
> Any thoughts on how to fix this? Ideas are highly appreciated.
>  
> Thank in advance!
> Ahmed
> ------------------------------------------------------------------------
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev



More information about the opencms-dev mailing list