Project

General

Profile

Actions

Bug #80177

closed

Update Extension List - Could not access remote resource https://repositories.typo3.org/mirrors.xml.gz.

Added by Thomas Nowak over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extension Manager
Target version:
-
Start date:
2017-03-07
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.6
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

When I try to update the Extension List I will get the error message "Could not access remote resource https://repositories.typo3.org/mirrors.xml.gz."

I have tried all combinations of

$TYPO3_CONF_VARS['SYS']['curlUse'] = 0 | 1
$TYPO3_CONF_VARS['HTTP']['adapter'] = socket| curl
$TYPO3_CONF_VARS['HTTP']['ssl_verify_peer'] = 0|1
$TYPO3_CONF_VARS['HTTP']['ssl_cafile'] = /etc/ssl/cert.pem

without any success.

After that i have looked to typo3/sysext/core/Classes/utility/GeneralUtility.php to debug this issues:

I have found some problems in the Methode getURL:

1.) When $TYPO3_CONF_VARS['SYS']['curlUse'] is 1 curl will be used ['HTTP']['adapter'] is not checked

 if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyServer']) {
                curl_setopt($ch, CURLOPT_PROXY, $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyServer']);
                curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, (bool)$GLOBALS['TYPO3_CONF_VARS']['HTTP']['ssl_verify_host']);
                curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, (bool)$GLOBALS['TYPO3_CONF_VARS']['HTTP']['ssl_verify_peer']);
                if ($GLOBALS['TYPO3_CONF_VARS']['HTTP']['ssl_verify_peer']) {
                    if ($GLOBALS['TYPO3_CONF_VARS']['HTTP']['ssl_cafile']) {

                        curl_setopt($ch, CURLOPT_CAINFO, $GLOBALS['TYPO3_CONF_VARS']['HTTP']['ssl_cafile']);
                    }

The options ['HTTP']['ssl_verify_peer'] and ['HTTP']['ssl_cafile'] will only used if a Proxyserver is used!
This shoud done also when no proxyserver is used!

2.) if ['SYS']['curlUse'] is set to false and getUrl is called with $includeHeader = 0 ( like in this case )

Typo3 tries to load the file not as excepted over the socket, but over file_get_contents, which fails allow_url_fopen is set to off for security reaons without any hints.

Actions #1

Updated by Nicole Cordes over 7 years ago

  • Status changed from New to Needs Feedback

Hi Thomas,

Could your problem be related to https://forge.typo3.org/issues/75908 ? Does the patch for that ticket solve your problem as well?

Actions #2

Updated by Alexander Opitz about 7 years ago

  • Status changed from Needs Feedback to Closed

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