Skip to content

Enable pre profile update action to allow modifying user claims at profile update#8124

Open
Lashen1227 wants to merge 14 commits into
wso2:feature/pre-update-profilefrom
Lashen1227:feat/pre-profile-update-claims
Open

Enable pre profile update action to allow modifying user claims at profile update#8124
Lashen1227 wants to merge 14 commits into
wso2:feature/pre-update-profilefrom
Lashen1227:feat/pre-profile-update-claims

refactor: remove redundant claim value handling logic in PreUpdatePro…

8cb1541
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded May 27, 2026 in 2m 13s

Annotations

Check failure on line 251 in components/user-mgt/org.wso2.carbon.identity.user.pre.update.profile.action/src/main/java/org/wso2/carbon/identity/user/pre/update/profile/action/internal/execution/PreUpdateProfileRequestBuilder.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 23 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=wso2_carbon-identity-framework&issues=AZ5pc5Fsz3YL1VXi3pV7&open=AZ5pc5Fsz3YL1VXi3pV7&pullRequest=8124

Check warning on line 440 in components/user-mgt/org.wso2.carbon.identity.user.pre.update.profile.action/src/main/java/org/wso2/carbon/identity/user/pre/update/profile/action/internal/execution/PreUpdateProfileResponseProcessor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this usage of 'Stream.collect(Collectors.toList())' with 'Stream.toList()' and ensure that the list is unmodified.

See more on https://sonarcloud.io/project/issues?id=wso2_carbon-identity-framework&issues=AZ5pc5I6z3YL1VXi3pWE&open=AZ5pc5I6z3YL1VXi3pWE&pullRequest=8124

Check warning on line 446 in components/user-mgt/org.wso2.carbon.identity.user.pre.update.profile.action/src/main/java/org/wso2/carbon/identity/user/pre/update/profile/action/internal/execution/PreUpdateProfileResponseProcessor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this usage of 'Stream.collect(Collectors.toList())' with 'Stream.toList()' and ensure that the list is unmodified.

See more on https://sonarcloud.io/project/issues?id=wso2_carbon-identity-framework&issues=AZ5pc5I6z3YL1VXi3pWF&open=AZ5pc5I6z3YL1VXi3pWF&pullRequest=8124

Check warning on line 79 in components/user-mgt/org.wso2.carbon.identity.user.pre.update.profile.action/src/main/java/org/wso2/carbon/identity/user/pre/update/profile/action/internal/execution/PreUpdateProfileResponseProcessor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor your code to get this URI from a customizable parameter.

See more on https://sonarcloud.io/project/issues?id=wso2_carbon-identity-framework&issues=AZ5pc5I6z3YL1VXi3pWM&open=AZ5pc5I6z3YL1VXi3pWM&pullRequest=8124

Check failure on line 147 in components/user-mgt/org.wso2.carbon.identity.user.pre.update.profile.action/src/main/java/org/wso2/carbon/identity/user/pre/update/profile/action/internal/execution/PreUpdateProfileResponseProcessor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "Operation applied." 3 times.

See more on https://sonarcloud.io/project/issues?id=wso2_carbon-identity-framework&issues=AZ5pc5I6z3YL1VXi3pV9&open=AZ5pc5I6z3YL1VXi3pV9&pullRequest=8124

Check warning on line 633 in components/user-mgt/org.wso2.carbon.identity.user.pre.update.profile.action/src/main/java/org/wso2/carbon/identity/user/pre/update/profile/action/internal/execution/PreUpdateProfileResponseProcessor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof String string'

See more on https://sonarcloud.io/project/issues?id=wso2_carbon-identity-framework&issues=AZ5pc5I6z3YL1VXi3pWI&open=AZ5pc5I6z3YL1VXi3pWI&pullRequest=8124

Check warning on line 565 in components/user-mgt/org.wso2.carbon.identity.user.pre.update.profile.action/src/main/java/org/wso2/carbon/identity/user/pre/update/profile/action/internal/execution/PreUpdateProfileResponseProcessor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this usage of 'Stream.collect(Collectors.toList())' with 'Stream.toList()' and ensure that the list is unmodified.

See more on https://sonarcloud.io/project/issues?id=wso2_carbon-identity-framework&issues=AZ5pc5I6z3YL1VXi3pWG&open=AZ5pc5I6z3YL1VXi3pWG&pullRequest=8124

Check warning on line 380 in components/user-mgt/org.wso2.carbon.identity.user.pre.update.profile.action/src/main/java/org/wso2/carbon/identity/user/pre/update/profile/action/internal/execution/PreUpdateProfileResponseProcessor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Method has 9 parameters, which is greater than 7 authorized.

See more on https://sonarcloud.io/project/issues?id=wso2_carbon-identity-framework&issues=AZ5pc5I6z3YL1VXi3pV-&open=AZ5pc5I6z3YL1VXi3pV-&pullRequest=8124

Check warning on line 639 in components/user-mgt/org.wso2.carbon.identity.user.pre.update.profile.action/src/main/java/org/wso2/carbon/identity/user/pre/update/profile/action/internal/execution/PreUpdateProfileResponseProcessor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof String string'

See more on https://sonarcloud.io/project/issues?id=wso2_carbon-identity-framework&issues=AZ5pc5I6z3YL1VXi3pWJ&open=AZ5pc5I6z3YL1VXi3pWJ&pullRequest=8124

Check warning on line 228 in components/user-mgt/org.wso2.carbon.identity.user.pre.update.profile.action/src/main/java/org/wso2/carbon/identity/user/pre/update/profile/action/internal/execution/PreUpdateProfileResponseProcessor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof String string'

See more on https://sonarcloud.io/project/issues?id=wso2_carbon-identity-framework&issues=AZ5pc5I6z3YL1VXi3pWA&open=AZ5pc5I6z3YL1VXi3pWA&pullRequest=8124

Check failure on line 380 in components/user-mgt/org.wso2.carbon.identity.user.pre.update.profile.action/src/main/java/org/wso2/carbon/identity/user/pre/update/profile/action/internal/execution/PreUpdateProfileResponseProcessor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 21 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=wso2_carbon-identity-framework&issues=AZ5pc5I6z3YL1VXi3pWD&open=AZ5pc5I6z3YL1VXi3pWD&pullRequest=8124

Check failure on line 594 in components/user-mgt/org.wso2.carbon.identity.user.pre.update.profile.action/src/main/java/org/wso2/carbon/identity/user/pre/update/profile/action/internal/execution/PreUpdateProfileResponseProcessor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 45 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=wso2_carbon-identity-framework&issues=AZ5pc5I6z3YL1VXi3pWH&open=AZ5pc5I6z3YL1VXi3pWH&pullRequest=8124

Check warning on line 335 in components/user-mgt/org.wso2.carbon.identity.user.pre.update.profile.action/src/main/java/org/wso2/carbon/identity/user/pre/update/profile/action/internal/execution/PreUpdateProfileResponseProcessor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused "initiatorType" local variable.

See more on https://sonarcloud.io/project/issues?id=wso2_carbon-identity-framework&issues=AZ5pc5I6z3YL1VXi3pWC&open=AZ5pc5I6z3YL1VXi3pWC&pullRequest=8124

Check failure on line 189 in components/user-mgt/org.wso2.carbon.identity.user.pre.update.profile.action/src/main/java/org/wso2/carbon/identity/user/pre/update/profile/action/internal/execution/PreUpdateProfileResponseProcessor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 20 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=wso2_carbon-identity-framework&issues=AZ5pc5I6z3YL1VXi3pV_&open=AZ5pc5I6z3YL1VXi3pV_&pullRequest=8124

Check warning on line 740 in components/user-mgt/org.wso2.carbon.identity.user.pre.update.profile.action/src/main/java/org/wso2/carbon/identity/user/pre/update/profile/action/internal/execution/PreUpdateProfileResponseProcessor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Catch Exception instead of Throwable.

See more on https://sonarcloud.io/project/issues?id=wso2_carbon-identity-framework&issues=AZ5pc5I6z3YL1VXi3pWL&open=AZ5pc5I6z3YL1VXi3pWL&pullRequest=8124

Check warning on line 70 in components/user-mgt/org.wso2.carbon.identity.user.pre.update.profile.action/src/main/java/org/wso2/carbon/identity/user/pre/update/profile/action/internal/execution/PreUpdateProfileRequestBuilder.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor your code to get this URI from a customizable parameter.

See more on https://sonarcloud.io/project/issues?id=wso2_carbon-identity-framework&issues=AZ5pc5Fsz3YL1VXi3pV8&open=AZ5pc5Fsz3YL1VXi3pV8&pullRequest=8124

Check warning on line 305 in components/user-mgt/org.wso2.carbon.identity.user.pre.update.profile.action/src/main/java/org/wso2/carbon/identity/user/pre/update/profile/action/internal/execution/PreUpdateProfileResponseProcessor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof String string'

See more on https://sonarcloud.io/project/issues?id=wso2_carbon-identity-framework&issues=AZ5pc5I6z3YL1VXi3pWB&open=AZ5pc5I6z3YL1VXi3pWB&pullRequest=8124

Check warning on line 696 in components/user-mgt/org.wso2.carbon.identity.user.pre.update.profile.action/src/main/java/org/wso2/carbon/identity/user/pre/update/profile/action/internal/execution/PreUpdateProfileResponseProcessor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this usage of 'Stream.collect(Collectors.toList())' with 'Stream.toList()' and ensure that the list is unmodified.

See more on https://sonarcloud.io/project/issues?id=wso2_carbon-identity-framework&issues=AZ5pc5I6z3YL1VXi3pWK&open=AZ5pc5I6z3YL1VXi3pWK&pullRequest=8124