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

Windows: Ti.Utils.base64decode should ignore line breaks

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 7.1.0
    • Fix Version/s: Release 7.5.0
    • Component/s: Windows
    • Labels:
      None
    • Story Points:
      5
    • Sprint:
      2018 Sprint 07 SDK, 2018 Sprint 08 SDK, 2018 Sprint 15 SDK, 2016 Sprint 17 SDK, 2018 Sprint 18 SDK, 2018 Sprint 19 SDK, 2018 Sprint 20 SDK, 2018 Sprint 21

      Description

      Ti.Utils.base64decode should trim trailing line breaks to keep parity with other platforms.

      var str = 'RGVjb2Rpbmcgc3VjY2Vzc2Z1bCE=\n';
      var blob = Ti.Utils.base64decode(str);
      Ti.API.info(blob.getText());
      

      Expected: This should print "Decoding successful!"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi
                Reporter:
                kiguchi Kota Iguchi
                Reviewer:
                Gary Mathews
                Tester:
                Keerthi Mahalingam
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code