Infor CRM 8.3.09 Web Client Error with URL Control

In the 8.3.09 web client, the Sage.SalesLogix.Web.Controls.dll a new function was added to the RenderContents method of the URL control to use the System.Globalization.IdnMapping class to decode the stored URL.

In previous versions, this call to the IdnMapping class did not exist.

8.3.06

protected override void RenderContents(HtmlTextWriter writer)
{
    if (this.AccessKey != null)
    {
        this._urlTextBox.AccessKey = this.AccessKey;
    }
    this._urlTextBox.Text = StringUtility.EncodeUrl(this.Text);

8.3.09

protected override void RenderContents(HtmlTextWriter writer)
{
    IdnMapping mapping = new IdnMapping();
    if (this.AccessKey != null)
    {
        this._urlTextBox.AccessKey = this.AccessKey;
    }
    if (this.Text.Trim() != "")
    {
        this._urlTextBox.Text = mapping.GetAscii(this.Text);
        this._urlTextBox.Attributes.Add("url", mapping.GetUnicode(this.Text));
    }
    else
    {
        this._urlTextBox.Attributes.Add("url", this.Text);
    }

The IDN standard defines labels as anything between two periods. This causes an issue because if you have an address like:
www.something.com/1234567890/1234567890/1234567890/1234567890/1234567890/1234567890/index.html

That means that between the periods in “.com” and “.html” there are more than 63 characters between the periods and the user receives an error when attempting to save of:

"Decoded string is not a valid IDN name.  Parameter name: unicode." at System.Globalization.IdnMapping.GetAscii(String unicode, Int32 index, Int32 count)

They are then unable to open the record with this bad address any longer.

If anything the mapping.GetAscii call should be wrapped in a try catch block and if it fails it should return the text. It should not present an untrapped error and prevent the user from getting back to the record. I have reported this incident to Infor (11202653), hopefully they will have a fix soon.

ABOUT THE AUTHOR

Kris Halsrud

Kris Halsrud is a Senior Analyst / Developer for Customer FX Corporation.

1 Comment

  1. Hi,
    We also reported it and as far as I know we got the reponse, that this should be fixed in 8.4 update 01.

    Reply

Submit a Comment

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

Subscribe To Our Newsletter

Join our mailing list to receive the latest Infor CRM (Saleslogix) news and product updates!

You have Successfully Subscribed!