[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [regrep] regrep 1/24/2007: Question on RS Section 3.1 Errata(Public Comment)
Hi Paul, Thank you for your valuable feedback on the regrep errata. Please see response inline below.... Monica J. Martin wrote: > On the Registry Services Errata, Section 3.1: > > Please clarify: > 1. How does the registry respond if a user does not supply the id > attribute for submitted objects? Since a SubmitObjectRequest MUST specify and id for an object not doing so is an invalid request. Therefor, the registry MUST return an InvalidRequestException SOAPFault. This is true for any invalid RegistryRequest as described in 2.1.1.4 in ebRS 3.0. Based on your feedback I think we should state this explicitly. > 2. How does the registry respond if a user supplies a URN, but it > collides with an existing one? This should definitely be made explicit. Thanks. Please see revised text based on this feedback below... > > Both were addressed in previous text not the current proposed updates. > The new text does explicitly describe how the registry will respond in > these cases. > ========== > Reference: Line 1150 original text: > A Submitter MAY optionally supply the id attribute for submitted > objects. If the Submitter supplies the id and it is a valid URN and > does not conflict with the id of an existing RegistryObject within the > home registry then the registry MUST honor the Submitter-supplied id > value and use it as the value of the id attribute of the object in the > registry. If the id is not a valid URN then the registry MUST return a > InvalidRequestException. If the id conflicts with the id of an > existing RegistryObject within the home registry then the registry > MUST return InvalidRequestException for an UpdateObjectsRequest and > treat it as an Update action for a SubmitObjectsRequest. If the client > does not supply an id for a submitted object then the registry MUST > generate a universally unique id. A registry generated id value MUST > conform to the format of a URN that specifies a DCE 128 bit UUID as > specified in [UUID]: (e.g. /urn:uuid:a2345678-1234-1234-123456789012/). > > Replace with new text: > > A Submitter MUST supply the id attribute for submitted objects. If the > Submitter supplies the id and it is a valid URN then the registry MUST > honor the Submitter-supplied id value and use it as the value of the > id attribute of the object in the registry. If the id is not a valid > URN then the registry MUST treat it as a temporary id and replace it, > and all references to it within the request, with a registry generated > universally unique id. A registry generated universally unique id > value MUST conform to the format of a URN that specifies a DCE 128 bit > UUID as specified in [UUID]: / (e.g. > urn:uuid:a2345678-1234-1234-123456789012)./ > > ========== > Please comment on the proposed text below to see if it clarifies things adequately. Thanks very much for your valuable feedback. ========================================== Proposed Fixed Text Based upon public comment: A Submitter MUST supply the id attribute for submitted objects. If the id is not a specified then the registry MUST return an InvalidRequestException. If the id and lid match the id and lid of an existing RegistryObject within the home registry, then the registry MUST treat it as an Update action upon the existing RegistryObject. If the id matches the id of an an existing RegistryObject within the home registry but the lid does not match that existing object's lid, then the registry MUST return an InvalidRequestException. If the Submitter supplies the id and it is a valid URN then the registry MUST honor the Submitter-supplied id value and use it as the value of the id attribute of the object in the registry. If the id is not a valid URN then the registry MUST treat it as a temporary id and replace it, and all references to it within the request, with a registry generated universally unique id. A registry generated universally unique id value MUST conform to the format of a URN that specifies a DCE 128 bit UUID as specified in [UUID]: / (e.g. urn:uuid:a2345678-1234-1234-123456789012). ========================================== -- Regards, Farrukh Web: http://www.wellfleetsoftware.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]