Bug 40668 - It is not possible to search for the IP-address of a DNS Host record
It is not possible to search for the IP-address of a DNS Host record
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - DNS
UCS 4.2
Other Linux
: P5 normal (vote)
: UCS 4.4-0-errata
Assigned To: Florian Best
Jannik Ahlers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-02-15 18:00 CET by Florian Best
Modified: 2019-04-17 14:07 CEST (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.034
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Usability
Max CVSS v3 score:
best: Patch_Available+


Attachments
patch (1.21 KB, patch)
2016-02-15 18:00 CET, Florian Best
Details | Diff
patch (1.15 KB, patch)
2017-08-04 14:00 CEST, Florian Best
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2016-02-15 18:00:26 CET
Created attachment 7480 [details]
patch

Searching for a specific IP address in the DNS modules doesn't work.
This is because the UDM-Property 'a' is not in the mapping and therefore doesn't get rewritten in lookup().

Attached a patch which maps a → aRecord | aAAARecord.
Comment 1 Florian Best univentionstaff 2016-02-15 18:12:51 CET
The search result for the following properties are also always returning empty results:

DNS Alias record:
* Zone Time-to-Live
* Canonical name

Host Record:
* Mail Exchanger
* Text Record
* Zone Time-to-Live

Service record:
* Location → This isn't even a field there.
* Zone Time-to-Live

TXT Record:
* Name
* Zone Time-to-Live
Comment 2 Florian Best univentionstaff 2017-08-04 14:00:54 CEST
Created attachment 9093 [details]
patch

alternative patch using regex.
Comment 3 Florian Best univentionstaff 2019-04-11 08:57:16 CEST
The search for ip addresses has been repaired. It's now possible to map single filter values to multiple filter values, so that no need for regex replacing in the filter is required.

Aditionally some properties meanwhile work or have been removed from the search, as it also doesn't really make sense to search for them:

(In reply to Florian Best from comment #1)
> The search result for the following properties are also always returning
> empty results:
> 
> DNS Alias record:
> * Zone Time-to-Live
removed from searchable attributes
> * Canonical name
doesn't define substring match, so you can search for the full string

> Host Record:
> * Mail Exchanger
removed from searchable attributes
> * Text Record
meanwhile works
> * Zone Time-to-Live
removed from searchable attributes
> 
> Service record:
> * Location → This isn't even a field there.
meanwhile works
> * Zone Time-to-Live
removed from searchable attributes
> 
> TXT Record:
> * Name
meanwhile works
> * Zone Time-to-Live
removed from searchable attributes

univention-directory-manager-modules (14.0.12-19)
7677a61815c5 | Bug #40668: repair searches of DNS objects

univention-directory-manager-modules.yaml
5e5554cc547b | YAML Bug #40668
Comment 4 Jannik Ahlers univentionstaff 2019-04-11 11:56:09 CEST
Searching for IPs: OK
Searching forTTL was removed: OK
All the 'meanwhile works' fields work as well.

Installation: OK
YAML: FAIL, the 'fix' value is missing (there were other changes in the same package, still the value is empty)
Comment 5 Florian Best univentionstaff 2019-04-11 12:28:37 CEST
version added in YAML 23e06e0e68dd3630122195e40f4d7e86dc9fc736
(but it will change later again)
Comment 6 Jannik Ahlers univentionstaff 2019-04-11 16:13:33 CEST
Okay, yaml looks good now
Comment 7 Erik Damrose univentionstaff 2019-04-17 14:07:27 CEST
<http://errata.software-univention.de/ucs/4.4/50.html>