tdraier     2005/06/14 16:32:38 CEST

  Modified files:
    core/src/java/org/jahia/services/webdav DAVFileAccess.java 
  Log:
  works on multiple virtual sites
  
  Revision  Changes    Path
  1.15      +1 -1      
jahia/core/src/java/org/jahia/services/webdav/DAVFileAccess.java
http://jahia.mine.nu:8080/cgi-bin/cvsweb.cgi/jahia/core/src/java/org/jahia/services/webdav/DAVFileAccess.java.diff?r1=1.14&r2=1.15&f=h
  
  
  
  Index: DAVFileAccess.java
  ===================================================================
  RCS file: 
/home/cvs/repository/jahia/core/src/java/org/jahia/services/webdav/DAVFileAccess.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- DAVFileAccess.java        7 Jun 2005 09:46:58 -0000       1.14
  +++ DAVFileAccess.java        14 Jun 2005 14:32:38 -0000      1.15
  @@ -1035,7 +1035,7 @@
       }
   
       public WebdavResource getWebdavResource(String path, HttpServletRequest 
request) throws Exception{
  -        HttpURL newFileHttpURL = new 
HttpURL("http://localhost:8080/jahia/webdav/"+path);
  +        HttpURL newFileHttpURL = new 
HttpURL("http://localhost:8080/jahia/webdav/site/"+ns.token.getName()+ "/" + 
path);
           WebdavResource newFile = new 
WebdavResource(newFileHttpURL,WebdavResource.NOACTION, 0);
           String id = request.getSession(true).getId();
           newFile.getSessionInstance(newFileHttpURL).getState().addCookie(new 
Cookie(newFileHttpURL.getHost(), "JSESSIONID", id, "/", -1, false));
  

Reply via email to