Bug #7598

Automatically set context not checked in Bootstrap

Added by Karsten Dambekalns over 5 years ago. Updated almost 5 years ago.

Status:Resolved Start date:2010-05-03
Priority:Should have Due date:
Assigned To:Karsten Dambekalns % Done:

100%

Category:Core
Target version:TYPO3 Flow Base Distribution - 1.0 alpha 9 Estimated time:1.00 hour
PHP Version: Complexity:
Has patch: Affected Flow version:

Description

Exception is thrown in Production context

--- Core/Bootstrap.php    (revision 4252)
+++ Core/Bootstrap.php    (working copy)
@@ -170,8 +170,8 @@
         $this->ensureRequiredEnvironment();
         $this->context = (strlen($context) === 0) ? 'Production' : $context;

-        if ($context !== 'Production' && $context !== 'Development') {
-            exit('FLOW3: Unknown context "' . $context . '" provided, currently only "Production" and "Development" are supported. (Error #1254216868)');
+        if ($this->context !== 'Production' && $context !== 'Development') {
+            exit('FLOW3: Unknown context "' . $this->context . '" provided, currently only "Production" and "Development" are supported. (Error #1254216868)');
         }
         $this->FLOW3Package = new \F3\FLOW3\Package\Package('FLOW3', FLOW3_PATH_FLOW3);
     }
@@ -648,4 +648,4 @@
     }
 }

-?>

(Also there is no unittests testing if the bootstrap can be initialised with diffrent contexts - maybe thats useful. The bootstarp is just a accessible mock where the constructor seems not to be called)


Related issues

related to TYPO3.Neos - Task #7578: small Bug in Bootstrap Resolved 2010-05-03

Associated revisions

Revision 7570df84
Added by Karsten Dambekalns over 5 years ago

[+BUGFIX] FLOW3 (Core): Automatically set context is now checked in Bootstrap, fixes #7598, resolves #7578.

History

#1 Updated by Karsten Dambekalns over 5 years ago

  • Tracker changed from Task to Bug
  • Project changed from Core Team to TYPO3.Flow

#2 Updated by Karsten Dambekalns over 5 years ago

  • Category set to Core
  • Target version set to 1.0 alpha 9

#3 Updated by Karsten Dambekalns over 5 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r4263.

Also available in: Atom PDF