Zeyad2003 commented on code in PR #3915:
URL: https://github.com/apache/fineract/pull/3915#discussion_r1694174427


##########
fineract-provider/src/main/java/org/apache/fineract/infrastructure/security/filter/TenantAwareBasicAuthenticationFilter.java:
##########
@@ -138,9 +138,6 @@ protected void doFilterInternal(HttpServletRequest request, 
HttpServletResponse
                     }
 
                     if (!FIRST_REQUEST_PROCESSED) {
-                        final String baseUrl = 
request.getRequestURL().toString().replace(request.getPathInfo(), "/");

Review Comment:
   How to use spring built-in vars?
   I tried this but didn't work:
   ```properties
   # FINERACT-914
   server.forward-headers-strategy=framework
   server.port=${FINERACT_SERVER_PORT:8443}
   server.address=${FINERACT_SERVER_ADDRESS:localhost}
   
server.servlet.context-path=${FINERACT_SERVER_SERVLET_CONTEXT_PATH:/fineract-provider}
   server.compression.enabled=${FINERACT_SERVER_COMPRESSION_ENABLED:true}
   
   # backwards compatibility for 
'org.apache.fineract.infrastructure.security.filter.TenantAwareBasicAuthenticationFilter
   
baseUrl=https://${server.address}:${server.port}${server.servlet.context-path}
   ```
   
   and the checks failed as following:
   ```
   Run curl -f -k --retry 10 --retry-connrefused --connect-timeout 30 
--retry-delay 30 https://localhost:8443/fineract-provider/actuator/health
     % Total    % Received % Xferd  Average Speed   Time    Time     Time  
Current
                                    Dload  Upload   Total   Spent    Left  Speed
   
     0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
     0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
   curl: (35) 
error:0A000[12](https://github.com/Zeyad2003/fineract/actions/runs/10129914159/job/28010527803#step:8:13)6:SSL
 routines::unexpected eof while reading
   Error: Process completed with exit code 35.
   ```
   
   any thoughts?



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to