roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r494185 - /incubator/roller/trunk/src/org/apache/roller/webservices/atomprotocol/RollerAtomHandler.java
Date Mon, 08 Jan 2007 20:16:23 GMT
Author: snoopdave
Date: Mon Jan  8 12:16:21 2007
New Revision: 494185

URL: http://svn.apache.org/viewvc?view=rev&rev=494185
Log:
Fixing get of media-link entry

Modified:
    incubator/roller/trunk/src/org/apache/roller/webservices/atomprotocol/RollerAtomHandler.java

Modified: incubator/roller/trunk/src/org/apache/roller/webservices/atomprotocol/RollerAtomHandler.java
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/src/org/apache/roller/webservices/atomprotocol/RollerAtomHandler.java?view=diff&rev=494185&r1=494184&r2=494185
==============================================================================
--- incubator/roller/trunk/src/org/apache/roller/webservices/atomprotocol/RollerAtomHandler.java
(original)
+++ incubator/roller/trunk/src/org/apache/roller/webservices/atomprotocol/RollerAtomHandler.java
Mon Jan  8 12:16:21 2007
@@ -503,16 +503,10 @@
                         pathInfo[2].substring(0, pathInfo[2].length() - ".media-link".length());
                     String handle = pathInfo[0];
                     WebsiteData website = 
-                        mRoller.getUserManager().getWebsiteByHandle(handle);
-                    
-                    // TODO: this must have broken with 3.0, but i don't know
-                    // how it's supposed to work so i can't really fix it
-                    // it's unlikely this was working properly before because
-                    // it was using an invalid path
-//                    File resource = 
-//                        new File("/resources" + File.separator + fileName);
-//                    return createAtomResourceEntry(website, resource);
-                    return null;
+                        mRoller.getUserManager().getWebsiteByHandle(handle);            
       
+                    WeblogResource resource = 
+                        mRoller.getFileManager().getFile(website, fileName);
+                    return createAtomResourceEntry(website, resource);
                 }
             }
             throw new AtomNotFoundException(



Mime
View raw message