Project

General

Profile

Actions

Bug #72582

closed

feedit does not work when logged in as feuser: Invalid request for route "/record/edit"

Added by Christian Weiske over 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
felogin
Target version:
-
Start date:
2016-01-08
Due date:
% Done:

100%

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

Description

As soon as you are logged in with a frontend user, frontend editing (feedit) does not work anymore.

When clicking on the "Edit" icon in the frontend, the popup opens and an exception is thrown:

#1425389455: Invalid request for route "/record/edit" (More information)

TYPO3\CMS\Backend\Routing\Exception\RouteNotFoundException thrown in file
/typo3_src-7.6.2/typo3/sysext/backend/Classes/Http/RouteDispatcher.php in line 49.

Steps to reproduce:

  1. Install fresh TYPO3 7.6.2 with introduction package
  2. Enable admin panel (frontend editing works)
  3. Create frontend user sysfolder, add frontend group, add frontend user
  4. Put login form on a page, point it to frontend user sysfolder
  5. Login with frontend user, click the edit icon and see the exception message in the popup.

What still works after logging in with a frontend user is: deleting, hiding and moving elements up and down.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #73082: feedit links broken after visiting workspace preview link: Invalid request for route "/record/edit"Closed2016-02-02

Actions
Is duplicate of TYPO3 Core - Bug #72865: Error in FEedit when adding new content record: Invalid request for route "/record/content/new"Closed2016-01-21

Actions
Actions #1

Updated by Christian Weiske over 8 years ago

The problem is that BackendUriBuilder::buildUriFromRoute() uses FormProtectionFactory::get() without parameters. It uses FrontendFormProtection because it detects TYPO3_MODE === 'FE'.

When opening the link, BackendFormProtection is used to validate the token - and this fails.

The correct solution would probably be to make BackendUriBuilder request BackendFormProtection, instead of relying on autodetection.

Actions #2

Updated by Gerrit Code Review over 8 years ago

  • Status changed from New 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 https://review.typo3.org/45687

Actions #3

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 https://review.typo3.org/45687

Actions #4

Updated by Gerrit Code Review over 8 years ago

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

Actions #5

Updated by Gerrit Code Review over 8 years ago

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

Actions #6

Updated by Gerrit Code Review over 8 years ago

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

Actions #7

Updated by Gerrit Code Review over 8 years ago

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

Actions #8

Updated by Gerrit Code Review over 8 years ago

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

Actions #9

Updated by Gerrit Code Review over 8 years ago

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

Actions #10

Updated by Gerrit Code Review over 8 years ago

Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45934

Actions #11

Updated by Anonymous over 8 years ago

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

Updated by Gerrit Code Review over 8 years ago

  • Status changed from Resolved to Under Review

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

Actions #13

Updated by Wouter Wolters over 8 years ago

  • Status changed from Under Review to Closed

Hi Thanks for your report. This has already been reported, see #72582 which is already under review.

I close this ticket as a duplicate of #72582

Actions #14

Updated by Christian Weiske over 8 years ago

@Wouter: You're closing this ticket as a duplicate of itself?

Actions #15

Updated by Wouter Wolters over 8 years ago

  • Status changed from Closed to Under Review

I don't know why that happened. I entered this message in the other ticket :S

Actions #16

Updated by Paul A. Auwehla about 8 years ago

Applied the patch for the two files and I am happy ;-))
FEediting with logged in FEuser is possible now again.

Actions #17

Updated by Christian Toffolo almost 8 years ago

Instead I applied Patch set 2 and when I try to login in the BE I get:
#1285067843: A back-end form protection may only be instantiated if there is an active back-end session. (More information)

Actions #18

Updated by Christian Weiske almost 8 years ago

Christian Toffolo: Use the first patch (comment#10), not the second (comment#12).

Actions #19

Updated by Christian Toffolo almost 8 years ago

Christian Weiske: I already have the edits of patch 1 in my source code, no need to apply that one.

I came to this bug report cause I had the same problem of #72865 that has been closed as duplicate of this one, while it's not a duplicate, it's just (maybe) related.

That is...
when I try to create new content using the second button under "Editing" in the admPanel I get:
Invalid request for route "/record/content/new"

Can you confirm/deny this please?

Actually I have to sadly tell the editors: "FE editing it's working except that if you need to create a new content on a empty page you have to use the BE"

Actions #20

Updated by Christian Weiske almost 8 years ago

Christian Toffolo: I can confirm that the "Create new content element" button on the edit panel still causes the exception.

We've hidden the admin panel and only use the "+" buttons below the actual content elements, this is why we did not notice this problem.

Actions #21

Updated by Anja Leichsenring almost 6 years ago

  • Status changed from Under Review to Resolved
Actions #22

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF