http://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692012-08-29T10:29:41ZTYPO3 ForgeTYPO3 Core - Bug #39514: Page preview broken with lockSSL=1/2 and url_scheme=httphttp://forge.typo3.org/issues/39514?journal_id=1300782012-08-29T10:29:41ZAlban Cousiniejunk@mind2machine.com
<ul></ul><p>This seems to be related to issue <a class="external" href="http://forge.typo3.org/issues/34820">http://forge.typo3.org/issues/34820</a></p>
<p>As stated in the comments of this issue, a regression for preview links has been introduced in TYPO3 4.5.12</p> TYPO3 Core - Bug #39514: Page preview broken with lockSSL=1/2 and url_scheme=httphttp://forge.typo3.org/issues/39514?journal_id=1300992012-08-29T12:09:02ZAlban Cousiniejunk@mind2machine.com
<ul></ul><p>A workaround I have found to broken page output due to mixing of http and https elements in the source is to adjust the baseurl according to the https status :</p>
<p>##In your constants <br />BASEURL = <a class="external" href="http://www.myhost.com/">http://www.myhost.com/</a></p>
<p>[globalString = ENV:HTTP_HOST=www.myhost.com] AND [globalString =_SERVER|HTTPS=on]<br /> BASEURL = <a class="external" href="https://www.myhost.com/">https://www.myhost.com/</a><br />[global]</p>
<p>##In your setup<br />config.baseURL = {$BASEURL}</p> TYPO3 Core - Bug #39514: Page preview broken with lockSSL=1/2 and url_scheme=httphttp://forge.typo3.org/issues/39514?journal_id=1937192013-12-10T00:57:42ZMichael Stuckimichael.stucki@typo3.org
<ul><li><strong>Category</strong> changed from <i>Bugs</i> to <i>Workspaces</i></li></ul> TYPO3 Core - Bug #39514: Page preview broken with lockSSL=1/2 and url_scheme=httphttp://forge.typo3.org/issues/39514?journal_id=1939182013-12-10T01:02:10ZMichael Stuckimichael.stucki@typo3.org
<ul><li><strong>Project</strong> changed from <i>624</i> to <i>TYPO3 Core</i></li><li><strong>Category</strong> changed from <i>Workspaces</i> to <i>Workspaces</i></li></ul> TYPO3 Core - Bug #39514: Page preview broken with lockSSL=1/2 and url_scheme=httphttp://forge.typo3.org/issues/39514?journal_id=2449902015-01-16T12:53:41ZHeiko Krommh.kromm@paints.de
<ul></ul><p>What about changing these in TYPO3\CMS\Backend\Utility\BackendUtility::getViewDomain($pageId, $rootLine = NULL)</p>
<pre>
if ($page['url_scheme'] == \TYPO3\CMS\Core\Utility\HttpUtility::SCHEME_HTTPS || $page['url_scheme'] == 0 && GeneralUtility::getIndpEnv('TYPO3_SSL')) {
$protocol = 'https';
}
</pre>
<p>to</p>
<pre>
if ($GLOBALS['TYPO3_CONF_VARS']['BE']['lockSSL'] == 1 || $GLOBALS['TYPO3_CONF_VARS']['BE']['lockSSL'] == 2 || $page['url_scheme'] == \TYPO3\CMS\Core\Utility\HttpUtility::SCHEME_HTTPS || $page['url_scheme'] == 0 && GeneralUtility::getIndpEnv('TYPO3_SSL')) {
$protocol = 'https';
}
</pre>
<p>Then every preview link is forced to use https if the backend is only available with https.</p> TYPO3 Core - Bug #39514: Page preview broken with lockSSL=1/2 and url_scheme=httphttp://forge.typo3.org/issues/39514?journal_id=2462492015-01-23T11:33:30ZMathias Schreibermathias.schreiber@typo3.com
<ul><li><strong>Target version</strong> set to <i>7.5</i></li></ul> TYPO3 Core - Bug #39514: Page preview broken with lockSSL=1/2 and url_scheme=httphttp://forge.typo3.org/issues/39514?journal_id=2530952015-03-19T09:56:23ZAnonymous
<ul></ul><p>I can confirm this bug in TYPO3 4.5.30</p>
<p>but the behavior is weird...</p>
<p>Setup for baseUrl:</p>
<pre>
pageBase = http://www.mydomain.de/
[globalString = ENV:HTTPS=on]
pageBase = https://www.mydomain.de/
[end]
[globalString = ENV:HTTP_HOST=cms.mydomain.de]
pageBase = http://cms.mydomain.de/cms/
[end]
[globalString = ENV:HTTP_HOST=cms.mydomain.de] && [globalString = ENV:HTTPS=on]
pageBase = https://cms.mydomain.de/cms/
[end]
</pre>
<p>the Backend is reached with <a class="external" href="https://cms.mydomain.de/cms/typo3/backend.php">https://cms.mydomain.de/cms/typo3/backend.php</a></p>
<p>in WORKSPACE preview this is set in the sourcecode: <br /><code><br /><base href="https://cms.mydomain.de/cms/"></base><br /></code></p>
<p>which is correct, but all Links are generated like: <br /><code><br /><a href="http://www.mydomain.de/some/path.html"></a><br /></code></p>
<p>Those links are not clickable in the browser.</p> TYPO3 Core - Bug #39514: Page preview broken with lockSSL=1/2 and url_scheme=httphttp://forge.typo3.org/issues/39514?journal_id=2773822015-09-24T11:33:01ZOliver Haderoliver.hader@typo3.org
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Needs Feedback</i></li><li><strong>Priority</strong> changed from <i>Must have</i> to <i>Should have</i></li><li><strong>Target version</strong> changed from <i>7.5</i> to <i>7 LTS</i></li><li><strong>Is Regression</strong> set to <i>No</i></li></ul><p>That was solved for TYPO3 CMS 6.2 with issue <a class="issue tracker-1 status-5 priority-4 priority-default closed child" title="Bug: Workspace Preview not working with lockSSL=3 (Closed)" href="http://forge.typo3.org/issues/61699">#61699</a> please check again.<br />At the time of the last update to this ticket, TYPO3 CMS 4.5 was almost end of live with 4.5.40</p> TYPO3 Core - Bug #39514: Page preview broken with lockSSL=1/2 and url_scheme=httphttp://forge.typo3.org/issues/39514?journal_id=2908622015-12-23T12:19:09ZRiccardo De Contardierredeco@gmail.com
<ul><li><strong>Status</strong> changed from <i>Needs Feedback</i> to <i>Closed</i></li></ul><p>No feedback within the last 90 days => closing this issue.</p>
<p>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.<br />You could also join the #typo3-cms channel in Slack if you still need support.<br />Thank you</p>