[jira] [Commented] (HBASE-7464) Sending HTML for 404 is unhelpul; please send short text, or no text, on errors

2012-12-30 Thread Andrew Purtell (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-7464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13541262#comment-13541262
 ] 

Andrew Purtell commented on HBASE-7464:
---

Thanks for the suggestion. This is Jersey's default behavior. I'll look into 
how to change it. Really quick Googling turns up this: 
http://stackoverflow.com/questions/12202328/jersey-remove-response-body-from-error
 Suggestions welcome.

 Sending HTML for 404 is unhelpul; please send short text, or no text, on 
 errors
 ---

 Key: HBASE-7464
 URL: https://issues.apache.org/jira/browse/HBASE-7464
 Project: HBase
  Issue Type: Bug
  Components: REST
Reporter: Chip Salzenberg
Priority: Minor

 The large HTML 404 page returned by Stargate is not helpful.  The REST 
 interface is not intended for humans to read, esp. when the client is known 
 to be a program because it's asking for binary, but really any time.  Nice 
 big readable error pages use bandwidth and clutter network traces to no 
 purpose.
 Please allow the 404 and other error pages to be configured away, or just 
 stop sending them (my preference).  If some body must be sent, a simple 
 text/plain Not found would be fine, I think.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (HBASE-7464) Sending HTML for 404 is unhelpul; please send short text, or no text, on errors

2012-12-30 Thread Andrew Purtell (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-7464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13541264#comment-13541264
 ] 

Andrew Purtell commented on HBASE-7464:
---

Maybe a custom ErrorHandler/ErrorPageErrorHandler at the Jetty level: 
http://wiki.eclipse.org/Jetty/Howto/Custom_Error_Pages 

 Sending HTML for 404 is unhelpul; please send short text, or no text, on 
 errors
 ---

 Key: HBASE-7464
 URL: https://issues.apache.org/jira/browse/HBASE-7464
 Project: HBase
  Issue Type: Bug
  Components: REST
Reporter: Chip Salzenberg
Priority: Minor

 The large HTML 404 page returned by Stargate is not helpful.  The REST 
 interface is not intended for humans to read, esp. when the client is known 
 to be a program because it's asking for binary, but really any time.  Nice 
 big readable error pages use bandwidth and clutter network traces to no 
 purpose.
 Please allow the 404 and other error pages to be configured away, or just 
 stop sending them (my preference).  If some body must be sent, a simple 
 text/plain Not found would be fine, I think.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (HBASE-7464) Sending HTML for 404 is unhelpul; please send short text, or no text, on errors

2012-12-30 Thread Chip Salzenberg (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-7464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13541266#comment-13541266
 ] 

Chip Salzenberg commented on HBASE-7464:


I think I found a way:

   
http://java.net/jira/browse/JERSEY-1189?focusedCommentId=341322page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_341322

a related Jersey bug report, in which a maintainer suggests to supply a dummy 
entity to the response - then nothing gets overwritten/reset by the container. 
 e.g.

{noformat}
return 
Response.status(Response.Status.NOT_FOUND).cacheControl(getCacheControl()).type(text/plain).entity(404
 Not Found).build();
{noformat}

Does this work for Stargate?

 Sending HTML for 404 is unhelpul; please send short text, or no text, on 
 errors
 ---

 Key: HBASE-7464
 URL: https://issues.apache.org/jira/browse/HBASE-7464
 Project: HBase
  Issue Type: Bug
  Components: REST
Affects Versions: 0.96.0, 0.94.5
Reporter: Chip Salzenberg
Assignee: Andrew Purtell
Priority: Minor

 The large HTML 404 page returned by Stargate is not helpful.  The REST 
 interface is not intended for humans to read, esp. when the client is known 
 to be a program because it's asking for binary, but really any time.  Nice 
 big readable error pages use bandwidth and clutter network traces to no 
 purpose.
 Please allow the 404 and other error pages to be configured away, or just 
 stop sending them (my preference).  If some body must be sent, a simple 
 text/plain Not found would be fine, I think.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (HBASE-7464) Sending HTML for 404 is unhelpul; please send short text, or no text, on errors

2012-12-30 Thread Andrew Purtell (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-7464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13541268#comment-13541268
 ] 

Andrew Purtell commented on HBASE-7464:
---

Thanks for the suggestion [~chipdude], I'll work up a patch.

 Sending HTML for 404 is unhelpul; please send short text, or no text, on 
 errors
 ---

 Key: HBASE-7464
 URL: https://issues.apache.org/jira/browse/HBASE-7464
 Project: HBase
  Issue Type: Bug
  Components: REST
Affects Versions: 0.96.0, 0.94.5
Reporter: Chip Salzenberg
Assignee: Andrew Purtell
Priority: Minor

 The large HTML 404 page returned by Stargate is not helpful.  The REST 
 interface is not intended for humans to read, esp. when the client is known 
 to be a program because it's asking for binary, but really any time.  Nice 
 big readable error pages use bandwidth and clutter network traces to no 
 purpose.
 Please allow the 404 and other error pages to be configured away, or just 
 stop sending them (my preference).  If some body must be sent, a simple 
 text/plain Not found would be fine, I think.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira