You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@syncope.apache.org by "SamuelGaro (via GitHub)" <gi...@apache.org> on 2025/10/31 09:20:57 UTC
[PR] [SYNCOPE-1926] performe only one update on Syncope after a SCIM PATCH [syncope]
SamuelGaro opened a new pull request, #1225:
URL: https://github.com/apache/syncope/pull/1225
(no comment)
--
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: dev-unsubscribe@syncope.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [SYNCOPE-1926] optimize user updates on SCIM PATCH [syncope]
Posted by "SamuelGaro (via GitHub)" <gi...@apache.org>.
SamuelGaro merged PR #1225:
URL: https://github.com/apache/syncope/pull/1225
--
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: dev-unsubscribe@syncope.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [SYNCOPE-1926] performe only one update on Syncope after a SCIM PATCH [syncope]
Posted by "github-advanced-security[bot] (via GitHub)" <gi...@apache.org>.
github-advanced-security[bot] commented on code in PR #1225:
URL: https://github.com/apache/syncope/pull/1225#discussion_r2480722686
##########
ext/scimv2/logic/src/main/java/org/apache/syncope/core/logic/SCIMDataBinder.java:
##########
@@ -558,6 +561,301 @@
new Attr.Builder(conf.getValue()).value(value.getValue()).build())));
}
+ protected <E extends Enum<?>> void setAttribute(
+ final Set<Attr> attrs,
+ final Set<AttrPatch> attrPatches,
+ final List<SCIMComplexConf<E>> confs,
+ final List<SCIMComplexValue> values) {
+
+ values.stream().filter(value -> value.getType() != null).forEach(value -> confs.stream().
+ filter(object -> value.getType().equals(object.getType().name())
+ && attrPatches.stream().noneMatch(attrPatch ->
+ attrPatch.getAttr().getSchema().equals(object.getValue()))).findFirst().
+ ifPresent(conf -> attrs.add(
+ new Attr.Builder(conf.getValue()).value(value.getValue()).build())));
+ }
+
+ public void addValues(
+ final UserUR userUR,
+ final UserTO before,
+ final SCIMUser user,
+ final Collection<String> resources,
+ final SCIMPatchOperation op) {
+ SCIMConf conf = confManager.get();
+
+ Set<String> expectedSchemas = new HashSet<>();
Review Comment:
## Container contents are never accessed
The contents of this container are never accessed.
[Show more details](https://github.com/apache/syncope/security/code-scanning/2346)
--
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: dev-unsubscribe@syncope.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org