Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RemoteApplicationEvent event serialization fails on remote style infos #155

Conversation

groldan
Copy link
Member

@groldan groldan commented Jan 13, 2022

Cascaded WMS stores configure layers with a default style that has no id, and produces a serialization error for the distributed event that's to be sent over the bus.

This fixes by using the "raw catalog" to process incoming events, and hence avoid potential issues with Catalog decorators (e.g. SecuredCatalogImpl), and ignoring the serialization of event payload for id-less styles with isRemote=true metadata in LayerInfo's.

Saves some possible trouble with catalog decorators
such as SecuredCatalogImpl
When adding a cascaded WMS, a LayerInfo's defaultStyle has no name nor id,
and the  metadata property set to . Can't be encoded
as a reference without id.
@groldan groldan added the bug Something isn't working label Jan 13, 2022
@groldan groldan merged commit 5d81d3d into geoserver:main Jan 13, 2022
@groldan groldan deleted the bug/event_serialization_bug_on_remote_style_infos branch January 13, 2022 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant