Author: deepal
Date: Fri Dec 21 01:25:34 2007
New Revision: 11652
Log:
fixing get log issue
Modified:
trunk/registry/modules/core/src/main/java/org/wso2/registry/app/AtomRegistry.java
trunk/registry/modules/core/src/main/java/org/wso2/registry/app/RemoteRegistry.java
Modified:
trunk/registry/modules/core/src/main/java/org/wso2/registry/app/AtomRegistry.java
==============================================================================
---
trunk/registry/modules/core/src/main/java/org/wso2/registry/app/AtomRegistry.java
(original)
+++
trunk/registry/modules/core/src/main/java/org/wso2/registry/app/AtomRegistry.java
Fri Dec 21 01:25:34 2007
@@ -828,6 +828,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:
trunk/registry/modules/core/src/main/java/org/wso2/registry/app/RemoteRegistry.java
==============================================================================
---
trunk/registry/modules/core/src/main/java/org/wso2/registry/app/RemoteRegistry.java
(original)
+++
trunk/registry/modules/core/src/main/java/org/wso2/registry/app/RemoteRegistry.java
Fri Dec 21 01:25:34 2007
@@ -454,6 +454,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