Uploaded image for project: 'Snowstorm'
  1. Snowstorm
  2. STORM-2111

[MAINT-RC] Undesired "http://" added to domains sent in chat

    Details

    • Type: Defect
    • Status: Closed
    • Priority: Unset
    • Resolution: Accepted
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Description

      Steps to Reproduce

      Repro 1

      • Paste the following into nearby chat/group chat/IM:
        (This is a common example of something support needs to tell users to do a lot)
        You will need to add @im.agni.lindenlab.com and @mail.secondlife.com to your Gmail whitelist so the emails do not get sent to spam
      • Observe how the text posts in nearby chat/group chat/IM.

      Repro 2

      • Paste the following script snippet into nearby chat/group chat/IM

      email( string time, string address, string subj, string message, integer num_left )
      {
          if(llGetSubString(address, -19, -1) == "@lsl.secondlife.com")//trim the header
              message = llDeleteSubString(message, 0, llSubStringIndex(message, "\n\n") + 1);
      }
      

      • Observe how the text posts into nearby chat/group chat/IM

      Observed Behaviour

      Repro 1

      Repro 2

      • When the given script snippet is posted into chat, it becomes

      email( string time, string address, string subj, string message, integer num_left )
      {
          if(llGetSubString(address, -19, -1) == "@lslhttp://.secondlife.com")//trim the header
              message = llDeleteSubString(message, 0, llSubStringIndex(message, "\n\n") + 1);
      }
      

      • @lsl.secondlife.com has been changed to @lslhttp://.secondlife.com and the script example is now incorrect.

      Expected Behaviour

      Don't add http:// to SL or LL domains in chat.

      Workaround

      You can add nolink tags around the domains you do not wish to have http:// added to.

      eg) Post this to nearby chat to get desired behaviour
      You will need to add <nolink>@im.agni.lindenlab.com</nolink> and <nolink>@mail.secondlife.com</nolink> to your Gmail whitelist so the emails do not get sent to spam

      Other Information

      • Does not reproduce on default release: Second Life 3.7.25 (299021) Feb 13 2015 15:21:02 (Second Life Release)
      • On default release, Repro 1 will post correctly in chat (baring the space after the @ that gets added because of the link decoration icon) as
        You will need to add @ im.agni.lindenlab.com and @ mail.secondlife.com to your Gmail whitelist so the emails do not get sent to spam
      • On default release, the Repro 2 script snippet will post correctly (apart from the space after the @) in chat as:

        email( string time, string address, string subj, string message, integer num_left )
        {
            if(llGetSubString(address, -19, -1) == "@ lsl.secondlife.com")//trim the header
                message = llDeleteSubString(message, 0, llSubStringIndex(message, "\n\n") + 1);
        }
        

      • On older builds before the recent URL parser changes both Repro 1 text and the Repro 2 script would post into chat 100% correctly without adding the extra space after the @
        There was no need to use nolink tags around LL/SL domains to get the correct behaviour in chat.
      • I know you are going to close this as expected behaviour and tell us to use nolink tags

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              whirly.fizzle Whirly Fizzle
              Contributor:
              Cinder Roxley
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: