Axis Bank Web Site – Bad Programming!

Axis Bank Web Site – Bad Programming!

This morning I visited the Gold Bullion section of the Axis Bank web site and decided to send in a request for information. The screen asked for my customer ID and then proceeded to ask for all sorts of other details like name, address, email, etc. This itself is stupid because I have already given my Customer ID and the page should be able to fetch the relevant details from the customer database.

Axis Bank - Mohur Gold - Address Problem - Screen Shot

Anyway, I proceeded to enter all the details and clicked the Submit button. To my surprise a JavaScript alert box popped up with the message “Please enter valid Address”. The address box is a multi-line free text area and I would expect it to accept anything I enter. I was surprised it had a validation built in!

I then right clicked on the FireFox tab and changed the rendering engine to IE (Long Live FireFox!) because some of these Indian web sites are built specifically for IE and will not work well with other browsers like FireFox. Again I entered the address (same as before) and once again it gave me the same ugly JavaScript alert box.

I immediately dove into the HTML source and found the following code:



if (address.value!='') {  var checkAdd =  "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
#,./-' ";  var checkStrAdd =address.value;  var allValidAdd = true;  for (m = 0;  m< checkStrAdd.length;  m++)    {   ch = checkStrAdd.charAt(m);   for (n = 0;  n < checkAdd.length;  n++)   if (ch == checkAdd.charAt(n))   break;   if (n == checkAdd.length)        {   allValidAdd = false;   break;   }  }  if (!allValidAdd)    {   alert("Please enter valid Address");   address.focus();   address.select();   return false;  }

}

Notice the long list of alphabets, numbers & symbols? The web page is checking the address entered against this list of characters and if it finds anything outside of this list like a & or a it throws an error. I was using a & in my address and hence the error.

Stupid! First of all this is a completely unnecessary check. Secondly the character set is English and hence cannot handle other languages. Lastly the set is restrictive. Both & and are commonly used in addresses.

Another example of sub standard programming from a banking web site. And that is a frightening thought.

2 thoughts on “Axis Bank Web Site – Bad Programming!

  1. Got a same kind of error when I tried to calculate the Health Insurance premium for my family on Reliance Life Insurance Web site.:)

    http://easyplanner.reliancelife.com/OnlineBI/UI/Plans/Savings/PremiumCalculatorforRelianceLifeCareForYouPlan.aspx?planno=85

    Server Error in ‘/OnlineBI’ Application.

    Object reference not set to an instance of an object.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [NullReferenceException: Object reference not set to an instance of an object.]
    PremiumCalculatorforRelianceLifeCareForYouPlan.DataInsertCode() +103
    PremiumCalculatorforRelianceLifeCareForYouPlan.cmd_save_Click(Object sender, ImageClickEventArgs e) +507
    System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +108
    System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +118
    System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
    System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

    Whenever I clicked on Save the ‘Gender’ or the ‘Option’ drop down would go blank resulting in the the ‘Object reference error’. God help us !!!

Leave a Reply

Your email address will not be published. Required fields are marked *