Project

General

Profile

Actions

Feature #65866

closed

Fetch extension version from ext_emconf.php if composer.json does not contain version property

Added by Peter Niederlag over 9 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2015-03-20
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Composer itself suggests to not set the version property inside composer.json as it can be calculated from vcs branch/tag properties.

Currently this causes troubles inside of 6.2.x as the version from ext_emconf.php is ignored if a composer.json is present.

The concrete requirements to trigger the bug need more information, as it might not happen in all cases.

First requirement of course is a real composer based installation (composer install in root directory)
Also it might happen only when extension are analyzed by a dependency.

Unfortunatly while preparing the patch I forgot to be more precise on the setup to trigger it.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #72631: Version number in composer manifest is missing or invalidClosed2016-01-11

Actions
Actions #1

Updated by Gerrit Code Review over 9 years ago

  • Status changed from New to Under Review

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

Actions #2

Updated by Peter Niederlag over 9 years ago

  • Description updated (diff)
Actions #3

Updated by Gerrit Code Review over 9 years ago

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

Actions #4

Updated by Nicole Cordes over 9 years ago

  • Target version set to 7.3 (Packages)
  • Sprint Focus set to On Location Sprint
Actions #5

Updated by Patrik Karisch over 9 years ago

Happened here too. We have some internal extensions which are installed with composer/installers, they have a version field in ext_emconf.php but not in composer.json. It's very unconventional to require a version field in the composer.json

And the exceptions only happens, if a local extensions has a depends constraint in his ext_emconf.php to such a extension which has a composer.json

Actions #6

Updated by Helmut Hummel over 9 years ago

  • Status changed from Under Review to Needs Feedback

Patrik Karisch wrote:

Happened here too. We have some internal extensions which are installed with composer/installers, they have a version field in ext_emconf.php but not in composer.json. It's very unconventional to require a version field in the composer.json

And the exceptions only happens, if a local extensions has a depends constraint in his ext_emconf.php to such a extension which has a composer.json

I cannot reproduce this any more. Can you give more information how to reproduce it? Also the exception code would already help to tackle this issue.

Actions #7

Updated by Benni Mack over 9 years ago

  • Target version changed from 7.3 (Packages) to 7.4 (Backend)
Actions #8

Updated by Helmut Hummel over 9 years ago

It is about exception code 1395614959 thrown in ExtensionManagementUtility::getExtensionVersion()

Actions #9

Updated by Helmut Hummel over 9 years ago

Steps to reproduce:

  • Extension "a" has a composer.json without version property, is in the system and activated
  • Extension "b" is in the system but inactive and has a dependency to extension "a"
  • Activate Extension "b" in the extension manager
Actions #10

Updated by Gerrit Code Review over 9 years ago

  • Status changed from Needs Feedback 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/41133

Actions #11

Updated by Gerrit Code Review over 9 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/41133

Actions #12

Updated by Gerrit Code Review over 9 years ago

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

Actions #13

Updated by Nicole Cordes over 9 years ago

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

Updated by Mathias Schreiber over 9 years ago

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

Updated by Riccardo De Contardi about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF