News for hackers. Stuff that matters.
Re:Things you should do now (2011) by blacktriangle on Friday February 19, 2021 @08:30AM (#26192915)
I've run into one, but it was pretty dumb. Multitenant application using the account ID as the first element in the URL on a Rails app. when it got to account 404, my address.com/404 went to the static 404 page rather than account 404. That user was pretty confused for awhile.
Re:Things you should do now (2011) by corytheboyd on Friday February 19, 2021 @01:17PM (#26196084)
Ouch, using the top level path for something dynamic like that is rough. Hope someone learned the right lesson from that :p
Re:Things you should do now (2011) by Can_Not on Saturday February 20, 2021 @09:51AM (#26204477)
I don't know rails, but that is just terrible design. address.com/accounts/404 is what the devs should have used, and "404" is a response code and an error page, not a URL you redirect/rewrite URLs to.
Re:Things you should do now (2011) by edmundsauto on Friday February 19, 2021 @01:47PM (#26196451)
This is discussed in the article - they suggest to start your INT ids at a really large number to avoid this kind of thing.