JHS gets its favicon from ~addon/ide/jhs/favicon.ico and as far as I
can thell this has not changed. It would be a mistake to change this
because the way browsers cache stuff like favicon.ico can make changes
difficult to test and hard to propogate properly.

On Mon, May 5, 2014 at 8:54 PM, bill lam <[email protected]> wrote:
> 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&lt;br&gt;
>>> response code 409&lt;br&gt;
>>> application did not produce result&lt;br&gt;
>>> try browsing to url again&lt;br&gt;
>>> 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&amp;jtype=enter&amp;jmid=log&amp;jsid=&amp;jdata=&amp;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
>>>
>>> &lt;div 
>>> class=&quot;file&quot;&gt;***&amp;nbsp;response&amp;nbsp;not&amp;nbsp;sent&amp;nbsp;for&amp;nbsp;favicon.ico&lt;/div&gt;&lt;div
>>> class=&quot;file&quot;&gt;***&amp;nbsp;html409&amp;nbsp;Conflict&lt;/div&gt;&lt;div
>>> class=&quot;log&quot;&gt;i.2&lt;/div&gt;&lt;div id=&quot;prompt&quot;
>>> class=&quot;log&quot;&gt;&lt;/div&gt;
>>>
>>> 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
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to