RSS Feed View Problem

Hello,
after update my Xwiki to 12.2 I have RSS Feed Viewing Problem (see screen). The plain code seems right, but it can not be viewing in menu or in my dashboard. :disappointed_relieved:

Hi,

can you check for errors in the logs or in the javascript console of your browser?

Hello @surli, here is:
The same errors

I don’t speak german so not easy to understand what happened but the red lines on XHR request don’t look good. Could you paste at least the end of the URL they refers too (after /xwiki/), it might help to see if it’s related to the notifications.
You might also be able to check the Network tab for those URLs to see what was the actual answer.
And if you have access to the Jetty or tomcat logs it might be helpful I guess.

Here is the last tomcat log:

HTTP/1.1" 200 8289

10.94.30.254 - - [02/Apr/2020:17:36:55 +0200] “GET /xwiki/bin/view/Main/ HTTP/1.1” 200 61182
10.94.30.254 - - [02/Apr/2020:17:36:55 +0200] “GET /xwiki/webjars/wiki%3Axwiki/xwiki-platform-tree-webjar/12.2/tree.min.css?evaluate=true HTTP/1.1” 200 31735
10.94.30.254 - - [02/Apr/2020:17:36:55 +0200] “GET /xwiki/bin/jsx/XWiki/Notifications/Code/NotificationsDisplayerUIX?language=de&docVersion=4.1 HTTP/1.1” 200 5055
10.94.30.254 - - [02/Apr/2020:17:36:55 +0200] “GET /xwiki/bin/jsx/XWiki/Notifications/Code/Macro/NotificationsMacro?language=de&docVersion=2.1 HTTP/1.1” 200 6423
10.94.30.254 - - [02/Apr/2020:17:36:55 +0200] “GET /xwiki/webjars/wiki%3Axwiki/xwiki-platform-tree-webjar/12.2/require-config.min.js?evaluate=true&minify=true HTTP/1.1” 200 374
10.94.30.254 - - [02/Apr/2020:17:36:55 +0200] “GET /xwiki/asyncrenderer/notifications/display/5ALERT%2F23xwiki%3AXWiki.khvastova-m%2F10%2Fnull%2F1290233681/user/xwiki%3AXWiki.khvastova-m/wiki/xwiki/10?clientId=10&timeout=500&wiki=xwiki HTTP/1.1” 400 813
10.94.30.254 - - [02/Apr/2020:17:36:55 +0200] “GET /xwiki/bin/get/XWiki/Notifications/Code/NotificationsDisplayerUIX?action=getUnreadCount&outputSyntax=plain&=1585841815202 HTTP/1.1" 200 48
10.94.30.254 - - [02/Apr/2020:17:36:55 +0200] “GET /xwiki/bin/get/TourCode/TourJson?xpage=plain&outputSyntax=plain&tourDoc=Main.WebHome HTTP/1.1” 200 3589
10.94.30.254 - - [02/Apr/2020:17:36:55 +0200] “GET /xwiki/bin/get/Main/WebHome?outputSyntax=plain&sheet=XWiki.ExportDocumentTree&filterHiddenDocuments=false&showAttachments=false&showTranslations=false&root=document%3Axwiki%3AMain.WebHome&showRoot=true&data=children&id=%23 HTTP/1.1” 200 553
10.94.30.254 - - [02/Apr/2020:17:36:55 +0200] “GET /xwiki/bin/get/Main/WebHome?outputSyntax=plain&sheet=XWiki.DocumentTree&showAttachments=false&showTranslations=false&exclusions=document%3Axwiki%3AFAQ.WebHome&exclusions=document%3Axwiki%3ASandbox.WebHome&exclusions=document%3Axwiki%3AHelp.WebHome&exclusions=document%3Axwiki%3AMenu.WebHome&exclusions=document%3Axwiki%3AXWiki.WebHome&exclusions=document%3Axwiki%3AExtension.WebHome&data=children&id=%23 HTTP/1.1” 200 1853
10.94.30.254 - - [02/Apr/2020:17:36:55 +0200] “GET /xwiki/bin/get/Main/WebHome?outputSyntax=plain&sheet=XWiki.DocumentTree&showAttachments=false&showTranslations=false&exclusions=document%3Axwiki%3AFAQ.WebHome&exclusions=document%3Axwiki%3ASandbox.WebHome&exclusions=document%3Axwiki%3AHelp.WebHome&exclusions=document%3Axwiki%3AMenu.WebHome&exclusions=document%3Axwiki%3AXWiki.WebHome&exclusions=document%3Axwiki%3AExtension.WebHome&data=children&id=document%3Axwiki%3AMain.WebHome HTTP/1.1” 200 1495
10.94.30.254 - - [02/Apr/2020:17:37:07 +0200] “GET /xwiki/bin/view/Dashboard/ HTTP/1.1” 200 65391
10.94.30.254 - - [02/Apr/2020:17:37:07 +0200] “GET /xwiki/webjars/wiki%3Axwiki/xwiki-platform-tree-webjar/12.2/tree.min.css?evaluate=true HTTP/1.1” 200 31735
10.94.30.254 - - [02/Apr/2020:17:37:07 +0200] “GET /xwiki/bin/jsx/XWiki/Notifications/Code/Macro/NotificationsMacro?language=de&docVersion=2.1 HTTP/1.1” 200 6423
10.94.30.254 - - [02/Apr/2020:17:37:07 +0200] “GET /xwiki/bin/jsx/XWiki/Notifications/Code/NotificationsDisplayerUIX?language=de&docVersion=4.1 HTTP/1.1” 200 5055
10.94.30.254 - - [02/Apr/2020:17:37:07 +0200] “GET /xwiki/webjars/wiki%3Axwiki/xwiki-platform-tree-webjar/12.2/require-config.min.js?evaluate=true&minify=true HTTP/1.1” 200 374
10.94.30.254 - - [02/Apr/2020:17:37:07 +0200] “GET /xwiki/asyncrenderer/notifications/display/5ALERT%2F23xwiki%3AXWiki.khvastova-m%2F10%2Fnull%2F1290233681/user/xwiki%3AXWiki.khvastova-m/wiki/xwiki/11?clientId=11&timeout=500&wiki=xwiki HTTP/1.1” 400 813
10.94.30.254 - - [02/Apr/2020:17:37:07 +0200] “GET /xwiki/asyncrenderer/notifications/display/5ALERT%2F23xwiki%3AXWiki.khvastova-m%2F10%2Fnull%2F-1304380197/user/xwiki%3AXWiki.khvastova-m/wiki/xwiki/12?clientId=12&timeout=500&wiki=xwiki HTTP/1.1” 400 813
10.94.30.254 - - [02/Apr/2020:17:37:07 +0200] “GET /xwiki/bin/get/TourCode/TourJson?xpage=plain&outputSyntax=plain&tourDoc=Dashboard.WebHome HTTP/1.1” 200 12
10.94.30.254 - - [02/Apr/2020:17:37:07 +0200] "GET /xwiki/bin/get/XWiki/Notifications/Code/NotificationsDisplayerUIX?action=getUnreadCount&outputSyntax=plain&
=1585841827657 HTTP/1.1” 200 48
10.94.30.254 - - [02/Apr/2020:17:37:08 +0200] “GET /xwiki/bin/get/Dashboard/WebHome?outputSyntax=plain&sheet=XWiki.ExportDocumentTree&filterHiddenDocuments=false&showAttachments=false&showTranslations=false&root=document%3Axwiki%3ADashboard.WebHome&showRoot=true&data=children&id=%23 HTTP/1.1” 200 548
10.94.30.254 - - [02/Apr/2020:17:37:08 +0200] “GET /xwiki/bin/get/Dashboard/WebHome?outputSyntax=plain&sheet=XWiki.DocumentTree&showAttachments=false&showTranslations=false&exclusions=document%3Axwiki%3AFAQ.WebHome&exclusions=document%3Axwiki%3ASandbox.WebHome&exclusions=document%3Axwiki%3AHelp.WebHome&exclusions=document%3Axwiki%3AMenu.WebHome&exclusions=document%3Axwiki%3AXWiki.WebHome&exclusions=document%3Axwiki%3AExtension.WebHome&data=children&id=%23 HTTP/1.1” 200 1853
10.94.30.254 - - [02/Apr/2020:17:37:08 +0200] “GET /xwiki/bin/get/Dashboard/WebHome?outputSyntax=plain&sheet=XWiki.DocumentTree&showAttachments=false&showTranslations=false&&data=children&id=%23 HTTP/1.1” 200 4506
10.94.30.254 - - [02/Apr/2020:17:37:08 +0200] “GET /xwiki/bin/get/Dashboard/WebHome?outputSyntax=plain&sheet=XWiki.DocumentTree&showAttachments=false&showTranslations=false&exclusions=document%3Axwiki%3AFAQ.WebHome&exclusions=document%3Axwiki%3ASandbox.WebHome&exclusions=document%3Axwiki%3AHelp.WebHome&exclusions=document%3Axwiki%3AMenu.WebHome&exclusions=document%3Axwiki%3AXWiki.WebHome&exclusions=document%3Axwiki%3AExtension.WebHome&data=path&id=document%3Axwiki%3ADashboard.WebHome HTTP/1.1” 200 462
10.94.30.254 - - [02/Apr/2020:17:37:16 +0200] “GET /xwiki/rest/notifications/rss?userId=xwiki%3AXWiki.khvastova-m&useUserPreferences=false&count=10&displayOwnEvents=true&displayMinorEvents=false&displaySystemEvents=false&displayReadEvents=true&wikis=&spaces=&pages=&users=&displayReadStatus=true&tags=&currentWiki=xwiki HTTP/1.1” 200 8289

I think this is the main Error

Looks like it indeed. What happens if you try to open that request in your browser directly? You might obtain a stacktrace that would help to find the root cause.
And you might want to check also the tomcat output logs (here you’re looking the request logs): you might get the stacktrace here too.

I think I know where is the issue: can you confirm you’re using Tomcat and you didn’t configured it to allow backslash and slash in URLs? With this kind of configuration: https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Installation/InstallationWAR/InstallationTomcat/#HAllowing222F22and225C22inpagenames

No, i don’t have these settings.

Ok thanks for the confirmation, it’s most likely a regression caused by a refactoring on notifications in 12.2. I created https://jira.xwiki.org/browse/XWIKI-17179 for it, we planned to perform a bug fix release so if everything goes well it should be fixed in 12.2.1 and released in the coming days.

In the meantime, you should be able to fix the issue by adding:

-Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true

in the CATALINA_OPTS environment variable of your Tomcat installation.

Thanks for reply @surli. Unfortunately it doesn’t work…

Here is again the errors this time in english. For me it looks like notifications macro doesnt work properly.
The Notification Macro page …/xwiki/bin/view/XWiki/Notifications/Code/Macro/NotificationsMacro exists and Flavor is also seems ok. But when i add {{notifications/}} Macro on the test page, it is empty.

So you mean you applied the setting to tomcat, restarted the server and you still get the same issue?

Now if you click on the request on the network tab, you should be able to see the response and the payload, like in this capture (payload is on the bottom when scrolling):

you might have some info there, could share the result?

Hello @surli, here is response:

Thanks for the screenshot. So it definitely confirms that the problem is related to the Tomcat configuration to accept / in the URLs. The setting I mentioned earlier should definitely work.

This may not be enough. The doc is at https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Installation/InstallationWAR/InstallationTomcat/#HAllowing222F22and225C22inpagenames

Check the last part for ex.

Hello all, thanks for reply.
My steps i have done:

  1. stop tomcat
  2. add the from you mentioned settings in my setenv.sh file
  3. start tomcat

I have xwiki on Debian 9 installed. setenv.sh is in /usr/share/tomcat8/bin/setenv.sh

Unfortunately the same error with the same response.

Update 12.2.1 fix the Problem. Thanks.

1 Like

:ok_hand:

Hello all,
i know it is really frustrating, but now i have another Problems with Activity stream. When i look for a page with Tag then i become a list of pages with this tag. And Right on the page is the activity Information to the pages. Seee screen, now it is all with Errors streams. Java script console Shows nothing.