Aias00 opened a new issue, #6551:
URL: https://github.com/apache/shenyu/issues/6551

   ## Description
   `onUpdated` publishes `new ResourceChangedEvent(resource, before, 
EventTypeEnum.RULE_DELETE, ...)`. `RULE_DELETE` is `"DELETE:Rule"` with 
`DataEventTypeEnum.DELETE` and delete-color. A resource *update* is therefore 
recorded (and labeled in `ResourceChangedEvent.buildContext`) as a 
rule-deletion. The correct constant exists: `EventTypeEnum.RESOURCE_UPDATE`. No 
`PermissionServiceImpl` listener consumes `ResourceChangedEvent`, so functional 
permission state is unaffected — blast radius is the audit log.
   
   ## Location
   ```
   shenyu-admin/.../service/publish/ResourceEventPublisher.java:73-75
   ```
   
   ## Impact
   The audit trail records resource updates with the wrong event name/color and 
delete semantics.
   
   ## Suggested fix
   Pass `EventTypeEnum.RESOURCE_UPDATE`.
   
   ## Related existing issue(s)
   None
   
   _Identified during the 2026-08-02 audit; full list in 
[`docs/issue-candidates-2026-08-02.md`](docs/issue-candidates-2026-08-02.md)._


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to