Author: dkuleshov
Date: 2011-02-01 05:54:55 -0500 (Tue, 01 Feb 2011)
New Revision: 3908
Modified:
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/command/CopyCommand.java
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/command/MoveCommand.java
Log:
EXOJCR-1122: small fix
Modified:
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/command/CopyCommand.java
===================================================================
---
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/command/CopyCommand.java 2011-02-01
10:23:16 UTC (rev 3907)
+++
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/command/CopyCommand.java 2011-02-01
10:54:55 UTC (rev 3908)
@@ -49,7 +49,7 @@
/**
* Provides URI information needed for 'location' header in 'CREATED'
response
*/
- private static String destination;
+ private final String destination;
/**
* Empty constructor
Modified:
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/command/MoveCommand.java
===================================================================
---
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/command/MoveCommand.java 2011-02-01
10:23:16 UTC (rev 3907)
+++
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/command/MoveCommand.java 2011-02-01
10:54:55 UTC (rev 3908)
@@ -107,7 +107,8 @@
{
if (destination != null)
{
- return Response.status(HTTPStatus.CREATED).header(ExtHttpHeaders.LOCATION,
destination).build();
+ return Response.status(HTTPStatus.CREATED).header(ExtHttpHeaders.LOCATION,
destination)
+ .cacheControl(cacheControl).build();
}
// to save compatibility for deprecated WebDavServiceImpl.move(..), which
does not provide uriInfo
Show replies by date