[MGNLWEBDAV-15] Node names aren't validated before creation Created: 28/Oct/09  Updated: 02/Dec/13  Resolved: 09/Nov/09

Status: Closed
Project: WebDAV (closed)
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0

Type: Bug Priority: Major
Reporter: Magnolia International Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MAGNOLIA-2098 Download of a file from a paragraph o... Closed
is related to MAGNOLIA-2929 Enhance unicode support Closed
supersession
is superseded by MGNLWEBDAV-18 Unicode support Closed
Template:
Acceptance criteria:
Empty

 Description   

When trying to create a folder with non-ascii characters (from a fs-mounted WebDAV), pascaläöü in this case:

2009-10-27 19:16:59,826 INFO  info.magnolia.cms.beans.config.MIMEMapping        : Cannot find MIME type for extension "_pascale%CC%80u%CC%88"
2009-10-27 19:17:00.416::WARN:  /magnolia-snapshot-demo/.webdav/resources/folders/
java.lang.RuntimeException: info.magnolia.cms.security.AccessDeniedException: User not allowed to Read path [/folders/pascale?u?]
        at info.magnolia.module.webdav.LocatorFactory.getResourcePath(LocatorFactory.java:76)
        at org.apache.jackrabbit.webdav.AbstractLocatorFactory.createResourceLocator(AbstractLocatorFactory.java:170)
        at org.apache.jackrabbit.webdav.simple.DavResourceImpl.getMembers(DavResourceImpl.java:564)
        at org.apache.jackrabbit.webdav.MultiStatus.addResourceProperties(MultiStatus.java:64)
        at org.apache.jackrabbit.webdav.server.AbstractWebdavServlet.doPropFind(AbstractWebdavServlet.java:447)
        at org.apache.jackrabbit.webdav.server.AbstractWebdavServlet.execute(AbstractWebdavServlet.java:235)

The exception reminds of MAGNOLIA-2098. (this happened while logged in as superuser)



 Comments   
Comment by Magnolia International [ 09/Nov/09 ]

Since we can't rename nodes "on the fly" like we do in the AdminCentral tree (at least not without digging much further in the Jackrabbit WebDAV code and the protocol), the only option is currently to prohibit such names.
See MGNLWEBDAV-18 and MAGNOLIA-2929 for further progress.

Generated at Mon Feb 12 11:10:56 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.