[OAI-implementers] error questions

lfeng lfeng@kent.edu
Mon, 24 Jun 2002 23:25:55 -0400


Correct me if I'm wrong. The arguments specified for the verbs are 'required' 
but may not be the only arguments being passed to the provider. I doubt the 
badArgument error applies in this case. If verb=Identify is a valid argument 
and no other 'required' arguments is missing/dup/illegal, then the server 
should ignor the other arguments (or one may implement their own additional 
"features" using extra arguments).

Louis
Dept. CS, KSU


>===== Original Message From comyn@utk.edu =====
>   I know the protocol states that a single error is enough to trigger
>an error response but it seems to imply that all codes should be
>returned.
>   If in the case of the illegal argument, where a value like
>test=zzzzzz is sent, should this short circuit the testing process
>and jump straight to the error response without testing from, until,
>set, etc., since someone could be trying to break something?
>
>  Should a multiple argument error be "badArgument" and then should we
>indicate which word was repeated?  (example below)
>
>   repository/oai?verb=Identify&set=set1&from=2000-01-01&set=set2
>
>errors:
><error code="badArgument">The query contained an illegal
>argument--set</error>
><error code="badArgument">The query contained an illegal
>argument--from</error>
><error code="badArgument">The query contained an illegal
>argument--set</error>
>
>  Are these all of the codes or should there be another one because
>Identify should have no other parameters?
>
>--Paul Cummins
>Univ. of Tenn. Library
>
>
>_______________________________________________
>OAI-implementers mailing list
>OAI-implementers@oaisrv.nsdl.cornell.edu
>http://oaisrv.nsdl.cornell.edu/mailman/listinfo/oai-implementers