Hi,
we use Conveyor to override some user actions and it works just fine like this:
<conveyor-config> <package-override name="users" namespace="/users"> <action-override name="editmyprofilepicture" class="our.package.EditMyProfilePictureAction"> <result name="success" type="velocity">/vm/user/editmyprofilepicture.vm.html</result> <result name="error" type="velocity">/vm/user/editmyprofilepicture-not-allowed.vm.html</result> </action-override> ...
Now, with Confluence 5.7 the path changed from "/users" to "/users/profile" and the configuration breaks, so Conveyor doesn't work. Is there a way to configure both paths in order to be downward compatible? As I see it is not just possible to define a second package-override since Conveyor doesn't work at all if there are missing actions ...
Thanks in advance for any help!
Kind regards
Manuel
Community moderators have prevented the ability to post new answers.
Since our config.xml is not a solid solution anymore we added a servlet filter to modify the URLs. I am not really satisfied with that but it works for now ...
We tried a bit around and finally this works:
<conveyor-config> <package-override name="users" namespace="/users"> <action-override name="editmyprofilepicture" class="our.package.EditMyProfilePictureAction"> <result name="success" type="velocity">/vm/user/editmyprofilepicture.vm.html</result> <result name="error" type="velocity">/vm/user/editmyprofilepicture-not-allowed.vm.html</result> </action-override> <action name="editmyprofilepicture" class="our.package.EditMyProfilePictureAction"> <result name="success" type="velocity">/vm/user/editmyprofilepicture.vm.html</result> <result name="error" type="velocity">/vm/user/editmyprofilepicture-not-allowed.vm.html</result> </action> ...
Now we can use both paths: /users/editmyprofilepicture.action and /users/profile/editmyprofilepicture.action. I don't really understand why, but ... well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try duplicating your package-override
and adding this too:
<package-override name="user-profiles" namespace="/users/profiles"> ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you, @David Simpson • AppFusions • v3, but unfortunately this doesn't work. We have to have the action "editmyprofilepicture" in both package-overrides (for c5.6 and c5.7) and since one of this actions can always not be found (depending on the version we compile for) conveyour just stops working. I will post a solution that works for us as answer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.