android-rcs / rcsjta

RCS-e stack for Android with GSMA API
173 stars 74 forks source link

FT XML info document handling is filtering new lines #220

Closed SchmitzA closed 7 years ago

SchmitzA commented 7 years ago

HttpUploadManager#convertStreamToString is filtering out any new line character like 0x0a which may be needed later on for parsing as white space to seperate parameters within an element. E.g. the current implementation of the above method is transforming the valid sequence <file xmlns="urn:gsma:params:xml:ns:rcs:rcs:fthttp"\n xmlns:e="urn:gsma:params:xml:ns:rcs:rcs:up:fthttpext"> into an invalid sequence

So line 484 of HttpUploadManager#convertStreamToString should be changed from sb.append(line); to sb.append(line).append('\n');
yplo6403 commented 7 years ago

OK fix pushed on all branches (integration, master, tapi_1.6.1 and tapi_1.5.1). Thanks