Project

General

Profile

Bug #1239

mercury not setting error status on error returns

Added by Rob Nahf over 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Robert Waltz
Category:
d1_mercury
Target version:
Start date:
2011-01-18
Due date:
% Done:

100%

Milestone:
CCI-0.5
Product Version:
*
Story Points:
Sprint:

Description

Discovered by integration tests CNRestURLTest.java:

mercury does not seem to be setting the httpStatus code for error returns.

===================================================================
restURL: http://cn-dev.dataone.org/cn/object?qt=solr
method: GET
*** http code = 200
*** contentStream = <?xml version="1.0"?>

Invalid value for: 'start': start may not be null and must be between 0-9

===================================================================
restURL: http://cn-dev.dataone.org/cn/object?qt=solr&pageSize=10&start=0
method: GET
*** http code = 200
*** contentStream = <?xml version="1.0"?>

null null

===================================================================
restURL: http://cn-dev.dataone.org/cn/object?qt=solr&pageSize=10&start=0&Fred=boy
method: GET
*** http code = 200
*** contentStream = <?xml version="1.0"?>

null null

History

#1 Updated by Dave Vieglais about 13 years ago

  • Target version changed from Sprint-2011.03 to Sprint-2011.04
  • Position set to 42

#2 Updated by Robert Waltz about 13 years ago

  • Milestone set to CCI-0.5

#3 Updated by Robert Waltz about 13 years ago

  • Status changed from New to Closed

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)