The Daily WTF: Curious Perversions in Information Technology
Welcome to TDWTF Forums Sign in | Join | Help
in Search

When business rules and validation collide ......

Last post 01-18-2013 9:18 AM by dhromed. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 01-17-2013 10:45 AM

    When business rules and validation collide ......

    The Scene: A simple interface at a third party that you post an XML file to, to send SMS messages.

    The Validation: An (obviously not correct) mobile number of the maximum field length of 15 causes a rejection of the file.

    The Response:

    Them:"OK, we've figured it out. It's because when a 15 digit number is encountered our system assumes its international, and replaces the leading zero with +44. That makes it longer than the 15 character limit".

    Me:"..... so a number can never actually be 15 characters can it? Because it will always end up being too long after its been 'internationalised'"

    Them:"....."

    Me:"OK, I guess I'll change the limit to 13 characters then"

    I didn't touch on "what's the point of replacing the zero if you are only going to put the UK code in there anyway?", it didn't seem worth it.

    [disclaimer]Numbers come from an outside system which I have no control over, we don't apply any sort of format validation rules as we'd rather pay for undeliverable messages than risk false positives.[/disclaimer]


    [mod - inserted <br /> tags to restore sanity - PJH]
  • 01-17-2013 11:16 AM In reply to

    Re: When business rules and validation collide ......

    Whats the deal with the loss of newlines?
  • 01-17-2013 11:57 AM In reply to

    Re: When business rules and validation collide ......

    LarryDavid:
    Whats the deal with the loss of newlines?
    Welcome to Community Server. Enjoy your stay.
    P.S. If you don't get this note, let me know and I'll write you another.
  • Tue, Jan 19 2038 3:14 AMIn reply to

    Re: Whatever This Thread Is Named

    I agree with whatever Quietust just posted above.

  • 01-18-2013 8:53 AM In reply to

    Re: When business rules and validation collide ......

    LarryDavid:
    Whats the deal with the loss of newlines?
    I have been wondering that myself! The editor used to have buttons, they are gone, so are the newlines.
    This is the best thing Go has ever produced:[quote user="morbiuswilters"][quote user="Ben L."]Since when is a lowercase type's lowercase field public?[/quote] Fucking hell.[/quote]
  • 01-18-2013 9:18 AM In reply to

    Re: When business rules and validation collide ......

    esoterik:
    The editor used to have buttons, they are gone, so are the newlines.
     

    You switched from Firefox to Chrome!


    In complex analysis, a meromorphic function on an open subset D of the complex plane is a function that is holomorphic on all D except a set of isolated points

Page 1 of 1 (5 items)
Powered by Community Server (Non-Commercial Edition), by Telligent Systems