Feature #68202

Epic #72584: sysext:impexp

Add option to keep user/group permissons when importing pages

Added by Axel Jindra about 4 years ago. Updated over 1 year ago.

Status:
New
Priority:
Could have
Assignee:
-
Category:
Import/Export (T3D)
Target version:
-
Start date:
2015-07-16
Due date:
% Done:

0%

PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

After ex- and importing a pagetree within the same installation the pages.perms_groupid setting is lost (and the attribute set to value 0).

History

#1 Updated by Kevin Ditscheid over 3 years ago

Can confirm this for TYPO3 7.6.2. The group relation gets lost, even when exporting the group, that is owner of the page, alongside the page itself.

#2 Updated by Anja Leichsenring over 3 years ago

  • Sprint Focus set to On Location Sprint

#3 Updated by Georg Ringer over 3 years ago

see typo3_src/typo3/sysext/impexp/Classes/ImportExport.php:2184

// Have to reset the user/group IDs so pages are owned by importing user. Otherwise strange things may happen for non-admins!
unset($this->import_data[$table][$ID]['perms_userid']);
unset($this->import_data[$table][$ID]['perms_groupid']);

I am not really sure if this should be changed

#4 Updated by Axel Jindra over 3 years ago

Actually strange things happen, because the user/group is unset. Additionally, you aren't notified about that fact so it needs investigation that the IDs have to be re-set after import.
It was OK to leave the group IDs intact for the last ~200 releases of TYPO3, so why no more? Have there been complaints the other way round?

#5 Updated by Morton Jonuschat over 3 years ago

  • Tracker changed from Bug to Feature
  • Subject changed from ImpExp perms_groupid lost to Add option to keep user/group permissons when importing pages
  • Priority changed from Should have to Could have

Fun fact: The permissions have been reset since somewhere around TYPO3 3.6 or 3.7 - https://github.com/TYPO3/TYPO3.CMS/commit/548ce4b6d93c569ab214ed754772c746b7d59e33

#6 Updated by Nicole Cordes over 3 years ago

  • Sprint Focus deleted (On Location Sprint)

#7 Updated by Riccardo De Contardi over 1 year ago

  • Parent task set to #57377

#8 Updated by Markus Klein over 1 year ago

  • Parent task changed from #57377 to #72584

Also available in: Atom PDF