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

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

                Author: ASF GitHub Bot
            Created on: 21/Aug/26 13:41
            Start Date: 21/Aug/26 13:41
    Worklog Time Spent: 10m 
      Work Description: moresandeep commented on code in PR #1353:
URL: https://github.com/apache/knox/pull/1353#discussion_r3830657070


##########
gateway-server/src/main/java/org/apache/knox/gateway/util/KnoxCLI.java:
##########
@@ -1866,9 +1865,7 @@ private char[] getSystemPassword(Topology t) throws 
NoSuchProviderException, Mis
     protected Subject getSubject(Ini config) throws BadSubjectException {
       try {
         ThreadContext.unbindSubject();
-        @SuppressWarnings("deprecation")
-        Factory factory = new IniSecurityManagerFactory(config);
-        org.apache.shiro.mgt.SecurityManager securityManager = 
(org.apache.shiro.mgt.SecurityManager) factory.getInstance();
+        org.apache.shiro.mgt.SecurityManager securityManager = new 
BasicIniEnvironment(config).getSecurityManager();

Review Comment:
   I'll get it fixed!





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

    Worklog Id:     (was: 1037039)
    Time Spent: 40m  (was: 0.5h)

> Upgrade Shiro to 2.2.1
> ----------------------
>
>                 Key: KNOX-3421
>                 URL: https://issues.apache.org/jira/browse/KNOX-3421
>             Project: Apache Knox
>          Issue Type: Bug
>            Reporter: Sandeep More
>            Assignee: Sandeep More
>            Priority: Major
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> Housekeeping upgrades to a maintained version.



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

Reply via email to