Skip to content

fix(sonar): correctness and security - #1985

Merged
lbroudoux merged 1 commit into
microcks:1.13.xfrom
Caesarsage:sonar-batch2-correctness-security
Mar 10, 2026
Merged

lbroudoux merged 1 commit into
microcks:1.13.xfrom
Caesarsage:sonar-batch2-correctness-security

Conversation

@Caesarsage

Copy link
Copy Markdown
Contributor

Address Sonar issues in listener/task/controller paths:

  • avoid Optional#get without presence check
  • preserve interrupt status on InterruptedException
  • catch Exception instead of Throwable
  • replace generic throws Exception with specific checked exceptions
  • remove user-controlled value from webhook operationId error log path

(cherry picked from commit bdead9d) from #1971

Related issue(s)

#1883

Address Sonar issues in listener/task/controller paths:\n- avoid Optional#get without presence check\n- preserve interrupt status on InterruptedException\n- catch Exception instead of Throwable\n- replace generic throws Exception with specific checked exceptions\n- remove user-controlled value from webhook operationId error log path\n\nValidated with:\n- mvn -pl webapp -Dtest=ListenerCommonsTest test\n- mvn -pl webapp -DskipTests test-compile

Signed-off-by: caesarsage <[email protected]>
(cherry picked from commit bdead9d)

@lbroudoux lbroudoux left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the enhancements. This is well done!

@lbroudoux lbroudoux added kind/task java Pull requests that update Java code kind/enhancement labels Mar 10, 2026
@lbroudoux lbroudoux added this to the Next milestone Mar 10, 2026
@lbroudoux
lbroudoux merged commit 28da61c into microcks:1.13.x Mar 10, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

java Pull requests that update Java code kind/task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants