Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    XMLParsingException in SmartGWT

    Hi Isomorphic Technical Support,

    It is found that, a control character in the submitted request will break on server side. Besides, the server return a success status code to SmartGWT client.

    I consider that, it is a bug in SmartGWT. Please help to fix it. By the mean time, my side will prepare a white list for what kind of data can be passed to server.

    The using SmartGWT version is 3.0 and will be upgrade to v4.1.

    Let me know your thought.
    Thank you very much!

    Scenario:
    In SmartGWT front end, a string with control character (refer to input-string.txt file) is input to ListGridField, and then call form.saveData with DSCallback

    Result:
    1. Server side: XMLParsingException is found in server log. (refer to server.log file)
    2. Front end: In DSCallback, DSResponse object with STATUS_SUCCESS is responded. Below is the sample code.

    form.saveData(new DSCallback() {
    public void execute(final DSResponse response, final Object rawData,
    final DSRequest request) {

    if (response.getStatus() == DSResponse.STATUS_SUCCESS) {
    SC.say(“success”);
    } else {
    SC.warn(“fail”);
    }
    }
    });
    Attached Files
Working...
X