Comment by longlonglonglon

Comment by longlonglonglon 6 days ago

3 replies

I placed myself at McMurdo Station and it shows up on the map but clicking the icon throws a 500 error.

Edit: seems to be fixed (by removing my icon from the map, now it throws error 500 when posting the data to re-add it).

Edit 2: you can place yourself in North Korea but clicking the [M] doesn't work because the name contains non ASCII characters. Also it returns error 405 when adding yourself (despite actually saving the data).

sirobg 5 days ago

Thanks for reporting all this!

> I placed myself at McMurdo Station and it shows up on the map but clicking the icon throws a 500 error.

This was because there was no country code associated to it.

> Edit: seems to be fixed (by removing my icon from the map, now it throws error 500 when posting the data to re-add it).

I actually did more than removing it, I now make any "city" without a country code, an invalid one. It's a hotfix, I'll have to think about it more tbh.

> Edit 2: you can place yourself in North Korea but clicking the [M] doesn't work because the name contains non ASCII characters. Also it returns error 405 when adding yourself (despite actually saving the data).

Yeah, actually I'm dumb I reintroduced a "vulnerability" by not checking if the city in the form was the same as the city in the HN user profile. So you could move people around, basically. But their actual data was unchanged of course, as it's stored here on HN. That's why I was able to revert this.

About the ASCII characters, yes it's a problem. I'll implement it as soon as possible, when things will calm down a bit.

Can you tell me more about the 405 though? It seems strange.

  • c6p 5 days ago

    I tried to click on the locations in Turkey to list the users. But it redirects to homepage if it contains non-ASCII characters such as Tekirdağ, Ataşehir.

    Awaiting for a fix, currently unusable for my case.

  • longlonglonglon 5 days ago

    The 405 seems to happen randomly. No idea what causes it, sometimes it returns 200, but after a few several POSTs in a row it may return 405.