refreshing remote arp
Janusz Ulanowski
janusz.ulanowski at heanet.ie
Tue Jun 23 19:50:08 EDT 2015
OK, it looks like Last-Modified in response is necessary to get IDP
working properly.
--
janusz
On 24/06/15 00:08, Janusz Ulanowski wrote:
> Hi,
> I have strange problem with remote arp refreshing.
> After restart tomcat8 IDP (3.x) loads remote source
> The headers from remote source :
> #############
>
> DEBUG [org.apache.http.headers:113] - http-outgoing-6 << HTTP/1.1 200 OK
> DEBUG [org.apache.http.headers:116] - http-outgoing-6 << Date: Tue, 23
> Jun 2015 22:23:54 GMT
> DEBUG [org.apache.http.headers:116] - http-outgoing-6 << Server: Apache
> DEBUG [org.apache.http.headers:116] - http-outgoing-6 << Set-Cookie:
> DEBUG [org.apache.http.headers:116] - http-outgoing-6 << Expires: Thu,
> 19 Nov 1981 08:52:00 GMT
> DEBUG [org.apache.http.headers:116] - http-outgoing-6 << Cache-Control:
> no-store, no-cache, must-revalidate, post-check=0, pre-check=0
> DEBUG [org.apache.http.headers:116] - http-outgoing-6 << Pragma: no-cache
> DEBUG [org.apache.http.headers:116] - http-outgoing-6 <<
> X-Frame-Options: SAMEORIGIN
> DEBUG [org.apache.http.headers:116] - http-outgoing-6 <<
> Strict-Transport-Security: max-age=3153600
> DEBUG [org.apache.http.headers:116] - http-outgoing-6 << Vary:
> Accept-Encoding
> DEBUG [org.apache.http.headers:116] - http-outgoing-6 <<
> Content-Encoding: gzip
> DEBUG [org.apache.http.headers:116] - http-outgoing-6 << Content-Length:
> 24764
> DEBUG [org.apache.http.headers:116] - http-outgoing-6 << Connection: close
> DEBUG [org.apache.http.headers:116] - http-outgoing-6 << Content-Type:
> application/xml; charset=utf-8
>
>
>
>
> Then next refresh is fired:
> ###############
> 2015-06-23 23:26:51,017 - DEBUG
> [net.shibboleth.ext.spring.resource.FileBackedHTTPResource:131] -
> FileBackedHTTPResource [https://edugate.heanet.ie/uriToARP/arp.xml|URL
> [file:/opt/shibboleth-idp/conf/remoteARP.xml]]: Attempting to fetch HTTP
> resource
>
> 2015-06-23 23:26:51,018 - DEBUG
> [org.apache.http.client.protocol.RequestAddCookies:122] - CookieSpec
> selected: best-match
>
> 2015-06-23 23:26:51,019 - DEBUG
> [org.apache.http.client.protocol.RequestAuthCache:75] - Auth cache not
> set in the context
>
> 2015-06-23 23:26:51,020 - TRACE
> [org.apache.http.impl.client.cache.CacheableRequestPolicy:92] - Request
> was serveable from cache
>
> 2015-06-23 23:26:51,021 - DEBUG
> [org.apache.http.impl.client.cache.CachingExec:264] - Cache miss
>
> 2015-06-23 23:26:51,022 - TRACE
> [org.apache.http.impl.client.cache.CachingExec:389] - Cache miss [host:
> https://edugate.heanet.ie; uri: /uriToARP/arp.xml]
> 2015-06-23 23:26:51,022 - TRACE
> [org.apache.http.impl.client.cache.CachingExec:577] - Calling the backend
>
> 2015-06-23 23:26:51,023 - DEBUG
> [org.apache.http.impl.conn.PoolingHttpClientConnectionManager:219] -
> Connection request: [route: {s}->https://edugate.heanet.ie:443][total
> kept alive: 0; route allocated: 2 of 2; total allocated: 2 of 20]
> ################
>
> With this refresh attempt idp doesn't update local file - looks like for
> some reson the method isServableFromCache doesn't match Cache-Control
> received from remote source
>
> And IDP doesn't send further refresh requests.
>
> any ideas?
>
>
> thanks in advance,
>
>
>
>
>
>
>
>
>
More information about the users
mailing list