wildfly查询字符串包含//替换为单斜杠(/),其中servlet使用send redirect(302代码)

r6l8ljro  于 2021-06-29  发布在  Java
关注(0)|答案(0)|浏览(176)

wildfly升级到12到19.0.1,观察员一号问题。当servlet重定向到另一个servlet时,如果查询字符串包含双正斜杠(//),它将替换为单斜杠
下面是示例uri是saml/login/alias/saml?idp=http://adbuild.tkdadfs.com/adfs/services/trust 如果签入响应位置头saml/login/alias/saml?idp=http:/adbuild.tkdadfs.com/adfs/services/trust替换为单斜杠

(default task-2) Page redirect ============redirect:saml/login/alias/SAML?idp=http://adbuild.tkdadfs.com/adfs/services/trust
2020-12-24 09:12:05,814 TRACE [io.undertow.server.HttpServerExchange] (default task-2) Starting to write response for HttpServerExchange{ GET /SapphireIMS/LoginPage.do}
2020-12-24 09:12:05,814 TRACE [io.undertow.server.HttpServerExchange] (default task-2) Starting to write response for HttpServerExchange{ GET /SapphireIMS/LoginPage.do}
2020-12-24 09:12:05,814 INFO  [io.undertow.request.dump] (default task-2) 
----------------------------REQUEST---------------------------
               URI=/SapphireIMS/LoginPage.do
 characterEncoding=null
     contentLength=-1
       contentType=null
            cookie=JSESSIONID=RMqueYwSN2adF_Yg-du0VM9auGKzclqWimoueRFZ.vmplatform
            header=accept=text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
            header=accept-language=en-US,en;q=0.5
            header=accept-encoding=gzip, deflate, br
            header=te=trailers
            header=user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0
            header=cookie=JSESSIONID=RMqueYwSN2adF_Yg-du0VM9auGKzclqWimoueRFZ.vmplatform
            header=upgrade-insecure-requests=1
            header=Host=qa117.sapphireims.com:8443
            locale=[en_US, en]
            method=GET
          protocol=HTTP/2.0
       queryString=
        remoteAddr=qa117.sapphireims.com/172.16.9.117:54394
        remoteHost=qa117.sapphireims.com
            scheme=https
              host=qa117.sapphireims.com:8443
        serverPort=8443
          isSecure=true
--------------------------RESPONSE--------------------------
     contentLength=0
       contentType=null
            header=Cache-Control=must-revalidate
            header=X-XSS-Protection=1; mode=block
            header=Pragma=must-revalidate
            header=X-Frame-Options=SAMEORIGIN
            header=Location=https://qa117.sapphireims.com:8443/SapphireIMS/saml/login/alias/SAML?idp=http:/adbuild.tkdadfs.com/adfs/services/trust
            header=Date=Thu, 24 Dec 2020 03:42:05 GMT
            header=:status=302
            header=Strict-Transport-Security=max-age=31536000 ; includeSubDomains
            header=Content-Length=0
            header=Content-Language=en-US
            status=302

==============================================================

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题