Re: updating a person object
- Date: Tue, 29 Dec 1998 10:40:31 +0100
Michael van Elst mlelstv@localhost writes:
* On Mon, Dec 28, 1998 at 06:01:38PM +0100, Joao Luis Silva Damas wrote:
* > Hi,
* >
* > Therefore, sending a mail containing a delete followed by a creation shoul
* d be
* > safe (the
* > only possibility for it to go wrong would be if between the processing of
* the
* > deletion and the creation an
* > update taking place at the same time grabs the old nic handle. This is
* > extremely unlikely and impossible to do on purpose since it depends on mac
* hine
* > load, etc).
*
* It is not extremely unlikely as handles are reused immediately after
* deletion. To my knowledge the handle with the smallest number is
* assigned to new persons, so the only constraint to be met is that
* the initials are the same.
*
It is unlikely if you do the delete and the creation in the same mail
(specially if these are the only two items in the mail).
Even with nic handle reuse, the "impersonator" request must get in between the
processing of your deletion and the creation of the new object (normally less
than a second if both are in the same mail).
May be nic handle reuse would be something to talk about in RIPE 32 during the
db-wg meeting, Wilfried ?
*
* > Once again, if the object in the deletion is referred to by other DB objec
* ts
* > the deletion will fail. But in this case, so would the creation immediatel
* y
* > after it, since the nic handle would be in use.
*
* Are you sure that this feature is enabled on the 'production system' ?
Pretty sure. See example below:
***** Start example *****
Part of your update FAILED
> From: Joao Luis Silva Damas joao@localhost
> Subject:
> Date: Tue, 29 Dec 1998 10:32:22 +0100
> Msg-Id: <199812290932.KAA02188@localhost
For help see <http://www.ripe.net/db/> or
include 'help' in the subject line of your message
Objects without errors have been processed.
Delete FAILED: [person] JLSD1-RIPE (Joao Luis Silva Damas)
person: Joao Luis Silva Damas
address: RIPE Network Coordination Centre (NCC)
address: Singel 258
address: 1016 AB Amsterdam
address: The Netherlands
phone: +31 20 535 4444
fax-no: +31 20 535 4445
e-mail: joao@localhost
nic-hdl: JLSD1-RIPE
notify: joao@localhost
changed: roderik@localhost 19970926
source: RIPE
*ERROR*: Object still referenced by:
*ERROR*: 1 mntner object
*ERROR*: 1 role object
*ERROR*: cannot delete object that is still referenced
*ERROR*: by other objects in the database
****** End Example *****
Regards,
Joao
|