You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/org.wso2.carbon.identity.organization.management.application/src/main/java/org/wso2/carbon/identity/organization/management/application/OrgApplicationManagerImpl.java
Copy file name to clipboardExpand all lines: components/org.wso2.carbon.identity.organization.management.application/src/main/java/org/wso2/carbon/identity/organization/management/application/listener/OrganizationCreationHandler.java
Copy file name to clipboardExpand all lines: components/org.wso2.carbon.identity.organization.management.application/src/main/java/org/wso2/carbon/identity/organization/management/application/util/OrgApplicationScimFilterParser.java
+17-15Lines changed: 17 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -81,24 +81,26 @@ public boolean hasPathAttribute() {
81
81
}
82
82
83
83
// Regex to strictly match the desired filter format:
84
-
// organizations[orgId eq "<orgIdValue>"]
84
+
// organizations[orgId eq <orgIdValue>]
85
85
// or
86
-
// organizations[orgId eq "<orgIdValue>"].roles
86
+
// organizations[orgId eq <orgIdValue>].roles
87
+
//
87
88
// Breakdown:
88
-
// ^ - Start of the string
89
-
// organizations - Literal "organizations"
90
-
// \[ - Literal opening square bracket
91
-
// orgId - Literal "orgId"
92
-
// \s+eq\s+ - "eq" operator surrounded by one or more spaces
93
-
// \"([^\"]+)\" - Quoted organization ID. Group 1 captures the ID itself (without quotes).
94
-
// [^\"]+ matches one or more characters that are not a double quote.
95
-
// \] - Literal closing square bracket
96
-
// ( - Start of optional group for the path
97
-
// \.roles - Literal ".roles"
98
-
// )? - Makes the entire path group optional. Group 2 captures ".roles".
99
-
// $ - End of the string
89
+
// ^ - Start of the string
90
+
// organizations - Literal "organizations"
91
+
// \[ - Literal opening square bracket
92
+
// orgId - Literal "orgId"
93
+
// \s+eq\s+ - "eq" operator surrounded by one or more spaces
94
+
// (?: - Start of non-capturing group for quoted or unquoted value
95
+
// "([^\"]+)" - Group 1: quoted orgId (excluding quotes)
96
+
// | - OR
97
+
// ([^\s\]]+) - Group 2: unquoted orgId (up to space or closing bracket)
98
+
// )
99
+
// \] - Literal closing square bracket
100
+
// (\.roles)? - Optional ".roles" segment; Group 3 captures ".roles" if present
0 commit comments