You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/02/20 17:13:00 UTC

[jira] [Work logged] (KNOX-2230) Token State Service should throw UnknownTokenException instead of IllegalArgumentException

     [ https://issues.apache.org/jira/browse/KNOX-2230?focusedWorklogId=390069&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-390069 ]

ASF GitHub Bot logged work on KNOX-2230:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 20/Feb/20 17:12
            Start Date: 20/Feb/20 17:12
    Worklog Time Spent: 10m 
      Work Description: pzampino commented on pull request #268: KNOX-2230 - Token State Service should throw UnknownTokenException in…
URL: https://github.com/apache/knox/pull/268
 
 
   …stead of IllegalArgumentException
   
   ## What changes were proposed in this pull request?
   
   Added UnknownTokenException so this condition can be handled more appropriately by clients of the TokenStateService and related.
   
   ## How was this patch tested?
   
   Modified existing tests, which were checking for IllegalStateException results when tokens are unknown by the TokenStateService.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 390069)
    Remaining Estimate: 0h
            Time Spent: 10m

> Token State Service should throw UnknownTokenException instead of IllegalArgumentException
> ------------------------------------------------------------------------------------------
>
>                 Key: KNOX-2230
>                 URL: https://issues.apache.org/jira/browse/KNOX-2230
>             Project: Apache Knox
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>            Reporter: Philip Zampino
>            Assignee: Philip Zampino
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Currently, the token validation throws an IllegalArgumentException when an unknown token is encountered. Instead, a new Exception type should be defined and thrown.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)