Well, I FINALLY have been able to login to a website for school...
-
Said website is for Psychology 120, as I need to participate in research studies for credits. I (along with numerous other students) couldn't log in, as we would get an invalid credentials error, no matter what (and yes they were valid). Yesterday I found out that the issue was a very messed up validation function that failed for seemingly random valid inputs and succeeded for seemingly random invalid inputs. The function was only supposed to be one line, sent to the person in an email (copy and paste), calling a REST service to match the user ID against the database. The person writing it somehow managed to mess that up and break the site. The function was apparently about 300 lines when the idjit was done. Messing something simple like that up requires a special kind of stupid. How do you mess up a F****** ONE LINE FUNCTION, WHEN THE ACTUAL CODE WAS GIVEN TO YOU?!?
What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???
-
Said website is for Psychology 120, as I need to participate in research studies for credits. I (along with numerous other students) couldn't log in, as we would get an invalid credentials error, no matter what (and yes they were valid). Yesterday I found out that the issue was a very messed up validation function that failed for seemingly random valid inputs and succeeded for seemingly random invalid inputs. The function was only supposed to be one line, sent to the person in an email (copy and paste), calling a REST service to match the user ID against the database. The person writing it somehow managed to mess that up and break the site. The function was apparently about 300 lines when the idjit was done. Messing something simple like that up requires a special kind of stupid. How do you mess up a F****** ONE LINE FUNCTION, WHEN THE ACTUAL CODE WAS GIVEN TO YOU?!?
What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???
He refactored it... it didn't meet his design specifications.
-
Said website is for Psychology 120, as I need to participate in research studies for credits. I (along with numerous other students) couldn't log in, as we would get an invalid credentials error, no matter what (and yes they were valid). Yesterday I found out that the issue was a very messed up validation function that failed for seemingly random valid inputs and succeeded for seemingly random invalid inputs. The function was only supposed to be one line, sent to the person in an email (copy and paste), calling a REST service to match the user ID against the database. The person writing it somehow managed to mess that up and break the site. The function was apparently about 300 lines when the idjit was done. Messing something simple like that up requires a special kind of stupid. How do you mess up a F****** ONE LINE FUNCTION, WHEN THE ACTUAL CODE WAS GIVEN TO YOU?!?
What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???
Brisingr Aerowing wrote:
that failed for seemingly random valid inputs and succeeded for seemingly random invalid inputs.
Brisingr Aerowing wrote:
Messing something simple like that up requires a special kind of stupid. How do you mess up a F****** ONE LINE FUNCTION, WHEN THE ACTUAL CODE WAS GIVEN TO YOU?!?
Gimme codez plzzz, its urgntzzz On a crazy but serious note: Scenario one: the mouse can be a bitch and deselect part of the text you have to copy, then if you delete the message and you empty the trash-bin before you paste the copied code... you might end in a situation where you have to finish the code you were given, having no idea of how to do it. Scenario 2: You copy while you have a remote desktop open, and someone else have filled the clipboard with other kind of code. Then you paste the wrong content due to the remote desktop bug, you don't checked at all what you are pasting and you deploy something compilable that makes no fucking sense in that place. And no... it didn't happen to me (but a colleague in other land). I have only suffered the consequences of both scenarios and had to repair one of them :doh: :doh: :doh: :sigh: :sigh: :sigh:
M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.
-
Said website is for Psychology 120, as I need to participate in research studies for credits. I (along with numerous other students) couldn't log in, as we would get an invalid credentials error, no matter what (and yes they were valid). Yesterday I found out that the issue was a very messed up validation function that failed for seemingly random valid inputs and succeeded for seemingly random invalid inputs. The function was only supposed to be one line, sent to the person in an email (copy and paste), calling a REST service to match the user ID against the database. The person writing it somehow managed to mess that up and break the site. The function was apparently about 300 lines when the idjit was done. Messing something simple like that up requires a special kind of stupid. How do you mess up a F****** ONE LINE FUNCTION, WHEN THE ACTUAL CODE WAS GIVEN TO YOU?!?
What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???
Brisingr Aerowing wrote:
Messing something simple like that up requires a special kind of stupid. How do you mess up a F****** ONE LINE FUNCTION, WHEN THE ACTUAL CODE WAS GIVEN TO YOU?!?
I think that the code which tested your login credentials against every bank site was a friendly security feature, not a bug. I'm not sure how else I would personally squeeze 300 lines of of a login check.
"There are three kinds of lies: lies, damned lies and statistics." - Benjamin Disraeli
-
He refactored it... it didn't meet his design specifications.