Project

General

Profile

Actions

Bug #67866

closed

info module > localization overview throws CSRF protection token exception when adding an alt language page

Added by Riccardo De Contardi almost 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Backend User Interface
Target version:
Start date:
2015-07-01
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Stabilization Sprint

Description

Issue found on TYPO3 7.4-dev (latest master, commit 8d09ff5)

Steps to reproduce:

1. Add an alternative language record
2. Go to the home page > info module > localization overview
3. try to add the localization of the page

Result:

Oops, an error occurred!
The CSRF protection token for the requested module is missing or invalid

Full error log:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1417988921: The CSRF protection token for the requested module is missing or invalid | TYPO3\CMS\Core\Exception thrown in file /Users/rkkk/TYPO3-korez/typo3_7_master/typo3/sysext/backend/Classes/Http/BackendModuleRequestHandler.php in line 62. Requested URL: http://typo3.7.master.it:8888/typo3/mod.php?M=record_edit&moduleToken=0e29a7568a838540e989ec2a28f42f49ce2e2ab8%27+(document.webinfoForm[%27newOL[1][1]%27].checked%20?%20%27\u0026edit[pages_language_overlay][1]=new%27%20:%20%27%27)+%27&columnsOnly=title,hidden,sys_language_uid&defVals[pages_language_overlay][sys_language_uid]=1&returnUrl=%2Ftypo3%2Fmod.php%3FM%3Dweb_info%26moduleToken%3D180c6f22323a23caf6e952ac38543ea91b0956b3%26id%3D1%26SET%5Bfunction%5D%3DTYPO3%5CCMS%5CFrontend%5CController%5CTranslationStatusController
Actions #1

Updated by Wouter Wolters almost 9 years ago

  • Status changed from New to Accepted
Actions #2

Updated by Wouter Wolters almost 9 years ago

  • Target version set to 7.4 (Backend)
  • Sprint Focus set to Stabilization Sprint
Actions #3

Updated by Daniel Goerz almost 9 years ago

There is quite some quoting going on. Generated onclick attribute looks like this:

window.location.href='\/typo3\/index.php?M=record_edit\u0026moduleToken=7dbcfd7916d372b09dca1ea1b8dfd86e570bb351\u0027\u000A\u0009\u0009\u0009\u0009\u0009\u0009\u0009\u0009+(document.webinfoForm[\u0027newOL[1][16]\u0027].checked\u0020?\u0020\u0027\u005Cu0026edit[pages_language_overlay][16]=new\u0027\u0020:\u0020\u0027\u0027)\u000A\u0009\u0009\u0009\u0009\u0009\u0009\u0009\u000A\u0009\u0009\u0009\u0009\u0009\u0009\u0009\u0009+(document.webinfoForm[\u0027newOL[1][19]\u0027].checked\u0020?\u0020\u0027\u005Cu0026edit[pages_language_overlay][19]=new\u0027\u0020:\u0020\u0027\u0027)\u000A\u0009\u0009\u0009\u0009\u0009\u0009\u0009\u000A\u0009\u0009\u0009\u0009\u0009\u0009\u0009\u0009+(document.webinfoForm[\u0027newOL[1][18]\u0027].checked\u0020?\u0020\u0027\u005Cu0026edit[pages_language_overlay][18]=new\u0027\u0020:\u0020\u0027\u0027)\u000A\u0009\u0009\u0009\u0009\u0009\u0009\u0009+\u0027\u0026columnsOnly=title,hidden,sys_language_uid\u0026defVals[pages_language_overlay][sys_language_uid]=1\u0026returnUrl='+'%2Ftypo3%2Findex.php%3FM%3Dweb_info%26moduleToken%3D22f054a9f23f815c39d8a5dac75a720f12385480%26id%3D16'; return false;
Actions #4

Updated by Gerrit Code Review over 8 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/41978

Actions #5

Updated by Gerrit Code Review over 8 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/41978

Actions #6

Updated by Nicole Cordes over 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #7

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF