Branch: refs/heads/main
Home:
https://github.com/xwiki-contrib/application-discussions
Commit: 37e8d8950bd79c83e05fbe4ae837ce5217f8b9fb
https://github.com/xwiki-contrib/application-discussions/commit/37e8d8950bd…
Author: Simon Urli <simon.urli(a)xwiki.com>
Date: 2023-12-07 (Thu, 07 Dec 2023)
Changed paths:
M
discussions-store/discussions-store-api/src/main/java/org/xwiki/contrib/discussions/store/meta/DiscussionContextMetadata.java
M discussions-store/discussions-store-default/pom.xml
A
discussions-store/discussions-store-default/src/main/java/org/xwiki/contrib/discussions/store/internal/DiscussionRedirectionFilter.java
M
discussions-store/discussions-store-default/src/main/java/org/xwiki/contrib/discussions/store/internal/DocumentRedirectionManager.java
A
discussions-store/discussions-store-default/src/main/java/org/xwiki/contrib/discussions/store/internal/initializer/DiscussionRedirectXClassInitializer.java
M
discussions-store/discussions-store-default/src/main/resources/META-INF/components.txt
A
discussions-store/discussions-store-default/src/test/java/org/xwiki/contrib/discussions/store/internal/DiscussionRedirectionFilterTest.java
M
discussions-store/discussions-store-default/src/test/java/org/xwiki/contrib/discussions/store/internal/DocumentRedirectionManagerTest.java
Log Message:
-----------
DISCUSSION-48: Attachments are not displayed in message when the discussion uses a
redirect
Change implementation of the redirect to not rely on a standard XWiki.Redirect class, but
instead rely on a custom Discussion.Redirect class, which is handled by its own
RedirectionFilter: this component is performing a redirect only if the user tries to
access the page in view, letting any other action to be performed directly on the resource
(such as download).