<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
<div class="moz-cite-prefix">On 7/21/15 2:46 PM, Wessel, Keith
wrote:<br>
</div>
<blockquote
cite="mid:A1EB7EC659FA0F429A55865D5820006D2E2E13A8@CITESMBX1.ad.uillinois.edu"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
tt
{mso-style-priority:99;
font-family:"Courier New";}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Consolas",serif;
color:black;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><br>
<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Where
shall we start? First, this file cache you referred to.
That’s an in-memory cache? </span></p>
</div>
</blockquote>
<br>
Well, based on looking at the Spring XML Rod gave you earlier in the
thread, it looked like you were probably using
shibboleth.FileCachingHttpClient. So that's a filesystem-based
cache. The actual cache directory for that is defined in
services.properties as 'idp.httpclient.filecaching.cacheDirectory'.
It defaults to: %{idp.home}/tmp/httpClientCache. So what you might
do is shutdown, clear out that directory, restart and see what's
there. <br>
<br>
<br>
<blockquote
cite="mid:A1EB7EC659FA0F429A55865D5820006D2E2E13A8@CITESMBX1.ad.uillinois.edu"
type="cite">
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Something
that gets cleaned out by a restart? ‘Cause this error occurs
on jetty/IDP start-up.</span></p>
</div>
</blockquote>
<br>
As I mentioned later in the thread, I think that an IdP shutdown
*should* be clearing this directory out. If you do the above to get
it to a known good state, you should see stuff there. If you then
shut down again, I think you should see it empty again.<br>
<br>
So my initial guess was probably wrong. For that and another
reason, I don't think you should effectively see HttpClient-level
caching across restarts.<br>
<br>
However, what you might be seeing is: First, a call to check whether
the resource exists() happen earlier (don't know for sure, we need
to check), and then a second call to actually get the resource. The
second would be served from cache, which was populated by the first
call.<br>
<br>
<br>
<blockquote
cite="mid:A1EB7EC659FA0F429A55865D5820006D2E2E13A8@CITESMBX1.ad.uillinois.edu"
type="cite">
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">
So, if it’s in-memory, I should be starting with a clean
cache and without the local backin file existing. </span></p>
</div>
</blockquote>
<br>
The backing file is something else. That's *our* (OpenSAML/IdP)
backup file for the HTTP resource. AFAIK, that *should* persist
across restarts.<br>
<br>
<br>
<blockquote
cite="mid:A1EB7EC659FA0F429A55865D5820006D2E2E13A8@CITESMBX1.ad.uillinois.edu"
type="cite">
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">BTW,
when I do suck downthe file manually before starting the
IDP, the warnings go away and the IDP happily accepts the
304 return code.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
</div>
</blockquote>
<br>
Sorry, what do you mean by this exactly? How are you sucking it
down outside of the IdP? Do you mean you are manually downloading
it and storing it in the backing file location? If so, then I
understand and that's what's supposed to happen (although obviously
you're not supposed to have to do that...)<br>
<br>
Also, exactly where are you seeing this 304 return code? Can you
post either here or in Jira the exact log message and some of
surrounding log messages, for context?<br>
<br>
<br>
<blockquote
cite="mid:A1EB7EC659FA0F429A55865D5820006D2E2E13A8@CITESMBX1.ad.uillinois.edu"
type="cite">
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Shall
I try turning up logging as Brent suggested and see what
that tells me? And perhaps, if there’s nothing obvious in
the output, put that output in Gira?<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p><br>
</o:p></span></p>
</div>
</blockquote>
<br>
<br>
That will certainly tell us more about what's going on. So please do
so if/when you have the time.<br>
<br>
<br>
<br>
<br>
</body>
</html>