[ 
https://issues.apache.org/jira/browse/HBASE-28662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17854740#comment-17854740
 ] 

Istvan Toth edited comment on HBASE-28662 at 6/13/24 12:46 PM:
---------------------------------------------------------------

The more elegant solution would be to have a separate class to represent a 
non-existent scanner resource, but a simple null check will do.


was (Author: stoty):
The more elegant solution would be to have a separate class to represent a 
non-existant scanner resource, but a simple null check will do.

> Removing missing scanner via REST should return 404
> ---------------------------------------------------
>
>                 Key: HBASE-28662
>                 URL: https://issues.apache.org/jira/browse/HBASE-28662
>             Project: HBase
>          Issue Type: Bug
>          Components: REST
>            Reporter: Istvan Toth
>            Assignee: Istvan Toth
>            Priority: Minor
>              Labels: pull-request-available
>
> We do not handle the case when the user is trying to remove a missing 
> scanner, and let an NPE bubble up to Jersey.
> We should check or catch the error and return 404 instead.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to