[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Handle-info] resovleHandle method query



Hi Scott,

You are right that that method is supposed to return an empty array if the handle exists but has no values of the specified types. This might be related to the server since they list of types are sent along with the resolution method. Can you examine your access log to see what response code is being returned for that query? That should indicate whether the server is responsible for the "handle not found" response or if it is a bug in the client. I suspect that it is something on the server side, especially if your server is using something other than the default handle storage component.

Thanks,
Sean

On Aug 20, 2009, at 9:58 PM, Scott Yeadon wrote:

Hi,

Just a question on the handle API. If I use the following Resolver class resolveHandle method:
public HandleValue[] resolveHandle(String handle, String typeList[], boolean secure)


and the handle does not contain any values of the type(s) in typeList, a HandleException with an error of HANDLE_DOES_NOT_EXIST is thrown. The hdl6.2.5_02 API docs state "The requested handle values are then extracted from the response and returned (or an exception is thrown if there was an error). " When a value with a type in typeList is present it behaves as I would expect.

Is this a bug or the expected behaviour? I was hoping for a null or empty array to be returned if the handle actually existed. It's no biggie since I can use one of the other methods and post-filter but if it's not me doing something dumb it might be good to either log as a bug for a future release or provide clarification in the API docs.

Thanks.

Scott.


_______________________________________________ Handle-Info mailing list Handle-Info@cnri.reston.va.us http://www.handle.net/mailman/listinfo/handle-info



_______________________________________________
Handle-Info mailing list
Handle-Info@cnri.reston.va.us
http://www.handle.net/mailman/listinfo/handle-info