ICEmobile
  1. ICEmobile
  2. MOBI-105

form posts containing onerror and onevent callbacks

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0 Beta
    • Fix Version/s: 1.0 Beta
    • Component/s: None
    • Labels:
      None
    • Environment:
      ICEmobile

      Description


      The form posted to the server from ICEmobile contains apparent JavaScript function callbacks:


      --isPx7OGR9NvcMg3kOuLV23otIMDbgiejL
      Content-Disposition: form-data; name="onerror"
      Content-Type: text/plain; charset=UTF-8
      Content-Transfer-Encoding: 8bit

      function (e) {
                      if (e.status == 'serverError') {
                          var xmlContent = e.responseXML;
                          if (containsXMLData(xmlContent)) {
                              var errorName = xmlContent.getElementsByTagName("error-name")[0].firstChild.nodeValue;
                              if (errorName && contains(errorName, 'org.icefaces.application.SessionExpiredException')) {
                                  info(logger, 'received session expired message');
                                  sessionExpired();
                                  return;
                              }
                          }
                          info(logger, 'received error message [code: ' + e.responseCode + ']: ' + e.responseText);
                          broadcast(perRequestServerErrorListeners, [ e.responseCode, e.responseText, containsXMLData(xmlContent) ? xmlContent : null]);
                      } else if (e.status = 'httpError') {
                          warn(logger, 'HTTP error [code: ' + e.responseCode + ']: ' + e.description);
                          broadcast(perRequestNetworkErrorListeners, [ e.responseCode, e.description]);
                      } else {
                          error(logger, 'Error [status: ' + e.status + ' code: ' + e.responseCode + ']: ' + e.description);
                      }
                  }


        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Ted Goddard
            Reporter:
            Ted Goddard
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: