You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by "SourceForge.net" <no...@sourceforge.net> on 2003/09/10 15:36:25 UTC

[juddi-Developers] [ juddi-Bugs-803826 ] Registry.get_authToken fails to check return value

Bugs item #803826, was opened at 2003-09-10 09:08
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=434422&aid=803826&group_id=42875

Category: Authentication
Group: Development
Status: Open
Resolution: None
Priority: 5
Submitted By: andy cutright (acutright)
Assigned to: Steve Viens (sviens)
Summary: Registry.get_authToken fails to check return value

Initial Comment:
if the call to get_authToken fails because there is no 

publisher in the database, a null pointer exception is 

generated. 



the stack is:

           [java] java.lang.NullPointerException

           [java]    at 

org.juddi.client.RegistryProxy.execute

(RegistryProxy.java:128)

           [java]    at 

org.juddi.registry.Registry.get_authToken

(Registry.java:351)

           [java]    at SavePublisherSample.main

(SavePublisherSample.java:34)





you can use the save_publisher sample to test. make 

sure the publisher used for get_auithToken isn't 

registered in the database. 



here's the response that causes the null pointer:





HTTP/1.1 200 OK



Content-Type: text/xml; charset=utf-8



Date: Wed, 10 Sep 2003 15:58:27 GMT



Server: Apache Coyote/1.0



Connection: close







<?xml version="1.0" encoding="UTF-8"?>

<soapenv:Envelope 

xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelo

pe/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" 

xmlns:xsi="http://www.w3.org/2001/XMLSchema-

instance">

 

<soapenv:Body><Fault><faultcode>Client</faultcode><f

aultstring>Client 

Error</faultstring><faultactor></faultactor><detail><disp

ositionReport generic="2.0" operator="jUDDI.org" 

xmlns="urn:uddi-org:api_v2"><result 

errno="10150"><errInfo errCode="E_unknownUser">The 

user ID and password pair passed in a get_authToken 

message is not known to the Operator Site or is not 

valid.</errInfo></result></dispositionReport></detail></F

ault> </soapenv:Body>

</soapenv:Envelope>

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=434422&aid=803826&group_id=42875