Getting 400 status code with geofence REST APIs while passing layer:* as param

I’m trying to create geofence rules via REST APIs.
even though via web UI we can create rule for all layers in one go. i.e. layer:* , If I pass same as param, I get error with code 400 and title : HTTP ERROR 400 Rule does not refer to a fixed layer . Even with the error, the rule is creating in GeoServer properly.

Is this the expected behaviour ?

Hi krishnaglodha1,

this error is usually triggered when you add LayerDetails in a rule that does not refer to a fixed layer.
The REST API in the standalone GeoFence application would not add the Rule since the rule creation and the details creation are within the same transaction; using the API in an embedded geofence setup, the rule is created because rule creation and limits checking/creation are two different calls.
You may want to open a jira ticket about that.

Cheers,
Emanuele