Project

General

Profile

Actions

Bug #22669

closed

getExtensionKeyByPrefix() not working for user_-namespace

Added by Julian Hofmann over 14 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-05-17
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Remote Sprint

Description

For extensions in the user-namespace (e.g. 'user_example'), the arraykey in $extensionKeyMap is the full extensionkey instead of only the non-prefixed part. As result, no real extensionkey is found.

Should be fixed with the following changes:
- $shortKey = str_replace('_', '', $extensionKey);
+ $shortKey = ? substr($extensionKey, 5) : str_replace('_', '', $extensionKey);

In combination with the scheduler and autoloader this occures "unable to autoload" exceptions for user_*-classes used as AdditionalFieldProvider
(issue imported from #M14409)

Actions #1

Updated by Julian Hofmann over 14 years ago

Little mistake in my fix:

- $shortKey = str_replace('_', '', $extensionKey);
+ $shortKey = substr($extensionKey, 0, 5)=='user_' ? substr($extensionKey, 5) : str_replace('_', '', $extensionKey);

Actions #2

Updated by Chris topher over 14 years ago

Hi Julian,

please send your patch to Core List!
See http://typo3.org/teams/core/core-mailinglist-rules/

Actions #3

Updated by Alexander Opitz over 11 years ago

  • Status changed from New to Needs Feedback
  • Target version deleted (0)

The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 4.7)?

Actions #4

Updated by Julian Hofmann over 11 years ago

getExtensionKeyByPrefix() in version 6.1 is still the same code as it has been in 4.3.
So, I would expect the same behaviour.

Actions #5

Updated by Alexander Opitz over 11 years ago

  • Status changed from Needs Feedback to New
Actions #6

Updated by Mathias Schreiber almost 10 years ago

  • Assignee set to Mathias Schreiber
  • Target version set to 7.1 (Cleanup)
  • Is Regression set to No
  • Sprint Focus set to Remote Sprint
Actions #7

Updated by Benni Mack over 9 years ago

  • Target version changed from 7.1 (Cleanup) to 7.4 (Backend)
Actions #8

Updated by Susanne Moog over 9 years ago

  • Target version changed from 7.4 (Backend) to 7.5
Actions #9

Updated by Benni Mack about 9 years ago

  • Target version changed from 7.5 to 7 LTS
Actions #10

Updated by Benni Mack about 9 years ago

  • Status changed from New to Needs Feedback
  • Target version deleted (7 LTS)

Hey Julian,

could you recheck this in v7? I think we tackled the autoloading part as we reworked this area in the last months.

Actions #11

Updated by Alexander Opitz over 8 years ago

  • Status changed from Needs Feedback to Closed
  • Assignee deleted (Mathias Schreiber)

No feedback within the last 90 days => closing this issue.

If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.

Actions

Also available in: Atom PDF