[ https://issues.apache.org/jira/browse/KNOX-2938?focusedWorklogId=870932&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-870932 ]
ASF GitHub Bot logged work on KNOX-2938: ---------------------------------------- Author: ASF GitHub Bot Created on: 14/Jul/23 08:58 Start Date: 14/Jul/23 08:58 Worklog Time Spent: 10m Work Description: zeroflag opened a new pull request, #771: URL: https://github.com/apache/knox/pull/771 ## What changes were proposed in this pull request? Getting "knoxtoken/api/v1/jwks.json" generates an invalid json with missing double quotes. E.g.: ``` {keys=[{kty=RSA, e=AQAB, use=sig, kid=zKJUa4BzKUq_oj69PH3OFeh1vsqrdPgXqNVAes6N-Xg, alg=RS256, n=gGOkOH_WEo3qgzDyY1QDIDb6NURmmc_3W89rI-fvuxVpKW-a-ePiRdRAlKWoTXu-wJ39QePixldzPj3SERmty25YN-PP5YXi798a6QmGtxcFlCtdqjYNFEimD9YJZF9zsBxTKMeLuJ7-k6LGh8ZcxSAykbEng29tEu5xvFdunMpXqWfWnYC1wu10PuuiBkyJ4PZyQ6P8QJHPL9ER9I0NwsxHnS3fnphJ8ZgdjJkINfeuOVwtSOKriMtX6qJ4rKyaZ2n9iEQSOum6CD8BNhbBo5FfrQzc8SENVbiGotCJe4hN6tIWn9OdooCo1PuXhbUEpAH-27QR5wZmuX9PS1GYxQ}]} ``` ## How was this patch tested? ```bash $ curl -vk https://localhost:8443/gateway/homepage/knoxtoken/api/v1/jwks.json ``` ```json {"keys":[{"kty":"RSA","e":"AQAB","use":"sig","kid":"aat5l9Yl_yOtOXFbVFaMp4XuXr1Cim17aDZeOt8_TAM","alg":"RS256","n":"oIQ9v5az4NG_uTnpai4n77W41Yil-11adJQn58OSOW4MB8ALCdco9OhixxE_mNa4uuaO5r9Yer9O4QqGMLT4n_Y4SAkyprv2Z1ncvtDtMTIg2lSfCCOIfzXY1o2Wpu0AZh22KGF5V4jQSrV2JplPg7tpmlnN-kaK7yfOGPE14gFrn5Vc8sVZwvXN47Et-DW8A1toP7eTgDeqX4ideQIsxyWtYqS-WIUbsAqq-JJUxCme_qg_YN6IURqdSIBkl3O8bqyNcS8pxRu9EkjW1oVUeH-AkggWPe-kn3PZ1mMoEmo0tD4O-g-epVNZ8naSMgNqUrGaS_pJBP15H_cwMGUJmw"}]} ```` Issue Time Tracking ------------------- Worklog Id: (was: 870932) Remaining Estimate: 0h Time Spent: 10m > jwks.json doesn't have double quotes which makes json invalid > ------------------------------------------------------------- > > Key: KNOX-2938 > URL: https://issues.apache.org/jira/browse/KNOX-2938 > Project: Apache Knox > Issue Type: Bug > Reporter: Attila Magyar > Assignee: Attila Magyar > Priority: Major > Time Spent: 10m > Remaining Estimate: 0h > > curl -vk https://localhost:8443/gateway/homepage/knoxtoken/api/v1/jwks.json > {keys=[{kty=RSA, e=AQAB, use=sig, > kid=zKJUa4BzKUq_oj69PH3OFeh1vsqrdPgXqNVAes6N-Xg, alg=RS256, > n=gGOkOH_WEo3qgzDyY1QDIDb6NURmmc_3W89rI-fvuxVpKW-a-ePiRdRAlKWoTXu-wJ39QePixldzPj3SERmty25YN-PP5YXi798a6QmGtxcFlCtdqjYNFEimD9YJZF9zsBxTKMeLuJ7-k6LGh8ZcxSAykbEng29tEu5xvFdunMpXqWfWnYC1wu10PuuiBkyJ4PZyQ6P8QJHPL9ER9I0NwsxHnS3fnphJ8ZgdjJkINfeuOVwtSOKriMtX6qJ4rKyaZ2n9iEQSOum6CD8BNhbBo5FfrQzc8SENVbiGotCJe4hN6tIWn9OdooCo1PuXhbUEpAH-27QR5wZmuX9PS1GYxQ}]} -- This message was sent by Atlassian Jira (v8.20.10#820010)