Author: deepal
Date: Mon Jan 14 02:03:25 2008
New Revision: 12202

Log:

fixing REGISTRY-57

Modified:
   
trunk/registry/modules/core/src/main/java/org/wso2/registry/jdbc/dao/VersionedResourceDAO.java

Modified: 
trunk/registry/modules/core/src/main/java/org/wso2/registry/jdbc/dao/VersionedResourceDAO.java
==============================================================================
--- 
trunk/registry/modules/core/src/main/java/org/wso2/registry/jdbc/dao/VersionedResourceDAO.java
      (original)
+++ 
trunk/registry/modules/core/src/main/java/org/wso2/registry/jdbc/dao/VersionedResourceDAO.java
      Mon Jan 14 02:03:25 2008
@@ -21,6 +21,7 @@
 import org.wso2.registry.RegistryConstants;
 import org.wso2.registry.Resource;
 import org.wso2.registry.RegistryException;
+import org.wso2.registry.User;
 import org.wso2.registry.utils.AuthorizationUtil;
 import org.wso2.registry.jdbc.DatabaseConstants;
 import org.wso2.usermanager.Realm;
@@ -909,7 +910,7 @@
             throws SQLException {
 
         Resource oldArtifact = getResourceByID(resourceId, toVersion, 
connection);
-
+        oldArtifact.setLastUpdaterUserName(User.getCurrentUser());
         String plainPath = oldArtifact.getPath();
         if (oldArtifact.getPath().indexOf("?v=") != -1) {
             String[] parts = oldArtifact.getPath().split("\\?v=");

_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev

Reply via email to