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

iOS: base64decode issue observed with SDK 7.0.0 and above

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 7.0.0
    • Fix Version/s: Release 7.0.2
    • Component/s: iOS
    • Labels:
      None
    • Environment:

      TiSDK 7.0.0.GA
      iOS 11

      Description

      Hi,
      We have an oAuth login module to login to our app. During the login process, we will have to decode a token. For this we have used Titanium.Utils.base64decode(token).
      The same code works for TiSDK 6.3.0 and below.
      Once we upgraded the sdk to 7.0.0 the same returns undefined
      Below is the toke thats received while logging in using oAuth.
      token

      "eyJzdWIiOiJ0ZXN0IiwiZW1haWwiOiJ0ZXN0IiwiYXVkIjoidGVzdCIsImp0aSI6ImxvTHM4d2o5aWxBQUtWckNxbzhaMFMiLCJpc3MiOiJodHRwczpcL1wvc3NvLmV4YW1wbGUuY29tIiwiaWF0IjoxNTI2MTY3NDc3LCJleHAiOjE1MjYxNjc0NzcsInBpLnRlc3QiOiJMSTRmMW81Q2pqU2tHU2xTanM0bHlPeVlROCJ9"
      

      We have checked this in a simple code with only the below line
      Titanium.Utils.base64decode(token)
      Works fine in 6.3.0 and returns undefined in 7.0.0 and above

      Thanks

      EDIT by Hans: This ticket also fixes an issues where Android would not accept Ti.Filesystem.File parameters in base64decode.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hknoechel Hans Knöchel
                Reporter:
                aislam Aminul Islam
                Reviewer:
                Christopher Williams
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code