Bug 1459793
| Summary: | [RFE] IPA GUI sorts reverse DNS alphabetically rather than numerically | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | mpanaous |
| Component: | ipa | Assignee: | IPA Maintainers <ipa-maint> |
| Status: | CLOSED UPSTREAM | QA Contact: | ipa-qe <ipa-qe> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.5 | CC: | afarley, ipa-maint, mkosek, pasik, pvoborni, rcritten, tscherf |
| Target Milestone: | rc | Keywords: | FutureFeature |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-08-16 17:49:39 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: | |||
|
Description
mpanaous
2017-06-08 08:13:54 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). 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. Upstream ticket: https://pagure.io/freeipa/issue/7023 I am going to push this one to UPSTREAM to continue there, and closing this one. The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days |