Jetty 9.3.6 + Spring: HTTPS automatically redirected to HTTP -


i don't know why https request automatically redirected http, , that's problem:

the original request:

remote address:127.0.1.1:7171 request url:https://w-rli09-ben:7171/main/app/test request method:get status code:302 found 

response headers:

content-length:0 date:sat, 16 jan 2016 01:02:11 gmt location:http://w-rli09-ben:7171/main/login server:jetty(9.3.z-snapshot) 

the jetty + spring debug logs:

2016-01-15 16:58:58 debug o.e.j.s.session:347 - scavenging sessions @ 1452905938843 2016-01-15 16:58:58 debug o.e.j.i.managedselector:234 - selector loop woken select, 1/1 selected 2016-01-15 16:58:58 debug o.e.j.i.selectchannelendpoint:159 - onselected 1->0 r=true w=false selectchannelendpoint@33c50677{/127.0.0.1:56564<->7171,open,in,out,fi,-,14176/30000,sslconnection}{io=1/0,kio=1,kro=1} 2016-01-15 16:58:58 debug o.e.j.i.selectchannelendpoint:186 - task selectchannelendpoint@33c50677{/127.0.0.1:56564<->7171,open,in,out,fi,-,14176/30000,sslconnection}{io=1/0,kio=1,kro=1}:runfillable 2016-01-15 16:58:58 debug o.e.j.u.t.s.executeproduceconsume:165 - epr prod/org.eclipse.jetty.io.managedselector$selectorproducer@6325da48 produced selectchannelendpoint@33c50677{/127.0.0.1:56564<->7171,open,in,out,fi,-,14176/30000,sslconnection}{io=1/0,kio=1,kro=1}:runfillable 2016-01-15 16:58:58 debug o.e.j.u.t.s.executeproduceconsume:206 - epr pend/org.eclipse.jetty.io.managedselector$selectorproducer@6325da48 dispatch 2016-01-15 16:58:58 debug o.e.j.u.t.queuedthreadpool:373 - queue epr pend/org.eclipse.jetty.io.managedselector$selectorproducer@6325da48 2016-01-15 16:58:58 debug o.e.j.u.t.s.executeproduceconsume:212 - epr pend/org.eclipse.jetty.io.managedselector$selectorproducer@6325da48 run selectchannelendpoint@33c50677{/127.0.0.1:56564<->7171,open,in,out,fi,-,14176/30000,sslconnection}{io=1/0,kio=1,kro=1}:runfillable 2016-01-15 16:58:58 debug o.e.j.u.t.queuedthreadpool:571 - run epr pend/org.eclipse.jetty.io.managedselector$selectorproducer@6325da48 2016-01-15 16:58:58 debug o.e.j.u.t.s.executeproduceconsume:125 - epr pend/org.eclipse.jetty.io.managedselector$selectorproducer@6325da48 run 2016-01-15 16:58:58 debug o.e.j.u.t.s.executeproduceconsume:154 - epr prod/org.eclipse.jetty.io.managedselector$selectorproducer@6325da48 produce enter 2016-01-15 16:58:58 debug o.e.j.u.t.s.executeproduceconsume:160 - epr prod/org.eclipse.jetty.io.managedselector$selectorproducer@6325da48 producing 2016-01-15 16:58:58 debug o.e.j.i.fillinterest:93 - fillinterest@3cdb3cea{true,ac.readcb@19aa1a49{sslconnection@19aa1a49{not_handshaking,eio=-1/-1,di=-1} -> httpconnection@67ba0184[decryptedendpoint@5059b0eb{/127.0.0.1:56564<->7171,open,in,out,fi,-,14177/30000,httpconnection}->selectchannelendpoint@33c50677{/127.0.0.1:56564<->7171,open,in,out,fi,-,14176/30000,sslconnection}{io=1/0,kio=1,kro=1}][p=httpparser{s=start,0 of -1},g=httpgenerator@7a792b70{s=start},c=httpchanneloverhttp@79c35e68{r=1,c=false,a=idle,uri=null}]}} fillable ac.readcb@19aa1a49{sslconnection@19aa1a49{not_handshaking,eio=-1/-1,di=-1} -> httpconnection@67ba0184[decryptedendpoint@5059b0eb{/127.0.0.1:56564<->7171,open,in,out,fi,-,14178/30000,httpconnection}->selectchannelendpoint@33c50677{/127.0.0.1:56564<->7171,open,in,out,fi,-,14177/30000,sslconnection}{io=1/0,kio=1,kro=1}][p=httpparser{s=start,0 of -1},g=httpgenerator@7a792b70{s=start},c=httpchanneloverhttp@79c35e68{r=1,c=false,a=idle,uri=null}]} 2016-01-15 16:58:58 debug o.e.j.i.selectchannelendpoint:214 - key interests updated 1 -> 0 on selectchannelendpoint@33c50677{/127.0.0.1:56564<->7171,open,in,out,fi,-,14177/30000,sslconnection}{io=0/0,kio=0,kro=1} 2016-01-15 16:58:58 debug o.e.j.i.s.sslconnection:184 - onfillable enter decryptedendpoint@5059b0eb{/127.0.0.1:56564<->7171,open,in,out,fi,-,14178/30000,httpconnection}->selectchannelendpoint@33c50677{/127.0.0.1:56564<->7171,open,in,out,-,-,14177/30000,sslconnection}{io=0/0,kio=0,kro=1} 2016-01-15 16:58:58 debug o.e.j.i.managedselector:231 - selector loop waiting on select 2016-01-15 16:58:58 debug o.e.j.i.fillinterest:93 - fillinterest@b5aba24{true,ac.readcb@67ba0184{httpconnection@67ba0184[decryptedendpoint@5059b0eb{/127.0.0.1:56564<->7171,open,in,out,fi,-,14178/30000,httpconnection}->selectchannelendpoint@33c50677{/127.0.0.1:56564<->7171,open,in,out,-,-,14177/30000,sslconnection}{io=0/0,kio=0,kro=1}][p=httpparser{s=start,0 of -1},g=httpgenerator@7a792b70{s=start},c=httpchanneloverhttp@79c35e68{r=1,c=false,a=idle,uri=null}]}} fillable ac.readcb@67ba0184{httpconnection@67ba0184[decryptedendpoint@5059b0eb{/127.0.0.1:56564<->7171,open,in,out,fi,-,14178/30000,httpconnection}->selectchannelendpoint@33c50677{/127.0.0.1:56564<->7171,open,in,out,-,-,14177/30000,sslconnection}{io=0/0,kio=0,kro=1}][p=httpparser{s=start,0 of -1},g=httpgenerator@7a792b70{s=start},c=httpchanneloverhttp@79c35e68{r=1,c=false,a=idle,uri=null}]} 2016-01-15 16:58:58 debug o.e.j.s.httpconnection:215 - httpconnection@67ba0184[decryptedendpoint@5059b0eb{/127.0.0.1:56564<->7171,open,in,out,-,-,14178/30000,httpconnection}->selectchannelendpoint@33c50677{/127.0.0.1:56564<->7171,open,in,out,-,-,14177/30000,sslconnection}{io=0/0,kio=0,kro=1}][p=httpparser{s=start,0 of -1},g=httpgenerator@7a792b70{s=start},c=httpchanneloverhttp@79c35e68{r=1,c=false,a=idle,uri=null}] onfillable enter httpchannelstate@622e0999{s=idle a=null i=true r=!p!u w=false} null 2016-01-15 16:58:58 debug o.e.j.i.channelendpoint:147 - filled 501 selectchannelendpoint@33c50677{/127.0.0.1:56564<->7171,open,in,out,-,-,14178/30000,sslconnection}{io=0/0,kio=0,kro=1} 2016-01-15 16:58:58 debug o.e.j.i.s.sslconnection:517 - sslconnection@19aa1a49{not_handshaking,eio=0/-1,di=-1} -> httpconnection@67ba0184[decryptedendpoint@5059b0eb{/127.0.0.1:56564<->7171,open,in,out,-,-,14179/30000,httpconnection}->selectchannelendpoint@33c50677{/127.0.0.1:56564<->7171,open,in,out,-,-,0/30000,sslconnection}{io=0/0,kio=0,kro=1}][p=httpparser{s=start,0 of -1},g=httpgenerator@7a792b70{s=start},c=httpchanneloverhttp@79c35e68{r=1,c=false,a=idle,uri=null}] net=501 unwrap status = ok handshakestatus = not_handshaking bytesconsumed = 501 bytesproduced = 449 2016-01-15 16:58:58 debug o.e.j.i.s.sslconnection:518 - sslconnection@19aa1a49{not_handshaking,eio=0/-1,di=-1} -> httpconnection@67ba0184[decryptedendpoint@5059b0eb{/127.0.0.1:56564<->7171,open,in,out,-,-,14179/30000,httpconnection}->selectchannelendpoint@33c50677{/127.0.0.1:56564<->7171,open,in,out,-,-,0/30000,sslconnection}{io=0/0,kio=0,kro=1}][p=httpparser{s=start,0 of -1},g=httpgenerator@7a792b70{s=start},c=httpchanneloverhttp@79c35e68{r=1,c=false,a=idle,uri=null}] filled b[449]=474554202f6d61696e2f6170702f7465737420485454502f31...3464380d0a0d0a 2016-01-15 16:58:58 debug o.e.j.s.httpconnection:322 - httpconnection@67ba0184[decryptedendpoint@5059b0eb{/127.0.0.1:56564<->7171,open,in,out,-,-,14180/30000,httpconnection}->selectchannelendpoint@33c50677{/127.0.0.1:56564<->7171,open,in,out,-,-,1/30000,sslconnection}{io=0/0,kio=0,kro=1}][p=httpparser{s=start,0 of -1},g=httpgenerator@7a792b70{s=start},c=httpchanneloverhttp@79c35e68{r=1,c=false,a=idle,uri=null}] filled 449 heapbytebuffer@3a5072bb[p=0,l=449,c=17408,r=449]={<<<get /main/app/tes...ckog7sq64d8\r\n\r\n>>>\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00} 2016-01-15 16:58:58 debug o.e.j.s.httpconnection:339 - httpconnection@67ba0184[decryptedendpoint@5059b0eb{/127.0.0.1:56564<->7171,open,in,out,-,-,14180/30000,httpconnection}->selectchannelendpoint@33c50677{/127.0.0.1:56564<->7171,open,in,out,-,-,1/30000,sslconnection}{io=0/0,kio=0,kro=1}][p=httpparser{s=start,0 of -1},g=httpgenerator@7a792b70{s=start},c=httpchanneloverhttp@79c35e68{r=1,c=false,a=idle,uri=null}] parse heapbytebuffer@3a5072bb[p=0,l=449,c=17408,r=449]={<<<get /main/app/tes...ckog7sq64d8\r\n\r\n>>>\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00} {} 2016-01-15 16:58:58 debug o.e.j.h.httpparser:1163 - parsenext s=start heapbytebuffer@3a5072bb[p=0,l=449,c=17408,r=449]={<<<get /main/app/tes...ckog7sq64d8\r\n\r\n>>>\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00} 2016-01-15 16:58:58 debug o.e.j.h.httpparser:1542 - start --> space1 2016-01-15 16:58:58 debug o.e.j.h.httpparser:1542 - space1 --> uri 2016-01-15 16:58:58 debug o.e.j.h.httpparser:1542 - uri --> space2 2016-01-15 16:58:58 debug o.e.j.h.httpparser:1542 - space2 --> request_version 2016-01-15 16:58:58 debug o.e.j.h.httpparser:1542 - request_version --> header 2016-01-15 16:58:58 debug o.e.j.h.httpparser:1542 - header --> header_in_value 2016-01-15 16:58:58 debug o.e.j.h.httpparser:1542 - header_in_value --> header 2016-01-15 16:58:58 debug o.e.j.h.httpparser:1542 - header --> header_in_value 2016-01-15 16:58:58 debug o.e.j.h.httpparser:1542 - header_in_value --> header 2016-01-15 16:58:58 debug o.e.j.h.httpparser:1542 - header --> header_in_value 2016-01-15 16:58:58 debug o.e.j.h.httpparser:1542 - header_in_value --> header 2016-01-15 16:58:58 debug o.e.j.h.httpparser:1542 - header --> header_in_name 2016-01-15 16:58:58 debug o.e.j.h.httpparser:1542 - header_in_name --> header_value 2016-01-15 16:58:58 debug o.e.j.h.httpparser:1542 - header_value --> header_in_value 2016-01-15 16:58:58 debug o.e.j.h.httpparser:1542 - header_in_value --> header 2016-01-15 16:58:58 debug o.e.j.h.httpparser:1542 - header --> header_in_value 2016-01-15 16:58:58 debug o.e.j.h.httpparser:1542 - header_in_value --> header 2016-01-15 16:58:58 debug o.e.j.h.httpparser:1542 - header --> header_in_value 2016-01-15 16:58:58 debug o.e.j.h.httpparser:1542 - header_in_value --> header 2016-01-15 16:58:58 debug o.e.j.h.httpparser:1542 - header --> header_in_value 2016-01-15 16:58:58 debug o.e.j.h.httpparser:1542 - header_in_value --> header 2016-01-15 16:58:58 debug o.e.j.h.httpparser:1542 - header --> header_value 2016-01-15 16:58:58 debug o.e.j.h.httpparser:1542 - header_value --> header_in_value 2016-01-15 16:58:58 debug o.e.j.h.httpparser:1542 - header_in_value --> header 2016-01-15 16:58:58 debug o.e.j.h.httpparser:1542 - header --> end 2016-01-15 16:58:58 debug o.e.j.s.httpchannel:602 - httpchanneloverhttp@79c35e68{r=2,c=false,a=idle,uri=//w-rli09-ben:7171/main/app/test} onrequestcomplete 2016-01-15 16:58:58 debug o.e.j.s.httpinput:385 - httpinputoverhttp@57be4401[c=0,s=stream] addcontent eof 2016-01-15 16:58:58 debug o.e.j.s.httpconnection:344 - httpconnection@67ba0184[decryptedendpoint@5059b0eb{/127.0.0.1:56564<->7171,open,in,out,-,-,14183/30000,httpconnection}->selectchannelendpoint@33c50677{/127.0.0.1:56564<->7171,open,in,out,-,-,4/30000,sslconnection}{io=0/0,kio=0,kro=1}][p=httpparser{s=end,0 of -1},g=httpgenerator@7a792b70{s=start},c=httpchanneloverhttp@79c35e68{r=2,c=false,a=idle,uri=//w-rli09-ben:7171/main/app/test}] parsed true httpparser{s=end,0 of -1} 2016-01-15 16:58:58 debug o.e.j.s.httpconnection:192 - releaserequestbuffer httpconnection@67ba0184[decryptedendpoint@5059b0eb{/127.0.0.1:56564<->7171,open,in,out,-,-,14183/30000,httpconnection}->selectchannelendpoint@33c50677{/127.0.0.1:56564<->7171,open,in,out,-,-,4/30000,sslconnection}{io=0/0,kio=0,kro=1}][p=httpparser{s=end,0 of -1},g=httpgenerator@7a792b70{s=start},c=httpchanneloverhttp@79c35e68{r=2,c=false,a=idle,uri=//w-rli09-ben:7171/main/app/test}] 2016-01-15 16:58:58 debug o.e.j.s.httpchannel:271 - httpchanneloverhttp@79c35e68{r=2,c=false,a=idle,uri=//w-rli09-ben:7171/main/app/test} handle //w-rli09-ben:7171/main/app/test  2016-01-15 16:58:58 debug o.e.j.s.httpchannelstate:188 - httpchannelstate@622e0999{s=idle a=null i=true r=!p!u w=false} handling idle 2016-01-15 16:58:58 debug o.e.j.s.httpchannel:284 - httpchanneloverhttp@79c35e68{r=2,c=false,a=dispatched,uri=//w-rli09-ben:7171/main/app/test} action dispatch 2016-01-15 16:58:58 debug o.e.j.s.server:506 - request on httpchanneloverhttp@79c35e68{r=2,c=false,a=dispatched,uri=//w-rli09-ben:7171/main/app/test} //w-rli09-ben:7171/main/app/test host: w-rli09-ben:7171 connection: keep-alive accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 upgrade-insecure-requests: 1 user-agent: mozilla/5.0 (x11; linux x86_64) applewebkit/537.36 (khtml, gecko) chrome/44.0.2403.125 safari/537.36 accept-encoding: gzip, deflate, sdch accept-language: en-us,en;q=0.8,fr;q=0.6 cookie: jsessionid=4nughxn0sfm01qckog7sq64d8   2016-01-15 16:58:58 debug o.e.j.s.h.contexthandler:1007 - scope null||/main/app/test @ o.e.j.w.webappcontext@4d4d48a6{/main,file:///work/main/webapp/,available}{/tmp/main.war} 2016-01-15 16:58:58 debug o.e.j.s.h.contexthandler:1084 - context=/main||/app/test @ o.e.j.w.webappcontext@4d4d48a6{/main,file:///work/main/webapp/,available}{/tmp/main.war} 2016-01-15 16:58:58 debug o.e.j.s.session:271 - got session id 4nughxn0sfm01qckog7sq64d8 cookie 2016-01-15 16:58:58 debug o.e.j.s.session:179 - sessionmanager=org.eclipse.jetty.server.session.hashsessionmanager@eadb475 2016-01-15 16:58:58 debug o.e.j.s.session:180 - session=org.eclipse.jetty.server.session.hashedsession:4nughxn0sfm01qckog7sq64d8@465612300 2016-01-15 16:58:58 debug o.e.j.s.servlethandler:497 - servlet /main|/app|/test -> dashboard@c18aea94==org.springframework.web.servlet.dispatcherservlet,1,true 2016-01-15 16:58:58 debug o.e.j.s.servlethandler:560 - chain=filterchainproxy->springsecurityfilterchain->encoding-filter->httpmethodfilter->dashboard@c18aea94==org.springframework.web.servlet.dispatcherservlet,1,true 2016-01-15 16:58:58 debug o.e.j.s.servlethandler:1657 - call filter filterchainproxy 2016-01-15 16:58:58 debug o.s.s.w.u.m.antpathrequestmatcher:145 - checking match of request : '/app/test'; against '/j_spring_security_check' 2016-01-15 16:58:58 debug o.s.s.w.u.m.antpathrequestmatcher:145 - checking match of request : '/app/test'; against '/login' 2016-01-15 16:58:58 debug o.s.s.w.u.m.antpathrequestmatcher:145 - checking match of request : '/app/test'; against '/autologin' 2016-01-15 16:58:58 debug o.s.s.w.u.m.antpathrequestmatcher:145 - checking match of request : '/app/test'; against '/services/**/*' 2016-01-15 16:58:58 debug o.s.s.w.u.m.antpathrequestmatcher:145 - checking match of request : '/app/test'; against '/logout' 2016-01-15 16:58:58 debug o.s.s.w.u.m.antpathrequestmatcher:145 - checking match of request : '/app/test'; against '/app/settings/**/*' 2016-01-15 16:58:58 debug o.s.s.w.u.m.antpathrequestmatcher:145 - checking match of request : '/app/test'; against '/app/**/*' 2016-01-15 16:58:58 debug o.s.s.w.filterchainproxy:337 - /app/test @ position 1 of 7 in additional filter chain; firing filter: 'testschemefilter' 2016-01-15 16:58:58 info  c.r.l.consolelogger:42 - [sysout] !!! testschemefilter !!! 2016-01-15 16:58:58 info  c.r.l.consolelogger:42 - [sysout] requesturl:http://w-rli09-ben:7171/main/app/test 2016-01-15 16:58:58 info  c.r.l.consolelogger:42 - [sysout] uri:/main/app/test 2016-01-15 16:58:58 info  c.r.l.consolelogger:42 - [sysout] prefix:http://w-rli09-ben:7171 2016-01-15 16:58:58 debug o.s.s.w.filterchainproxy:337 - /app/test @ position 2 of 7 in additional filter chain; firing filter: 'exceptionfilter' 2016-01-15 16:58:58 debug o.s.s.w.filterchainproxy:337 - /app/test @ position 3 of 7 in additional filter chain; firing filter: 'requestcontextfilter' 2016-01-15 16:58:58 debug o.s.s.w.filterchainproxy:337 - /app/test @ position 4 of 7 in additional filter chain; firing filter: 'sessionrequiredfilter' 2016-01-15 16:58:58 info  c.r.l.consolelogger:42 - [sysout] going to:/main/login 2016-01-15 16:58:58 info  c.r.l.consolelogger:42 - [sysout] going absolute url:http://w-rli09-ben:7171/main/login 2016-01-15 16:58:58 debug o.e.j.s.httpchannel:703 - commit http/1.1{s=302,h=2} httpchanneloverhttp@79c35e68{r=2,c=true,a=dispatched,uri=//w-rli09-ben:7171/main/app/test} 2016-01-15 16:58:58 debug o.e.j.s.httpconnection:680 - org.eclipse.jetty.server.httpconnection$sendcallback@a8c3680[processing][i=http/1.1{s=302,h=2},cb=org.eclipse.jetty.server.httpchannel$commitcallback@7f44a2b4] generate: need_header (null,[p=0,l=0,c=0,r=0],true)@start 2016-01-15 16:58:58 debug o.e.j.s.httpconnection:680 - org.eclipse.jetty.server.httpconnection$sendcallback@a8c3680[processing][i=http/1.1{s=302,h=2},cb=org.eclipse.jetty.server.httpchannel$commitcallback@7f44a2b4] generate: flush ([p=0,l=155,c=8192,r=155],[p=0,l=0,c=0,r=0],true)@completing 2016-01-15 16:58:58 debug o.e.j.i.writeflusher:306 - write: writeflusher@35e7026b{idle} [heapbytebuffer@6d84d4be[p=0,l=155,c=8192,r=155]={<<<http/1.1 302 foun...z-snapshot)\r\n\r\n>>>jan 1970 00:00:00...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}] 2016-01-15 16:58:58 debug o.e.j.i.writeflusher:117 - update writeflusher@35e7026b{writing}:idle-->writing 2016-01-15 16:58:58 debug o.e.j.i.s.sslconnection:717 - sslconnection@19aa1a49{not_handshaking,eio=-1/-1,di=-1} -> httpconnection@67ba0184[decryptedendpoint@5059b0eb{/127.0.0.1:56564<->7171,open,in,out,-,w,14188/30000,httpconnection}->selectchannelendpoint@33c50677{/127.0.0.1:56564<->7171,open,in,out,-,-,9/30000,sslconnection}{io=0/0,kio=0,kro=1}][p=httpparser{s=end,0 of -1},g=httpgenerator@7a792b70{s=completing},c=httpchanneloverhttp@79c35e68{r=2,c=true,a=dispatched,uri=//w-rli09-ben:7171/main/app/test}] flush b[155]=485454502f312e312033303220466f756e640d0a446174653a...4f54290d0a0d0a 2016-01-15 16:58:58 debug o.e.j.i.s.sslconnection:748 - sslconnection@19aa1a49{not_handshaking,eio=-1/197,di=-1} -> httpconnection@67ba0184[decryptedendpoint@5059b0eb{/127.0.0.1:56564<->7171,open,in,out,-,w,14189/30000,httpconnection}->selectchannelendpoint@33c50677{/127.0.0.1:56564<->7171,open,in,out,-,-,10/30000,sslconnection}{io=0/0,kio=0,kro=1}][p=httpparser{s=end,0 of -1},g=httpgenerator@7a792b70{s=completing},c=httpchanneloverhttp@79c35e68{r=2,c=true,a=dispatched,uri=//w-rli09-ben:7171/main/app/test}] wrap status = ok handshakestatus = not_handshaking bytesconsumed = 155 bytesproduced = 197 2016-01-15 16:58:58 debug o.e.j.i.s.sslconnection:786 - sslconnection@19aa1a49{not_handshaking,eio=-1/197,di=-1} -> httpconnection@67ba0184[decryptedendpoint@5059b0eb{/127.0.0.1:56564<->7171,open,in,out,-,w,14189/30000,httpconnection}->selectchannelendpoint@33c50677{/127.0.0.1:56564<->7171,open,in,out,-,-,10/30000,sslconnection}{io=0/0,kio=0,kro=1}][p=httpparser{s=end,0 of -1},g=httpgenerator@7a792b70{s=completing},c=httpchanneloverhttp@79c35e68{r=2,c=true,a=dispatched,uri=//w-rli09-ben:7171/main/app/test}] wrap ok b[197]=17030300c0e7aa73c1224516237095a2349193dbed5e5e7363...a52fe4be6c8ec7 2016-01-15 16:58:58 debug o.e.j.i.channelendpoint:193 - flushed 197 selectchannelendpoint@33c50677{/127.0.0.1:56564<->7171,open,in,out,-,-,10/30000,sslconnection}{io=0/0,kio=0,kro=1} 2016-01-15 16:58:58 debug o.e.j.i.writeflusher:423 - flushed=true 155/155+0 writeflusher@35e7026b{writing} 2016-01-15 16:58:58 debug o.e.j.i.writeflusher:117 - update writeflusher@35e7026b{idle}:writing-->idle 2016-01-15 16:58:58 debug o.e.j.s.httpconnection:680 - org.eclipse.jetty.server.httpconnection$sendcallback@a8c3680[processing][i=http/1.1{s=302,h=2},cb=org.eclipse.jetty.server.httpchannel$commitcallback@7f44a2b4] generate: done ([p=155,l=155,c=8192,r=0],[p=0,l=0,c=0,r=0],true)@end 2016-01-15 16:58:58 debug o.e.j.s.server:520 - response /main/app/test h=true 302 null date: sat, 16 jan 2016 00:58:58 gmt location: http://w-rli09-ben:7171/main/login 

as can see, first thing in webapp log request info receive jetty, , it's in http instead of https.

i tried play p:redirecthttp10compatible, no luck there.

some people create filter fix redirects , make them absolute, request filter gets has wrong scheme already.

any ideas?

you might have bad setup of httpconfiguration in ssl/tls layer on jetty.

that layer should include securerequestcustomizer, information ssl/tls layer can included in httpservletrequest objects.

information such as:

  • the uri/url scheme of https
  • what "secure port number" server instance.
  • the httpservletrequest.issecure() flag returns true
  • any sni certificate information identified httpservletrequest.getservername() (the host request header , virtualhost layers)
  • the javax.servlet.request.ssl_session_id request attribute (type string, since servlet spec 3.0)
  • the javax.servlet.request.cipher_suite request attribute (type string)
  • the javax.servlet.request.key_size request attribute (type integer)
  • the javax.servlet.request.x509certificate request attribute (type java.security.cert.x509certificate[]). array of objects of type x509certificate, order of array defined being in ascending order of trust. first certificate in chain 1 set client, next 1 used authenticate first, , on.

Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -