Bug #1239
mercury not setting error status on error returns
100%
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 14 years ago
- Target version changed from Sprint-2011.03 to Sprint-2011.04
- Position set to 42
#2 Updated by Robert Waltz almost 14 years ago
- Milestone set to CCI-0.5
#3 Updated by Robert Waltz almost 14 years ago
- Status changed from New to Closed