Bug 35005 - Unable to create a new folder specifying an arbitrary name
Summary: Unable to create a new folder specifying an arbitrary name
Status: NEEDINFO
Alias: None
Product: Slide
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.1
Hardware: PC Windows XP
: P2 major (vote)
Target Milestone: ---
Assignee: Slide Developer List
URL:
Keywords: FAQ
Depends on:
Blocks:
 
Reported: 2005-05-21 22:12 UTC by Zalan Mathe
Modified: 2005-05-21 16:18 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zalan Mathe 2005-05-21 22:12:13 UTC
I'm using Windows Explorer as a WEBDAV-Client and Jakarta Slide as a WEBDAV-
Server. My WebdavServlet is invoked by "http://localhost:8082/slide/"
Following scenario:
I made up a network connection via Windows XP (German Version).
Then I tried to create a new folder by clicking the right mouse button, 
via "new".
After specifying the name for the folder and refreshing the Windows Explorer 
with F5, the display name of the folder is "New Folder", in German "Neuer 
Ordner".
After debugging the slide code, I finally located the region, where the display 
name for folders was implemented. It is in the file "ContentImpl.java", in the 
package "org.apache.slide.content". Here is the code snippet of it(around line 
460):

// set the display name (in case of copy)
if (!Configuration.useBinding(namespace.getUri(token, strUri).getStore())) {
 if(revisionDescriptor.getName() == null || revisionDescriptor.getName().length
() == 0){
           revisionDescriptor.setName(new UriPath(strUri).lastSegment());
        }
}
Then I commented the If-Condition "if(revisionDescriptor.getName().....)", 
without changing the body of that condition. After compiling again, it worked. 
I could create a new folder by specifying my own name, which was displayed.
Comment 1 Unico Hommes 2005-05-22 00:18:24 UTC
Hmm, I thought this had been sorted out. The most lucid description of the
problem I found is here:
http://www.mail-archive.com/slide-user@jakarta.apache.org/msg05594.html

I can't find any code that sets the displayname to the last segment of the URI
on creation though. Are you using 2.1 final release? Could you try and create a
folder using DAVExplorer instead and then check the value of the displayname
property?