[13825] in Athena Bugs
sun4 [7.7T]: moira (server)
daemon@ATHENA.MIT.EDU (Jonathon Weiss)
Fri Sep 8 19:24:59 1995
Date: Fri, 8 Sep 1995 19:24:48 -0400
From: Jonathon Weiss <jweiss@MIT.EDU>
To: bugs@MIT.EDU
Cc: jweiss@MIT.EDU
System name: the-other-woman
Type and version: SPARC/Classic 7.7T
Display type: cgthree
What were you trying to do?
delete all of the cnames for a machine
What went wrong?
The moira server is not consistant in it's handling of
wildcards. Specifically if I specify * as the cname in a show cnames
query (and specify a host) it will give me all of the cnames for that
host. However, if I do the same thing in a delete cnames query it
fails with a no such record error.
What should have happened?
I would have expected the wildcard to work in both cases
Yo, got any documentation, or other info?
Yeah, here are the queries I performed:
1. (show) Get host alias information.
2. (add) Add a new host alias.
3. (delete) Delete this alias.
4. (verbose) Toggle Verbosity of Delete.
r. (return) Return to previous menu.
t. (toggle) Toggle logging on and off.
q. (quit) Quit.
Command: show * tow
Get host alias information
Alias Name (Cname): *
Canonical Host Name: tow
Alias: TOW.MIT.EDU Canonical Name: THE-OTHER-WOMAN.MIT.EDU
Command: delete * THE-OTHER-WOMAN.MIT.EDU
Delete this alias
Alias Name (Cname): *
Canonical Host Name: THE-OTHER-WOMAN.MIT.EDU
moira: No records in database match query in delete_hostalias
Command:
and here are teh logs that were generated:
Sep 8 19:17:28 moirad[#4328]: query[2]: "get_hostalias", "*", "THE-OTHER-WOMAN.MIT.EDU"
Sep 8 19:17:49 moirad[#4328]: Query complete.
Sep 8 19:18:24 moirad[#4328]: query[2]: "delete_hostalias", "*", "THE-OTHER-WOMAN.MIT.EDU"
Sep 8 19:18:24 moirad[#4328]: No records in database match query (Query failed)
Sep 8 19:18:24 moirad[#4328]: Query complete.