<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Paul, all,<br>
<br>
Thanks for the suggestion, but all appears to be well in Seaside (coming back to it after a while, I'm all the more impressed - it's a wonderful framework!).&nbsp; Below is what I posted on the Pharo list.&nbsp; It *has* to be some kind of Heisenbug in the Pharo debugger,
 or a bad interaction between same and Seaside.<br>
<br>
When I first set out to load the files and create mime types to serve them dynamically (it's more than fast enough for what I need, takes no new configuration on target machines, does not bloat a file library (200MB of stuff!!!, but served in smallish pieces,
 hence dynamic mime is great for it).&nbsp; End of sales pitch :)&nbsp; The important thing is that it works!!!<br>
<br>
Making a long story short, when I first went to create the mime document, I set a breakpoint at the top of a method called from my callback.&nbsp; It has access to canvas and component, but inspecting<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp; component requestContext<br>
<br>
would give a not-found error.&nbsp; Let the code run past that, and all is well =:0&nbsp; My code looks something like this:<br>
<br>
serveFileNamed:fileName for:component canvas:html<br>
<br>
&nbsp;&nbsp;&nbsp; component session requestContext respond:[ :response |<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; response <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; document:self fullTextAsString<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; mimeType:'application/pdf' <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fileName:fileName;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; doNotCache <br>
&nbsp;&nbsp;&nbsp; ]<br>
<br>
which is called inside a callback for a &quot;full text&quot; anchor.&nbsp; I can freely debug inside of #fullTextAsString, which was what I really needed to do because the paths were tricky to get right.<br>
<br>
Success.&nbsp; Thanks again!<br>
<br>
Bill<br>
<br>
<br>
=================<br>
Got it!!&nbsp; I am now serving pdfs from my local drive w/o a file library and w/o an external web server.&nbsp; All goes through finding the file, loading the bytes and wrapping it a mime document.<br>
<br>
Like I said, security paranoia or laziness - pick one, but it's what I wanted.&nbsp; There is *something* preventing me from being able to set a breakpoint and evaluating code that should result in a working request context.&nbsp; Setting breakpoints *after* the context
 is found does work.&nbsp; I was able to use the debugger to good effect in getting the mime document and file naming sorted out.<br>
<br>
<br>
--------------------------------<br>
<div><br>
<div class="BodyFragment"><font size="2">
<div class="PlainText"><b>Paul DeBruicker</b> <a href="mailto:seaside%40lists.squeakfoundation.org?Subject=%5BSeaside%5D%20WARequestContextNotFound%20-%20where%20to%20look%20for%20a%20context%3F&amp;In-Reply-To=F675A34D5DDAA64297A2F6B9D5B6E9EF0A82C50D%40AHC-MB02.ad.ufl.edu" title="[Seaside] WARequestContextNotFound - where to look for a context?">
pdebruic at gmail.com </a><br>
<i>Fri Mar 16 16:26:22 UTC 2012</i>
<ul>
<li>Previous message: <a href="http://lists.squeakfoundation.org/pipermail/seaside/2012-March/028462.html">
[Seaside] WARequestContextNotFound - where to look for a context? </a></li><li>Next message: <a href="http://lists.squeakfoundation.org/pipermail/seaside/2012-March/028471.html">
[Seaside] Local Anchor </a></li><li><b>Messages sorted by:</b> <a href="http://lists.squeakfoundation.org/pipermail/seaside/2012-March/date.html#28467">
[ date ]</a> <a href="http://lists.squeakfoundation.org/pipermail/seaside/2012-March/thread.html#28467">
[ thread ]</a> <a href="http://lists.squeakfoundation.org/pipermail/seaside/2012-March/subject.html#28467">
[ subject ]</a> <a href="http://lists.squeakfoundation.org/pipermail/seaside/2012-March/author.html#28467">
[ author ]</a> </li></ul>
<hr>
<pre>On 12-03-15 10:34 AM, Schwab,Wilhelm K wrote:
&gt;<i> .  The archive in question is way too big for a FileLibrary and a
</i>&gt;<i> separate web server is probably overkill since I intend to do all of
</i>&gt;<i> this locally and would rather not have to run Apache on the machines in
</i>&gt;<i> question (security paranoia or laziness,
</i>

You can serve static files from disk with Comanche if you want.  See:

<a href="http://samadhiweb.com/blog/2011.07.10.seaside.comanche.staticfiles.html">http://samadhiweb.com/blog/2011.07.10.seaside.comanche.staticfiles.html</a>


for configuration ideas.
</pre>
</div>
</font></div>
</div>
</div>
</body>
</html>