Author: deepal
Date: Fri Dec 21 01:25:08 2007
New Revision: 11651
Log:
fixing get log issue
Modified:
branches/registry/0_1/modules/core/src/main/java/org/wso2/registry/app/AtomRegistry.java
branches/registry/0_1/modules/core/src/main/java/org/wso2/registry/app/RemoteRegistry.java
Modified:
branches/registry/0_1/modules/core/src/main/java/org/wso2/registry/app/AtomRegistry.java
==============================================================================
---
branches/registry/0_1/modules/core/src/main/java/org/wso2/registry/app/AtomRegistry.java
(original)
+++
branches/registry/0_1/modules/core/src/main/java/org/wso2/registry/app/AtomRegistry.java
Fri Dec 21 01:25:08 2007
@@ -855,6 +855,7 @@
feed.setId("http://wso2.org/registry,2007:logs");
feed.setTitle("Logs for the resource" + path);
feed.addLink("", "self");
+ feed.setUpdated(new Date());
for (LogEntry logentry : entries) {
Entry entry = abdera.getFactory().newEntry();
entry.setEdited(logentry.getDate());
Modified:
branches/registry/0_1/modules/core/src/main/java/org/wso2/registry/app/RemoteRegistry.java
==============================================================================
---
branches/registry/0_1/modules/core/src/main/java/org/wso2/registry/app/RemoteRegistry.java
(original)
+++
branches/registry/0_1/modules/core/src/main/java/org/wso2/registry/app/RemoteRegistry.java
Fri Dec 21 01:25:08 2007
@@ -450,6 +450,9 @@
boolean recentFirst) throws RegistryException {
Abdera abdera = new Abdera();
+ if(resourcePath == null || "".equals(resourcePath)){
+ resourcePath = "/";
+ }
AbderaClient abderaClient = new AbderaClient(abdera);
RequestOptions requestOptions = new RequestOptions();
requestOptions.addDateHeader("ToDate", to);
_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev