Details
-
Bug
-
Resolution: Fixed
-
High
-
5.3.5
-
None
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.
{ "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\">« 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 <New article> 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) <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;