Bug 47364 - udm/query does not find anything when searching with objectPropertyValue=0
udm/query does not find anything when searching with objectPropertyValue=0
Status: CLOSED DUPLICATE of bug 40672
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 4.3
Other Linux
: P5 normal (vote)
: ---
Assigned To: Johannes Keiser
Dirk Wiesenthal
:
Depends on:
Blocks: 32167 47211
  Show dependency treegraph
 
Reported: 2018-07-17 09:44 CEST by Jannik Ahlers
Modified: 2023-01-26 11:32 CET (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 4: Minor Usability: Impairs usability in secondary scenarios
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.137
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jannik Ahlers univentionstaff 2018-07-17 09:44:31 CEST
I created an extended attribute named 'truefalse' using the udm syntax 'boolean'.
The boolean syntax saves the values 0 and 1.

$ udm users/user modify --dn uid=test,cn=users,dc=mydomain,dc=intranet --set truefalse=1
Object modified: uid=test,cn=users,dc=mydomain,dc=intranet

$ umc-client -U Administrator -P univention COMMAND udm/query -o objectProperty=truefalse -o objectPropertyValue=1 -f users/user                                                                   
14.07.18 11:09:15.906  DEBUG_INIT
Response: COMMAND
  data length   :  483
  message length:  416
  ---
  ARGUMENTS: udm/query
MIMETYPE   : application/json
  STATUS   : 200
  MESSAGE  : None
  RESULT   : [{'$dn$': 'uid=test,cn=users,dc=mydomain,dc=intranet', 'name': 'test', 'truefalse': '1', '$childs$': False, 'labelObjectType': 'Benutzer', 'path': 'intranet.mydomain:/users', '$operations$': ['add', 'edit', 'remove', 'search', 'move', 'copy'], '$flags$': [], 'objectType': 'users/user'}]

$ udm users/user modify --dn uid=test,cn=users,dc=mydomain,dc=intranet --set truefalse=0
Object modified: uid=test,cn=users,dc=mydomain,dc=intranet

$ umc-client -U Administrator -P univention COMMAND udm/query -o objectProperty=truefalse -o objectPropertyValue=0 -f users/user                                                                   
14.07.18 11:09:47.404  DEBUG_INIT
Response: COMMAND
  data length   :  198
  message length:  131
  ---
  ARGUMENTS: udm/query
MIMETYPE   : application/json
  STATUS   : 200
  MESSAGE  : None
  RESULT   : {'status': 200, 'headers': {'Vary': 'Content-Language', 'Content-Language': 'de-DE'}, 'message': None, 'result': [], 'error': None}
Comment 1 Johannes Keiser univentionstaff 2018-10-04 12:38:03 CEST

*** This bug has been marked as a duplicate of bug 40672 ***