Bug 45231

Summary: Not all groups of user reports are shown
Product: UCS Reporter: Florian Best <best>
Component: UMC - ReportsAssignee: Florian Best <best>
Status: CLOSED FIXED QA Contact: Johannes Keiser <keiser>
Severity: normal    
Priority: P5 CC: gohmann
Version: UCS 4.2   
Target Milestone: UCS 4.2-1-errata   
Hardware: Other   
OS: Linux   
What kind of report is it?: Bug Report What type of bug is this?: 5: Major Usability: Impairs usability in key 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.171 Enterprise Customer affected?: Yes
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: 2017081721000473 Bug group (optional): Error handling, External feedback
Max CVSS v3 score:
Bug Depends on:    
Bug Blocks: 45241    
Attachments: patch for UCS 4.1
patch (UCS 4.2-1)

Description Florian Best univentionstaff 2017-08-21 15:54:11 CEST
Created attachment 9130 [details]
patch for UCS 4.1

The user report lists all groups of a user. But only if they match the regex "^[^(s\-)([a\-)(i\-)(h\-)]".

So groups starting with s, a, i, h and - aren't shown.
Code exists since the initial import into SVN (r1774).
Comment 1 Florian Best univentionstaff 2017-08-21 15:57:31 CEST
Created attachment 9131 [details]
patch (UCS 4.2-1)
Comment 2 Florian Best univentionstaff 2017-08-22 11:47:02 CEST
Patch has been applied.

univention-directory-reports (9.0.1-4):
r82397 | Bug #45231: all groups are shown in PDF user reports

univention-directory-reports.yaml:
r82398 | YAML Bug #45231
Comment 3 Johannes Keiser univentionstaff 2017-08-22 14:28:57 CEST
Groups can only start with letters or numbers.
Tested with:
for i in {a..z}-test {0..9}-test {A..Z}--test; do udm groups/group create --set name="$i" --set users="uid=a,cn=users,dc=mydomain,dc=intranet"; done

Before patch:
Groups starting with (lower case) s, a, i and h are not shown in Standard Report (PDF)
After patch:
OK Groups starting with (lower case) s, a, i and h are shown in Standard Report (PDF)

(CSV Report not affected)

YAML: OK
-> verified
Comment 4 Arvid Requate univentionstaff 2017-08-30 16:29:45 CEST
<http://errata.software-univention.de/ucs/4.2/147.html>