Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25935] Windows: Ti.Utils.base64decode should ignore line breaks

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2018-10-16T12:37:27.000+0000
Affected Version/sRelease 7.1.0
Fix Version/sRelease 7.5.0
ComponentsWindows
Labelsn/a
ReporterKota Iguchi
AssigneeKota Iguchi
Created2018-04-05T08:00:00.000+0000
Updated2018-10-16T15:29:50.000+0000

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!"

Comments

  1. Kota Iguchi 2018-04-05

    https://github.com/appcelerator/titanium_mobile_windows/pull/1220
  2. Keerthi Mahalingam 2018-10-03

    FR Passed. waiting for CR and merge
  3. Samir Mohammed 2018-10-16

    *Closing ticket*. Verified fix in SDK Version 7.5.0.v20181016071050. Test and other information can be found at: https://github.com/appcelerator/titanium_mobile_windows/pull/1220

JSON Source