Project

General

Profile

Actions

Bug #34690

closed

media element does not work when BE with SSL

Added by Manuel Kammermann over 12 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Content Rendering
Target version:
-
Start date:
2012-03-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Dear TYPO3 Community,

When setting lockSSL to have the BE-Login with the secure protocol, the media content element does not include the necessary JS files as they are included like:

//add SWFobject js-file
$GLOBALS['TSFE']->getPageRenderer()->addJsFile(TYPO3_mainDir . 'contrib/flashmedia/swfobject/swfobject.js');

( file: class.tslib_content_shockwaveflashobject.php line: 60 )

$prefix is defined as:

$prefix = '';
if ($GLOBALS['TSFE']->baseUrl) {
$prefix = $GLOBALS['TSFE']->baseUrl;
}
if ($GLOBALS['TSFE']->absRefPrefix) {
$prefix = $GLOBALS['TSFE']->absRefPrefix;
}

( file: class.tslib_content_shockwaveflashobject.php line: 45 )

With lockSSL, the typo3/ folder is only accessible via https:// protocol, so the URL-request from the extension with http:// results in an ERR 500.

(discovered in TYPO3 version 4.5.5)

Actions #1

Updated by Manuel Kammermann over 12 years ago

this works for me with lockSSL = 2 ...

//add SWFobject js-file
if(intval($GLOBALS['TYPO3_CONF_VARS']['BE']['lockSSL']) > 0){ // didn't check whether correct for all the values of lockSSL
// get baseUrl for absolute path and replace http with https
$prefix = str_replace('http://','https://',$prefix);
// set together absolute path
$jslib = $prefix.TYPO3_mainDir.'contrib/flashmedia/swfobject/swfobject.js';
} else {
$jslib = TYPO3_mainDir . 'contrib/flashmedia/swfobject/swfobject.js';
}
$GLOBALS['TSFE']->getPageRenderer()->addJsFile($jslib);

Actions #2

Updated by Steffen Müller over 12 years ago

It works for me with latest TYPO3 4.5.12.

Actions #3

Updated by Oliver Hader over 12 years ago

  • Status changed from New to Needs Feedback

Are you using an .htaccess file to only allow HTTPS requests to your typo3/ folder?

Actions #4

Updated by Alexander Opitz about 11 years ago

  • Status changed from Needs Feedback to Closed

No feedback for over 90 days.

Actions

Also available in: Atom PDF