previously favicon and other icons were stored in a folder under ~bin, but this folder structure is problematic in some platforms.
On 05.05.2014, at 17:15, Joe Bogner <[email protected]> wrote: > I've had 409 errors when accessing a URL that's not mapped. I don't > recall them causing a problem. For example, I can access > http://127.0.0.1:65001/abc and get a 409 error. I can enter i.2 in > jijx afterwards and get the correct result. > > On my system, http://127.0.0.1:65001/favicon.ico returns an image of a > J so it doesn't cause a 409 error > > line 10 of jfilesrc.ijs has: > > if. y-:'favicon.ico' do. favicon 0 return. end. > > where favicon is defined on line 55 as: > > favicon=: 3 : 0 > htmlresponse htmlfav,1!:1 <jpath'~addons/ide/jhs/favicon.ico' > ) > > Looks like the path was changed about 70 days ago: > > http://www.jsoftware.com/wsvn/addons/trunk/ide/jhs/jfilesrc.ijs?op=revision&rev=4871&peg=4871 > > Are you on the most recent version? > http://www.jsoftware.com/wsvn/addons/trunk/ide/jhs/manifest.ijs > > On Mon, May 5, 2014 at 3:55 AM, Raul Miller <[email protected]> wrote: >> I have been playing with jhs, and sometimes when I save a temp file >> and then run it, I get a 409 error from the attempt to run it. >> >> So I reload the jijx window, and that succeeds, but the browser >> immediately follows that with a request for favicon.ico, which looks >> like this: >> >> GET http://127.0.0.1:65001/favicon.ico HTTP/1.1 >> Host: 127.0.0.1:65001 >> Connection: keep-alive >> Accept: */* >> User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 >> (KHTML, like Gecko) Chrome/34.0.1847.131 Safari/537.36 >> Accept-Encoding: gzip,deflate,sdch >> Accept-Language: en-US,en;q=0.8 >> >> And so JHS responds with: >> >> HTTP/1.1 409 Conflict >> Content-Type: text/html; charset=utf-8 >> Connection: close >> >> >> get/post request failed<br> >> response code 409<br> >> application did not produce result<br> >> try browsing to url again<br> >> additional info in jijx >> >> Which basically means I have to shut down jhs and restart it, because >> once a 409 error has been sent, further requests like this: >> >> POST http://127.0.0.1:65001/jijx HTTP/1.1 >> Host: 127.0.0.1:65001 >> Connection: keep-alive >> Content-Length: 56 >> Origin: http://127.0.0.1:65001 >> User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 >> (KHTML, like Gecko) Chrome/34.0.1847.131 Safari/537.36 >> Content-Type: text/plain;charset=UTF-8 >> Accept: */* >> Referer: http://127.0.0.1:65001/jijx >> Accept-Encoding: gzip,deflate,sdch >> Accept-Language: en-US,en;q=0.8 >> >> jdo=%20%20%20i.2&jtype=enter&jmid=log&jsid=&jdata=&jwid= >> >> get a response which looks like this: >> >> HTTP/1.1 200 OK >> Content-Type: text/html; charset=utf-8 >> Cache-Control: no-cache >> Content-Length: 207 >> >> <div >> class="file">***&nbsp;response&nbsp;not&nbsp;sent&nbsp;for&nbsp;favicon.ico</div><div >> class="file">***&nbsp;html409&nbsp;Conflict</div><div >> class="log">i.2</div><div id="prompt" >> class="log"></div> >> >> Has anyone seen anything like this before? If so, what did you do to resolve >> it? >> >> Or do I need to debug this myself? >> >> The relevant code looks to be in addons/ide/jhs/core.ijs, specifically: >> >> if. _1~:SKSERVER do. try. ".'urlresponse_',URL,'_ y' catch. end. end. NB. >> jijx >> if. _1~:SKSERVER do. jbad'' end. >> >> But I do not have enough of an understanding of the ideal here, to >> know what changes would be advisable. >> >> Thanks, >> >> -- >> Raul >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
