Spaces in notification macro not working (17.9)

Hi there,

I updated to the new XWiki 17.9 version. The activity macro crashed, so I switched to notifications as recommended. However, the spaces-restriction does not work at all. Here is my code:

{{notifications spaces=“Main.Departments” count=“5” displayOwnEvents=“true” useUserPreferences=“false”/}}

This does not give any output at all. The macro only works without space restriction. Any ideas?

Hello,

could you give a bit more information? Do you have any error in the logs related to this? Have you tried to perform changes in some pages in “Main.Departments” to see the result?

Maybe you can try to use displayMinorEvents=“true” displaySystemEvents=“true” to ensure the events you’re trying to see are not just filtered out. Also might worth trying to see events of a specific page using e.g. pages=“Main.Departments.WebHome” (if that page exists) instead of the spaces parameters to ensure it’s not a problem related to the space.

Hope that helps.

Thanks for the pointers! I actually figured it out - the space I mentioned included a “&” character (I used a dummy caption in my original post) which caused the macro to break down. It works fine otherwise.

1 Like

Seems we have an escape bug. This needs to be reported in jira so that we can fix it.

I’ve reported Loading...

Note that this is now fixed and will be available in XWiki 17.4.8+, 18.0.0+, 17.10.1+ and 16.10.16+. See Loading... for details.