mraible opened a new pull request, #308:
URL: https://github.com/apache/roller/pull/308

   `MediaResourceServlet` looks a media file up by its ID. It now also checks 
that the file belongs to the weblog named in the address 
(`/<handle>/mediaresource/<id>`, or 
`/roller-ui/rendering/media-resources/<handle>/<id>` behind it) and answers 404 
otherwise, the same as for an unknown ID.
   
   Links Roller writes for media files already use the file's own weblog, so 
they're unaffected.
   
   - `MediaResourceServletTest` covers a file at its own weblog's address 
(served), at another weblog's address (404) and an unknown ID (404). The second 
case fails without the change.
   - `mvn test` passes (752 tests).
   


-- 
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]

Reply via email to