snoopdave commented on code in PR #161:
URL: https://github.com/apache/roller/pull/161#discussion_r4238340981
##########
app/src/main/java/org/apache/roller/weblogger/webservices/atomprotocol/MediaCollection.java:
##########
@@ -216,13 +201,14 @@ public AtomMediaResource getMediaResource(AtomRequest
areq) throws AtomException
throw new AtomNotAuthorizedException("Not authorized to edit
weblog: " + handle);
}
if (pathInfo.length > 1) {
- try {
+ try {
// Parse pathinfo to determine file path
String filePath = filePathFromPathInfo(pathInfo);
MediaFile mf = fmgr.getMediaFileByOriginalPath(website,
filePath);
Review Comment:
Fixed. A missing file now returns 404, and so does PUT to a missing
resource. Tests added.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]