Skip to content

Android 10 replacing @ with @ in requestDump #137

@android-dataticket

Description

@android-dataticket

https://stackoverflow.com/questions/63475044/android-10-changing-sign-to-64-when-sending-auth-header-through-ksoap2

Android 4.4 through Android 9.0 will properly send the '@' character as is inside a request envelope.

Android 10.0 is changing the '@' character into '&#64 ;' which is the ascii code for the '@' character.

Can't find out how to prevent this on the outside, it looks like it's happening in the library during the envelope creation/execution.

For example, let's say one of the nodes I'm sending is a username that uses an '@' inside, like username@areaname.

    SoapObject request2 = new SoapObject(NAMESPACE, "request");
    PropertyInfo pi = new PropertyInfo();
    pi.setName("UID");
    pi.setValue("username@areaname");
    pi.setType(String.class);
    pi.setNamespace(NAMESPACE2);
    request2.addProperty(pi);

this will get sent in the envelop as <UID>username&#64 ;areaname</UID> if using Android 10.0

Using latest KSOAP2 3.6.4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions