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

ASF subversion and git services commented on KNOX-3187:
-------------------------------------------------------

Commit cfb77b28885c9f0bff95cc53d29d30d35efca60c in knox's branch 
refs/heads/v2.1.0 from Sandor Molnar
[ https://gitbox.apache.org/repos/asf?p=knox.git;h=cfb77b288 ]

KNOX-3187 - Show pop-up window on Token Management/Generation pages when Knox 
token hash key is missing (#1082)



> Better indicator of missing knox.token.hash.key on Token 
> Management/Generation UIs
> ----------------------------------------------------------------------------------
>
>                 Key: KNOX-3187
>                 URL: https://issues.apache.org/jira/browse/KNOX-3187
>             Project: Apache Knox
>          Issue Type: Improvement
>    Affects Versions: 2.0.0, 2.1.0
>            Reporter: Sandor Molnar
>            Assignee: Sandor Molnar
>            Priority: Blocker
>             Fix For: 2.1.0
>
>         Attachments: image-2025-09-09-08-41-30-504.png, 
> image-2025-09-09-08-42-19-091.png
>
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> As of now, when there is no `knox.token.hash.key` alias stored in the 
> gateway-level credential store and one hits the Token Management or Token 
> Generation UI, the following pop-up windows are shown:
> !image-2025-09-09-08-41-30-504.png|height=200!
> !image-2025-09-09-08-42-19-091.png|height=200!
> The only way to find out what causes this issue is to check the logs, where 
> the root cause is clearly indicated:
> {code}
> Caused by: org.glassfish.hk2.api.MultiException: A MultiException has 2 
> exceptions.  They are:
> 1. org.apache.knox.gateway.services.ServiceLifecycleException: Missing 
> knox.token.hash.key alias from Gateway's credential store
> 2. java.lang.IllegalStateException: Unable to perform operation: post 
> construct on org.apache.knox.gateway.service.knoxtoken.TokenResourceV2
> {code}
> To avoid this, we need to improve the error message within the popup window 
> to tell the users they need this key before they can use the token management 
> feature.



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

Reply via email to