rejetto forum

Software => HFS ~ HTTP File Server => Bug reports => Topic started by: raybob on April 06, 2012, 09:40:23 PM

Title: Invalid notes key hangs HFS indefinitely at 100% CPU
Post by: raybob on April 06, 2012, 09:40:23 PM
If you try to use {.get account|a|notes key=.} and the key you're trying to find doesn't exist but exists as part of the end of another key, HFS will hang indefinitely at 100% CPU.

For example, if Raybob has a notes key of 12345-data=key:

{.get account|raybob|notes key=12345-data.} returns key.
{.get account|raybob|notes key=12345-dat.} returns nothing (as it should).
{.get account|raybob|notes key=2345-data.} ** Crashes HFS, as the string '2345-data' is at the end of '12345-data'. **
{.get account|raybob|notes key=2345-dat.} returns nothing (as it should).

This becomes a problem when I'm trying to load a key with a certain "ID", and when in certain cases the ID doesn't exist, the key is checked anyway.  For example it crashes when something like {.get account|data|notes key={.^id.}--data.} turns into {.get account|data|notes key=--data.}, because the ID expands to nothing, and many other keys exist that end in --data.
Title: Re: Invalid notes key hangs HFS indefinitely at 100% CPU
Post by: raybob on July 06, 2012, 01:56:09 PM
Have you looked into this?  I just encountered a scenario in which I cannot get around it.
Title: Re: Invalid notes key hangs HFS indefinitely at 100% CPU
Post by: rejetto on July 09, 2012, 04:50:58 PM
mmmm, nope
i will
Title: Re: Invalid notes key hangs HFS indefinitely at 100% CPU
Post by: rejetto on July 14, 2012, 12:53:18 PM
ok, fixed in #281
Title: Re: Invalid notes key hangs HFS indefinitely at 100% CPU
Post by: raybob on September 03, 2012, 03:39:22 PM
It still is happening in 283 :(

Title: Re: Invalid notes key hangs HFS indefinitely at 100% CPU
Post by: rejetto on September 07, 2012, 02:02:08 PM
i just tested on #282 and doesn't.... :-\