RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1459793 - [RFE] IPA GUI sorts reverse DNS alphabetically rather than numerically
Summary: [RFE] IPA GUI sorts reverse DNS alphabetically rather than numerically
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.5
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: IPA Maintainers
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-08 08:13 UTC by mpanaous
Modified: 2023-09-14 03:58 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-16 17:49:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description mpanaous 2017-06-08 08:13:54 UTC
Description of problem:
PA GUI sorts reverse DNS alphabetically rather than numerically

Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
adding reverse DNS zones in IPA GUI

Actual results:
When looking at reverse DNS zones in IPA GUI, it sorts the IP addresses (numeric) in an alphabetical order, leading to 1, 10, 100... rather than 1, 2, 3, ... 10, 11, ... and so on. This makes no sense. Reverse DNS zones, where the keys are numeric, should be sorted numerically.

Expected results:
to sort the zones in a numerical order 

Additional info:

Comment 2 Martin Bašti 2017-06-08 10:45:57 UTC
There is no guarantee that reverse zone records contains only numbers and PTR records. Reverse zone is just regular zone with special meaning and can contain everything that can contain master zone.

For example how to sort zone delegation records, classless reverse zone delegation?


zone 10.in-addr.arpa.
@           SOA ............
10.10       NS nameserver.subzone.example.com.
0/26.20     NS nameserver.classless.zone.example.com.
1.1.1       PTR host.example.com.
1.128/26.20 PTR host2.example.com.
info        TXT ":-)"

zone 0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa.
8.5.0.0.4.7.8.5.0.0.0.0.0.0.0.0 PTR host2.example.com.
1.5.0.4.4.7.c.f.0.0.0.0.0.0.0.0 PTR host2.example.com.


Ugly ^^ but possible.


I agree that numerical sort may be handy with usual zones with the only one number (not even case for IPv6 reverse zones) but we have to provide generic sorting that works in all cases and I'm not sure if there is something better than alphabetical sort.


This looks like wontfix for me, I don't think that is worth to create custom sorting for reverse zones (and any custom sort will have performance impact due splitting parts, converting types, etc. count with that zones are usually huge).

Comment 3 Petr Vobornik 2017-06-08 11:34:06 UTC
In addition to "what is the right sorting" question which Martin described, there is also implementation problem.

Web UI currently uses paging. For paging to work correctly, search results needs to be sorted on server side and not on Web UI side. If it would be sorted on WebUI side then it would sort only subset of records of a full list which is sorted by other algorithm. And therefore going to next page would return results from completely different part of the thought "properly sorted list".

So the options are:

1. use Web UI side sorting, but that would confuse users even more - would not behave as expected. Easy to implement.
2. use server side sorting - this is quite complex, must be done in Directory Server and involves special kind of indexes
3. disable paging, let result be limited by search size limit, sort the result on Web UI side. It is relatively doable with consistent results. But definitely not an easy fix.

Given that numerical sorting doesn't work for some situations and the complexity of implementation I don't think it is worth implementing.

Comment 4 Petr Vobornik 2017-06-16 15:22:14 UTC
Upstream ticket:
https://pagure.io/freeipa/issue/7023

Comment 9 Amy Farley 2019-08-16 17:49:39 UTC
I am going to push this one to UPSTREAM to continue there, and closing this one.

Comment 10 Red Hat Bugzilla 2023-09-14 03:58:57 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


Note You need to log in before you can comment on or make changes to this bug.