Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-1474

Incorrectly adding percent escapes to URL with a custom port number

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: iOS
    • Labels:

      Description

      {html}<div><p>This is on iOS.</p>
      <p>say I have a url '<a href=
      "http://localhost:3000/login'">http://localhost:3000/login'</a>,
      it'll get escaped wrongly and fail:</p>
      <p><a href="/projects/32238/changesets/ERROR" title=
      "Changeset [ERROR]">[ERROR]</a> Error loading: , Error: Error
      Domain=NSURLErrorDomain Code=-1003 "A server with the specified
      hostname could not be found." UserInfo=0x7c4c830 {NSErrorFailingURLStringKey=<a href= "https://localhost%3a3000/login">https://localhost%3a3000/login</a>, NSErrorFailingURLKey=<a href= "https://localhost%3a3000/login">https://localhost%3a3000/login</a>, NSLocalizedDescription=A server with the specified hostname could not be found., NSUnderlyingError=0x7c4e470 "A server with the specified hostname could not be found."}</p>
      <p>I removed the : from the usage of
      CFURLCreateStringByAddingPercentEscapes in TiUtils.m and
      NetworkModule.m temporarily for my purposes, though I suppose it
      does need to be escaped, just not in that part of the URL.</p></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              rseagraves Reggie Seagraves
              Reporter:
              andrenavarro Andre Navarro
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-1352
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration