Project

General

Profile

Actions

Bug #82931

closed

File reference on new page gets pid 0 instead of the pid of the record

Added by Michiel Roos almost 7 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
FormEngine aka TCEforms
Start date:
2017-11-06
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Steps to reproduce:
  1. Go to 'list' mode
  2. Create a new page (so it has uid NEW_*)
  3. Attach a resource like an image
  4. Save the record

Expected behavior:
The sys_file_reference entry has a pid of the newly created page

Observed behavior:
The sys_file_reference entry has a pid of 0

Result:
A regular 'mortal' user can never remove the reference from the page object because it has no access to remove stuff from pid 0.

I only observed this behavior in page records. tt_content for example, seems to work fine


Related issues 2 (1 open1 closed)

Related to TYPO3 Core - Bug #103092: TYPO3 12LTS | php8.1 | File reference on new page gets pid 0 instead of the pid of the recordNew2024-02-09

Actions
Has duplicate TYPO3 Core - Bug #87972: Editor looses ability to delete file relation on page if relation was created with the page recordClosed2019-03-20

Actions
Actions #1

Updated by Michiel Roos almost 7 years ago

I'm working on a fix.

Actions #2

Updated by Gerrit Code Review almost 7 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/54598

Actions #3

Updated by Gerrit Code Review almost 7 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/54598

Actions #4

Updated by Gerrit Code Review almost 7 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/54598

Actions #5

Updated by Gerrit Code Review almost 7 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/54598

Actions #6

Updated by Gerrit Code Review almost 7 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/54598

Actions #7

Updated by Benni Mack almost 7 years ago

  • Category set to FormEngine aka TCEforms
  • Sprint Focus set to On Location Sprint
Actions #8

Updated by Gerrit Code Review almost 7 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/54598

Actions #9

Updated by Gerrit Code Review over 6 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/54598

Actions #10

Updated by Gerrit Code Review over 6 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/54598

Actions #11

Updated by Mathias Brodala over 6 years ago

  • Sprint Focus deleted (On Location Sprint)
Actions #12

Updated by Gerrit Code Review over 6 years ago

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

Actions #13

Updated by Gerrit Code Review over 6 years ago

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

Actions #14

Updated by Gerrit Code Review over 6 years ago

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

Actions #15

Updated by Vladimir Falcon about 6 years ago

I am having the same problem in TYPO3 7.6.31

Actions #16

Updated by Gerrit Code Review about 6 years ago

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

Actions #17

Updated by Gerrit Code Review almost 6 years ago

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

Actions #18

Updated by Gerrit Code Review over 5 years ago

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

Actions #19

Updated by Josef Glatz over 5 years ago

A customer encountered the same problem in TYPO3 8.7 where the PID of the sys_language_uid is 0. But it's somehow funny, because the editor doesn't have the list module enabled for his usergroup. I can't find a way to reproduce the behaviour. Only the title of the patch on Gerrit seems to be the same problem.

Actions #20

Updated by Josef Glatz over 5 years ago

  • Priority changed from Should have to Must have
  • Target version set to Candidate for patchlevel
Actions #21

Updated by Alexey Gafiulov almost 5 years ago

  • Related to Bug #87972: Editor looses ability to delete file relation on page if relation was created with the page record added
Actions #22

Updated by Gerrit Code Review over 4 years ago

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

Actions #23

Updated by Markus Klein over 4 years ago

  • Related to deleted (Bug #87972: Editor looses ability to delete file relation on page if relation was created with the page record)
Actions #24

Updated by Markus Klein over 4 years ago

  • Has duplicate Bug #87972: Editor looses ability to delete file relation on page if relation was created with the page record added
Actions #25

Updated by Gerrit Code Review over 4 years ago

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

Actions #26

Updated by Gerrit Code Review over 4 years ago

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

Actions #27

Updated by Gerrit Code Review over 4 years ago

Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63222

Actions #28

Updated by Gerrit Code Review over 4 years ago

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

Actions #29

Updated by Anonymous over 4 years ago

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

Updated by Gerrit Code Review over 4 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63231

Actions #31

Updated by Anonymous over 4 years ago

  • Status changed from Under Review to Resolved
Actions #32

Updated by Gerrit Code Review over 4 years ago

  • Status changed from Resolved to Under Review

Patch set 2 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63231

Actions #33

Updated by Anonymous over 4 years ago

  • Status changed from Under Review to Resolved
Actions #34

Updated by Benni Mack over 4 years ago

  • Status changed from Resolved to Closed
Actions #35

Updated by Sybille Peters 8 months ago

  • Related to Bug #103092: TYPO3 12LTS | php8.1 | File reference on new page gets pid 0 instead of the pid of the record added
Actions

Also available in: Atom PDF