You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by th...@apache.org on 2006/03/16 16:53:02 UTC

svn commit: r386362 - in /lenya/trunk/src/modules/webdav: java/src/org/apache/lenya/cms/usecases/webdav/Put.java sitemap.xmap

Author: thorsten
Date: Thu Mar 16 07:53:00 2006
New Revision: 386362

URL: http://svn.apache.org/viewcvs?rev=386362&view=rev
Log:
treating xml and binaries the same

Modified:
    lenya/trunk/src/modules/webdav/java/src/org/apache/lenya/cms/usecases/webdav/Put.java
    lenya/trunk/src/modules/webdav/sitemap.xmap

Modified: lenya/trunk/src/modules/webdav/java/src/org/apache/lenya/cms/usecases/webdav/Put.java
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/modules/webdav/java/src/org/apache/lenya/cms/usecases/webdav/Put.java?rev=386362&r1=386361&r2=386362&view=diff
==============================================================================
--- lenya/trunk/src/modules/webdav/java/src/org/apache/lenya/cms/usecases/webdav/Put.java (original)
+++ lenya/trunk/src/modules/webdav/java/src/org/apache/lenya/cms/usecases/webdav/Put.java Thu Mar 16 07:53:00 2006
@@ -124,8 +124,7 @@
 
             if (!hasErrors()) {
               try {
-                SourceUtil.copy(resolver, sourceUri, doc.getSourceURI());
-                //SourceUtil.copy(resolver, sourceUri, destinationUri, true);
+                SourceUtil.copy(resolver, sourceUri, doc.getSourceURI(), true);
               } catch (Exception e) {
                 addErrorMessage("invalid source xml. Full exception: "+ e);
               }

Modified: lenya/trunk/src/modules/webdav/sitemap.xmap
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/modules/webdav/sitemap.xmap?rev=386362&r1=386361&r2=386362&view=diff
==============================================================================
--- lenya/trunk/src/modules/webdav/sitemap.xmap (original)
+++ lenya/trunk/src/modules/webdav/sitemap.xmap Thu Mar 16 07:53:00 2006
@@ -100,7 +100,7 @@
           | you can do that here. This is the pipeline that will
           | generate the input for the PUT method.
           + -->
-      <map:match pattern="request/PUT/xml">
+<!--      <map:match pattern="request/PUT/xml">
         <map:generate type="stream">
           <map:parameter name="defaultContentType" value="text/xml" />
         </map:generate>
@@ -109,10 +109,10 @@
         </map:act>
         <map:transform src="fallback://lenya/xslt/util/strip_namespaces.xsl"/>
         <map:serialize type="xml" />
-      </map:match>
+      </map:match>-->
 
       <!-- Read the request for binaries PUT -->
-      <map:match pattern="request/PUT/odt">
+      <map:match pattern="request/PUT/*">
         <map:read type="request"/>
       </map:match>
       



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org