mraible opened a new pull request, #316: URL: https://github.com/apache/roller/pull/316
Four AtomPub (and one MetaWeblog) changes: - **Publish permission on update.** An AtomPub entry update that would publish or schedule the entry now requires the `POST` permission, as the XML-RPC handlers already do, so a Limited member can still edit a draft through AtomPub but not publish it. A refused update answers 401, through the existing `AtomNotAuthorizedException`. - **Upload size.** Media uploads and replacements stop reading the body once it passes `uploads.file.maxsize` and answer 413, instead of writing the whole body to a temporary file before checking the size. - **Scheduled entries.** A future-dated entry is marked SCHEDULED before tag counts are updated, so its tags are counted once, when it goes live. `JPAWeblogEntryManagerImpl` decides SCHEDULED before updating tag aggregates too, and AtomPub updates that move an entry into or out of PUBLISHED refresh its tag counts as the entry editor does. - **Author email.** AtomPub entries and MetaWeblog post structs include the entry creator's email address only for the creator; other weblog members see the user name. Weblog email addresses and templates are unchanged. Tests: `EntryCollectionPermissionTest` (new), plus cases in `RollerAtomProtocolTest`, `MediaCollectionPathTest` and `XMLRPCWeblogPermissionTest`. Six of the new cases fail without the change. `mvn test` passes (755 tests). CHANGES entries for this and the related fixes will come in one PR. -- 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]
