Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1082545

Summary: REST api - pattern expression with one letter changes all users containing the letter in name
Product: [JBoss] JBoss Enterprise Portal Platform 6 Reporter: mgottval <mgottval>
Component: PortalAssignee: Lucas Ponce <lponce>
Status: CLOSED NOTABUG QA Contact: Tomas Kyjovsky <tkyjovsk>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: epp-bugs, mvecera
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-04 08:20:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Query of users in User Management App none

Description mgottval 2014-03-31 09:54:13 UTC
Description of problem:

curl -i -H "Content-Type: application/zip" -u root:gtn -X PUT -T "template-user.zip" http://localhost:8080/rest/private/managed-components/template/user?importMode=merge&targetExpr=o

Using this URL, dashboards are updated to all users, whose names contain "o".
So demo, root and john are updated, but mary's dashboard stays as before. 
It is not clear what should happen using this expression.

Comment 2 Lucas Ponce 2014-03-31 16:42:20 UTC
Created attachment 880896 [details]
Query of users in User Management App

Hi, 

targetExpr delegates query in the UserDAOImpl component.

Attached you can see a similar result in the User Management app.

Responsible of this query is this module:

https://github.com/gatein/gatein-portal/blob/master/component/identity/src/main/java/org/exoplatform/services/organization/idm/UserDAOImpl.java#L399

I guess this is the standard behaviour for wildcards.

Lucas

Comment 3 Lucas Ponce 2014-04-04 08:20:58 UTC
I'm going to mark this one as not a bug as wilcards in targetExpr has same behaviour of User Management app.