Bug 40747

Summary: numeric sort of DNS pointer records
Product: UCS Reporter: Florian Best <best>
Component: UMC - DNSAssignee: Florian Best <best>
Status: CLOSED FIXED QA Contact: Jürn Brodersen <brodersen>
Severity: normal    
Priority: P5 CC: brodersen, gohmann
Version: UCS 4.1   
Target Milestone: UCS 4.1-1-errata   
Hardware: Other   
OS: Linux   
See Also: https://forge.univention.org/bugzilla/show_bug.cgi?id=38878
http://forge.univention.org/bugzilla/show_bug.cgi?id=32027
What kind of report is it?: --- What type of bug is this?: ---
Who will be affected by this bug?: --- How will those affected feel about the bug?: ---
User Pain: Enterprise Customer affected?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: Bug group (optional): External feedback, Usability
Max CVSS v3 score:
Attachments: Screenshot

Description Florian Best univentionstaff 2016-02-22 16:25:04 CET
Created attachment 7495 [details]
Screenshot

The DNS pointer records are currently not sorted numerically.

The problem is that the values are transferred to the UMC frontend as strings instead of integers.
To get the information univention.admin.objects.description() is used. This calls syntax_class.to_string(). A handler can overwrite this with a 'description' function. I don't know if it is safe to return an integer there. So better fix it in UMC for all attributes with a short check if the string consists of only numeric values?
Comment 1 Florian Best univentionstaff 2016-02-22 18:14:11 CET
univention-management-console-module-udm (6.0.11-4):
r67618 | Bug #40747: sort PTR record (and number based properties) numerically

univention-management-console-module-udm.yaml:
r67618 | Bug #40747: sort PTR record (and number based properties) numerically
Comment 2 Florian Best univentionstaff 2016-03-16 12:38:42 CET
The fix has one problem: It doesn't sort items which aren't completely numeric e.g. '10.200' - This cannot be fixed with our current grid. We need dojo dgrid for this (Bug #32027).

The fix for sorting '10.200' in the tree has been committed:
r68133 | Bug #40747: fix sorting also in the tree view; Bug #38639: enhance formatter
Comment 3 Jürn Brodersen univentionstaff 2016-03-16 13:36:42 CET
What I checked:
Sorted DNS pointer records on the web interface.
Note: comment 2

Changes: OK.
YAML: OK.

→ VERIFIED
Comment 4 Florian Best univentionstaff 2016-03-18 06:48:59 CET
<http://errata.software-univention.de/ucs/4.1/133.html>