Details

      Description

      When trying to upload a new image with an object relations attribute using Opera, or Internet Explorer, I get the following message:

      Unable to parse the JSON response

      Steps to reproduce

      Setup - Create an Object Relations class
       
      1.Login as admin on administration interface
      2.Click in Setup tab on top menu
      3.Click in Classes on left menu
      4.Click in Content on Class Group block
      5.Click in New Class button
        Name : Object relations
        Identifier : object_relations
        Object name pattern : <name>
        Attribute (Text line) :
        Name : Name
        Identifier : name
        Attribute ( Object relations )
        Name : Object relations
        Identifier : object_relations
      6. Click in OK button
       
      Setup - Upload an image
       
      1. Click in Content Structure tab on top menu 
      2. Create an Object Relation
          Name: Relation object
      3. Click in Add objects button
      4. Check the box near News
      5. Click in Select button
      6. Click in Add objects button
      7. Check the box near Knowledge
      8. Click in Select button
      9. Click in Upload a file button
      10.Select an image file from your computer
      11. Click in Upload file button
       
      Pop-up with the following error.
       
      Unable to parse the JSON response
      
      

      1. ajaxresponse.txt
        7 kB
        Pedro Resende
      2. IE8_error.rar
        246 kB
        Disabled User
      3. NetworkData.xml
        18 kB
        Disabled User
      1. Capture.PNG
        5 kB
      2. download.png
        4 kB

        Issue Links

          Activity

          Hide
          Damien Pobel (eZ) added a comment - - edited

          In reply to comment #057347
          There is something weird in your NetworkData.xml and your previous comment. You say it happens in IE8 while I remember you said me it was in IE9 (see my comment above)!

          In addition, the XML report begins with "<creator><name>Internet Explorer Network Inspector</name><version>9.0.8112.16421</version></creator>" and below, we can read that the send user agent string is a user agent from Internet Explorer 8. In addition, AFAIK, Internet Explorer 8 the developer tools does not have the feature to capture the network activity so I'm starting to think that you are testing with an emulated IE8 in a machine that normally runs IE9. This is kind of setup is well known to not work as one would expect.

          So please, clarify which version is really affected and test with a TRUE stock Internet Explorer.
          On my side, it's working as expected with the following installations:

          • Internet Explorer 8.0.6001.18702 on Windows XP
          • Internet Explorer 9.0.8112.16421 on Windows 7

          Edit: I've just understand, what you are doing: I think you put Internet Explorer 9 in "Browser Mode: IE8". But doing this does not mean you are testing with IE8, IE9 in IE8 browser mode does not exactly have the same behavior than a true Internet Explorer 8!!!!!!

          Show
          Damien Pobel (eZ) added a comment - - edited In reply to comment #057347 There is something weird in your NetworkData.xml and your previous comment. You say it happens in IE8 while I remember you said me it was in IE9 (see my comment above)! In addition, the XML report begins with "<creator><name>Internet Explorer Network Inspector</name><version>9.0.8112.16421</version></creator>" and below, we can read that the send user agent string is a user agent from Internet Explorer 8. In addition, AFAIK, Internet Explorer 8 the developer tools does not have the feature to capture the network activity so I'm starting to think that you are testing with an emulated IE8 in a machine that normally runs IE9. This is kind of setup is well known to not work as one would expect. So please, clarify which version is really affected and test with a TRUE stock Internet Explorer. On my side, it's working as expected with the following installations: Internet Explorer 8.0.6001.18702 on Windows XP Internet Explorer 9.0.8112.16421 on Windows 7 Edit: I've just understand, what you are doing: I think you put Internet Explorer 9 in "Browser Mode: IE8". But doing this does not mean you are testing with IE8, IE9 in IE8 browser mode does not exactly have the same behavior than a true Internet Explorer 8!!!!!!
          Hide
          Disabled User added a comment - - edited

          In reply to comment #057348
          Hi,
          Please see in the attached files the error in IE8.
          IE8_error.rar

          Show
          Disabled User added a comment - - edited In reply to comment #057348 Hi, Please see in the attached files the error in IE8. IE8_error.rar
          Hide
          Disabled User added a comment -

          IE8_error.rar IE8 error

          Show
          Disabled User added a comment - IE8_error.rar IE8 error
          Hide
          Damien Pobel (eZ) added a comment -

          Confirmed, it's only happening in IE8 under Windows 7. IE[6-8] in XP are not affected nor IE9 in Win7

          Show
          Damien Pobel (eZ) added a comment - Confirmed, it's only happening in IE8 under Windows 7. IE [6-8] in XP are not affected nor IE9 in Win7
          Show
          Damien Pobel (eZ) added a comment - Fixed IE8 Windows 7 issue in master https://github.com/ezsystems/ezpublish/commit/a1e1f79bee35d52742548b22e5b15a895bfc8979

            People

            • Assignee:
              Damien Pobel (eZ)
              Reporter:
              Pedro Resende
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: