Bug #1799
describe returning code 401 - Authentication Error
100%
History
#1 Updated by Rob Nahf about 13 years ago
- Category set to 275
- Assignee set to Ben Leinfelder
describe is throwing an authentication error, but should not require authentication (being Tier1).
***************** running test for testDescribe() vs. node: https://knb-test-1.test.dataone.org/knb/d1/mn ***************** [org.dataone.integration.it.ContextAwareTestCaseDataone]
20110922-13:49:27: [DEBUG]: pid = testCreate.1313019200146 [org.dataone.integration.it.ContextAwareTestCaseDataone]
20110922-13:49:27: [INFO]: restURL: https://knb-test-1.test.dataone.org/knb/d1/mn/object/testCreate.1313019200146 [org.dataone.client.RestClient]
20110922-13:49:27: [INFO]: method: HEAD [org.dataone.client.RestClient]
20110922-13:49:27: [WARN]: Authentication error: Unable to respond to any of these challenges: {} [org.apache.http.impl.client.DefaultHttpClient]
20110922-13:49:27: [INFO]: response httpCode: 401 [org.dataone.service.util.ExceptionHandler]
java.lang.IllegalArgumentException: InputStream cannot be null
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:120)
at org.dataone.service.util.ExceptionHandler.deserializeXml(ExceptionHandler.java:398)
at org.dataone.service.util.ExceptionHandler.deserializeXmlAndThrowException(ExceptionHandler.java:329)
at org.dataone.service.util.ExceptionHandler.deserializeAndThrowException(ExceptionHandler.java:191)
at org.dataone.service.util.ExceptionHandler.deserializeAndThrowException(ExceptionHandler.java:143)
at org.dataone.service.util.ExceptionHandler.filterErrorsHeader(ExceptionHandler.java:81)
at org.dataone.client.D1RestClient.doHeadRequest(D1RestClient.java:124)
at org.dataone.client.MNode.describe(MNode.java:353)
at org.dataone.integration.it.MNodeTier1IT.testMNRead_Describe(MNodeTier1IT.java:355)
#2 Updated by Rob Nahf about 13 years ago
- Position deleted (
5) - Position set to 5
#3 Updated by Ben Leinfelder about 13 years ago
- Status changed from New to Closed
using the standard isAuthorized() method to check READ permissions. Also updated the headers sent back so that they match the ones specified in the D1 docs