Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
6.6.0
-
None
Description
When filters filter out all subscriptions for a page, the logic around the ajaxRequestScheduled flag in AtmosphereRequestHandler prevents rendering the AjaxRequestHandler, which results in an emtpy response. This is pushed to the client and passed to the Wicket Ajax framework, which fails to parse it, because it expects it to be an XML document with ajax-response root element. This appears in the Wicket Ajax debug window:
ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root <ajax-response> element
Note that because of
https://github.com/Atmosphere/atmosphere/issues/1042
Atmosphere does not pass the first empty message to callbacks, so the error above only happens when the second empty message is pushed.
Attachments
Issue Links
- duplicates
-
WICKET-5145 do not post an Atmosphere event if the filtered subscription set is empty
- Resolved