Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-24487

eZ Autosave: discarding a draft opens new tab with JSON error in FireFox

    XMLWordPrintable

Details

    Description

      This issue only affects 5.3

      On FireFox, with eZ Autosave enabled, when a content such as an article is created or edited and then the draft is discarded, a new browser tab is generated pointing to /ezjscore/call/ezautosave::savedraftpreview::179::1::eng-GB?ContentType=javascript. The actual page contains a JSON structure with an error.

      Steps to reproduce:

      • Prepare a clean, up-to-date eZ Publish 5.3 installation (5.3.5);
      • Enable eZ Autosave extension;
      • Using FireFox, login to admin siteaccess;
      • Create a new content or edit an existing one (used article);
      • Click on the "Discard draft" button. The content will be successfully discarded, but a new browser tab will be generated pointing to /ezjscore/call/ezautosave::savedraftpreview::179::1::eng-GB?ContentType=javascript, and the actual page contains a JSON structure with an error e.g.

      http://53ezdemo.com/ezdemo_site_admin/ezjscore/call/ezautosave::savedraftpreview::183::1::eng-GB?ContentType=javascript

      {
         "error_text":"",
         "content":{
            "unvalidated-attributes":[
      
            ],
            "stored-attributes":{
               "1211":1211,
               "1212":1212,
               "1213":1213,
               "1214":1214,
               "1215":1215,
               "1216":1216,
               "1217":1217,
               "1218":1218,
               "1219":1219,
               "1220":1220,
               "1221":1221
            },
            "valid":true,
            "message_success":"Draft saved at 6:34 pm",
            "message_ago":"(0 minutes ago)",
            "timestamp":1433784856,
            "preview":"<div class=\"preview-header\">\n    <h1 class=\"context-title\">\n        <a href=\"#\" class=\"close\">&laquo;&nbsp;Back to the edit form<\/a>\n        <img class=\"transparent-png-icon\" src=\"\/share\/icons\/crystal-admin\/32x32\/mimetypes\/document.png\" width=\"32\" height=\"32\" alt=\"Article\" title=\"Article\" \/>\n        Preview of &lt;New article&gt; in siteaccess\n        <select class=\"no-autosave\">\n                    <option value=\"ezdemo_site\" selected=\"selected\">ezdemo_site<\/option>\n                    <option value=\"eng\">eng<\/option>\n                    <option value=\"ezdemo_site_admin\">ezdemo_site_admin<\/option>\n                    <option value=\"ger\">ger<\/option>\n                    <option value=\"chi\">chi<\/option>\n                <\/select>\n        <img src=\"\/extension\/ezautosave\/design\/standard\/images\/as-loader.gif\" alt=\"Loading...\" style=\"display:none\" id=\"iframe-loader\" \/>\n    <\/h1>\n    <div class=\"context-information\">\n        <p class=\"left preview-warning\">\n            <strong>Warning:<\/strong> <em>following links from the preview will take you to the live version of the website<\/em>\n        <\/p>\n        <p class=\"right translation\">\n            English (United Kingdom)&nbsp;<img src=\"\/share\/icons\/flags\/eng-GB.gif\" width=\"18\" height=\"12\" style=\"vertical-align: middle;\" alt=\"eng-GB\" \/>\n        <\/p>\n        <div class=\"break\"><\/div>\n    <\/div>\n<\/div>\n<iframe src=\"\/ezdemo_site_admin\/content\/versionview\/183\/1\/eng-GB\/site_access\/ezdemo_site\"><\/iframe>\n"
         }
      }
      

      Notes:

      • verified on FF 38.x (ubuntu, windows);
      • Does not ocurr on Chrome, IE;
      • Issue only ocurrs if eZ Autosave extension is enabled;

      Attachments

        Activity

          People

            Unassigned Unassigned
            nuno.oliveira-obsolete@ez.no Nuno Oliveira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: