Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Release Branch 13.07, 14.12.01
    • Fix Version/s: 14.12.01, 12.04.06, 13.07.02
    • Component/s: party
    • Labels:
      None

      Description

      When you upload Party Content, an "Upload..." message appears next to the Upload button, but it never goes away. While still on the same screen, check the OFBiz console - the getFileUploadProgressStatus request is invoked once per second indefinitely.

      1. OFBIZ-5891.patch
        0.7 kB
        Deepak Dixit

        Activity

        Hide
        deepak.dixit Deepak Dixit added a comment - - edited

        Here is the patch for this issue. This issue due to OFBIZ-5409

        Added the dataType: 'json', for getUploadProgressStatus method.

         [java] 2014-12-01 15:06:00,977 |ttp-bio-8443-exec-77 |CommonEvents                  |W| for security reason (OFBIZ-5409) the the '//' prefix was added handling the JSON response.  Normally you simply have to access the data you want, so should not be annoyed by the '//' prefix.You might need to remove it if you use Ajax GET responses (not recommended).In case, the util.js scrpt is there to help you
        
        Show
        deepak.dixit Deepak Dixit added a comment - - edited Here is the patch for this issue. This issue due to OFBIZ-5409 Added the dataType: 'json', for getUploadProgressStatus method. [java] 2014-12-01 15:06:00,977 |ttp-bio-8443-exec-77 |CommonEvents |W| for security reason (OFBIZ-5409) the the ' //' prefix was added handling the JSON response. Normally you simply have to access the data you want, so should not be annoyed by the '//' prefix.You might need to remove it if you use Ajax GET responses (not recommended).In case , the util.js scrpt is there to help you
        Hide
        deepak.dixit Deepak Dixit added a comment -

        jQuery try to infer dataType based on the MIME type, but in this case type value is undefined, due to this util.js fails to remove the '//' form the response.
        Attached patch is quick fix for this issue.

        http://api.jquery.com/jquery.ajax/

        The type of data that you're expecting back from the server. If none is specified, jQuery will try to infer it based on the MIME type of the response (an XML MIME type will yield XML, in 1.4 JSON will yield a JavaScript object, in 1.4 script will execute the script, and anything else will be returned as a string). 
        
        Show
        deepak.dixit Deepak Dixit added a comment - jQuery try to infer dataType based on the MIME type, but in this case type value is undefined, due to this util.js fails to remove the '//' form the response. Attached patch is quick fix for this issue. http://api.jquery.com/jquery.ajax/ The type of data that you're expecting back from the server. If none is specified, jQuery will try to infer it based on the MIME type of the response (an XML MIME type will yield XML, in 1.4 JSON will yield a JavaScript object, in 1.4 script will execute the script, and anything else will be returned as a string).
        Hide
        jacques.le.roux Jacques Le Roux added a comment -

        Thanks Deepak,

        Your patch is in
        trunk r1643423
        R13.07 r1643424
        R12.04 r1643425

        Thanks Adrian for report

        Show
        jacques.le.roux Jacques Le Roux added a comment - Thanks Deepak, Your patch is in trunk r1643423 R13.07 r1643424 R12.04 r1643425 Thanks Adrian for report
        Hide
        deepak.dixit Deepak Dixit added a comment -

        Thanks Jacques.

        Show
        deepak.dixit Deepak Dixit added a comment - Thanks Jacques.

          People

          • Assignee:
            jacques.le.roux Jacques Le Roux
            Reporter:
            adrianc@hlmksw.com Adrian Crum
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development