Project

General

Profile

Task #1125

Bug #1076: mn.create() not encoding PIDs correctly.

mn.create() returning 400 error for escaped identifiers

Added by Rob Nahf almost 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Chad Berkley
Category:
d1_libclient_java
Target version:
Start date:
2010-12-02
Due date:
% Done:

100%

Milestone:
Product Version:
*
Story Points:
Sprint:

Description

Further tests against MNode.create() using identifiers that need pct-escaping show that the call is returning a 400 error (bad request). I created a new test in d1_integration/...../D1ClientTest.java testCreateData_UnicodeIdentifier() to help debugging.

Example from recent test run:
***************** running test for testCreateData_UnicodeIdentfier - node http://cn-dev.dataone.org/knb/ *****************
restURL: http://cn-dev.dataone.org/knb/session/?qformat=xml&op=login
method: POST
restURL: http://cn-dev.dataone.org/knb/object/knb:testid:_common-unicode-ascii-escaped-%22%23%3C%3E%5B%5D%5C%5E%60%7B%7D%7C_2010335225920685?sessionid=D78E3095C7F90664CE010DB06F17BCBC
method: POST

History

#1 Updated by Chad Berkley almost 14 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Rob and I tracked this to a problem with tomcat passing backslash (%5C) characters in the URI. See story 1129 for more info.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)