Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
E
extensions.typo3.org
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
60
Issues
60
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
services
T
t3o sites
extensions.typo3.org
extensions.typo3.org
Commits
7666a337
Commit
7666a337
authored
Aug 21, 2017
by
Thomas Löffler
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-soap-problem' into 'develop'
Fixes soap problems due to a php bug See merge request
!149
parents
e6d1cf07
fac1ae0d
Pipeline
#1990
failed with stages
in 3 minutes and 49 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
21 deletions
+28
-21
html/typo3conf/ext/ter_fe2/Classes/Controller/RegisterkeyController.php
.../ext/ter_fe2/Classes/Controller/RegisterkeyController.php
+5
-2
html/typo3conf/ext/ter_fe2/Classes/Service/Soap.php
html/typo3conf/ext/ter_fe2/Classes/Service/Soap.php
+11
-17
html/typo3conf/ext/ter_fe2/Resources/Private/Language/locallang.xml
...conf/ext/ter_fe2/Resources/Private/Language/locallang.xml
+1
-1
html/typo3conf/ext/ter_fe2/Resources/Private/Layouts/Default.html
...o3conf/ext/ter_fe2/Resources/Private/Layouts/Default.html
+11
-1
No files found.
html/typo3conf/ext/ter_fe2/Classes/Controller/RegisterkeyController.php
View file @
7666a337
...
...
@@ -123,15 +123,18 @@ class RegisterkeyController extends \T3o\TerFe2\Controller\AbstractTerBasedContr
/** @var \T3o\TerFe2\Domain\Model\Extension $extension */
$extension
=
$this
->
extensionRepository
->
findOneByExtKey
(
$extensionKey
);
$message
=
''
;
if
(
$error
===
'key_invalid'
)
{
$message
=
$this
->
resolveWSErrorMessage
(
$error
.
'.message'
);
}
if
(
$extension
instanceof
\
T3o\TerFe2\Domain\Model\Extension
&&
$extension
->
getFrontendUser
())
{
/** @var \TYPO3\CMS\Extbase\Domain\Model\FrontendUser $frontendUser */
$frontendUser
=
$this
->
userRepository
->
findOneByUsername
(
$extension
->
getFrontendUser
());
if
(
$frontendUser
instanceof
\
TYPO3\CMS\Extbase\Domain\Model\FrontendUser
)
{
$message
=
$this
->
resolveWSErrorMessage
(
$error
.
'.message'
,
array
(
[
'<a href="mailto:'
.
htmlspecialchars
(
$frontendUser
->
getEmail
())
.
'">'
.
htmlspecialchars
(
$frontendUser
->
getName
())
.
'</a>'
)
]
);
}
}
...
...
html/typo3conf/ext/ter_fe2/Classes/Service/Soap.php
View file @
7666a337
...
...
@@ -99,13 +99,6 @@ class Soap implements \TYPO3\CMS\Core\SingletonInterface
public
function
resetConnection
()
{
// Create connection
$arrContextOptions
=
stream_context_create
([
'ssl'
=>
[
'verify_peer'
=>
false
,
'verify_peer_name'
=>
false
,
],
]);
$this
->
soapConnection
=
new
\
SoapClient
(
$this
->
wsdlUrl
,
array
(
'trace'
=>
1
,
'exceptions'
=>
(
bool
)
$this
->
returnExceptions
,
...
...
@@ -181,18 +174,19 @@ class Soap implements \TYPO3\CMS\Core\SingletonInterface
*/
public
function
__call
(
$methodName
,
array
$params
=
array
())
{
// To prevent invalid xml errors in the second request, reset the connection before every request
$this
->
resetConnection
();
// Call given method
$response
=
$this
->
soapConnection
->
__soapCall
(
$methodName
,
$params
,
NULL
,
$this
->
authenticationHeader
);
// Check for errors
if
(
is_soap_fault
(
$response
))
{
throw
new
\
Exception
(
'Could not call function "'
.
$methodName
.
'" on soap server'
);
try
{
$response
=
$this
->
soapConnection
->
__soapCall
(
$methodName
,
$params
,
NULL
,
$this
->
authenticationHeader
);
}
catch
(
\
SoapFault
$soapFault
)
{
throw
new
\
Exception
(
'Could not call function "'
.
$methodName
.
'" on soap server. SoapFault: '
.
$soapFault
->
getMessage
());
}
return
$this
->
convertObjectToArray
(
$response
);
...
...
html/typo3conf/ext/ter_fe2/Resources/Private/Language/locallang.xml
View file @
7666a337
...
...
@@ -257,7 +257,7 @@
<label
index=
"registerkey.error.user_not_found"
>
The given user could not be found.
</label>
<label
index=
"registerkey.error.key_not_found"
>
The given extension could not be found.
</label>
<label
index=
"registerkey.error.key_invalid.title"
>
Extension key is invalid.
</label>
<label
index=
"registerkey.error.key_invalid.message"
>
Please pay attention to the rules below the form.
</label>
<label
index=
"registerkey.error.key_invalid.message"
>
Please pay attention to the rules below the form.
</label>
<label
index=
"registerkey.error.key_exists.title"
>
An extension with this key already exists.
</label>
<label
index=
"registerkey.error.key_exists.message"
>
You can contact the extension owner: %s
</label>
<label
index=
"registerkey.error.result_empty.title"
>
An unknown error occured.
</label>
...
...
html/typo3conf/ext/ter_fe2/Resources/Private/Layouts/Default.html
View file @
7666a337
<html
xmlns=
"http://www.w3.org/1999/xhtml"
lang=
"en"
xmlns:f=
"http://typo3.org/ns/fluid/ViewHelpers"
data-namespace-typo3-fluid=
"true"
>
<div
class=
"tx_terfe2"
>
<f:flashMessages
as=
"flashMessages"
>
<f:if
condition=
"{flashMessages}"
>
<f:for
each=
"{flashMessages}"
as=
"flashMessage"
>
<div
class=
"alert {flashMessage.class}"
role=
"alert"
>
<strong
class=
"fa fa-{flashMessage.iconName}"
></strong>
{flashMessage.message}
<f:if
condition=
"{flashMessage.title}"
>
<f:then>
<h4
class=
"alert-heading"
><strong
class=
"fa fa-{flashMessage.iconName}"
></strong>
{flashMessage.title}
</h4>
{flashMessage.message}
</f:then>
<f:else>
<strong
class=
"fa fa-{flashMessage.iconName}"
></strong>
{flashMessage.message}
</f:else>
</f:if>
</div>
</f:for>
</f:if>
...
...
@@ -12,3 +21,4 @@
<f:render
section=
"main"
/>
</div>
</div>
</html>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment