New created styles will not be published by JMS plugin

Description

Any style addition will provoke this exception in JMS publisher:

This issue is provoked by this check:
https://github.com/geoserver/geoserver/blob/master/src/community/jms-cluster/jms-geoserver/src/main/java/org/geoserver/cluster/server/JMSCatalogListener.java#L103-L105

We actually want to make sure that the style resource is of type RESOURCE, so the check should be like this:

To reproduce this issue just create a style with the JMS plugin installed.

Environment

None

Status

Assignee

Nuno Oliveira

Reporter

Nuno Oliveira

Triage

None

Fix versions

Affects versions

Components

Priority

Medium
Configure