Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Maarch
thirdPartyArchiving
Commits
5ac9f1d2
Verified
Commit
5ac9f1d2
authored
Apr 18, 2019
by
Alexandre Morin
Browse files
fix : add type text/xml in detectSchema function
parent
d9087523
Changes
2
Hide whitespace changes
Inline
Side-by-side
bundle/medona/Controller/ArchiveTransfer.php
View file @
5ac9f1d2
...
...
@@ -258,7 +258,7 @@ class ArchiveTransfer extends abstractMessage
protected
function
detectSchema
(
$message
)
{
$mediatype
=
$this
->
finfo
->
file
(
$message
->
path
);
if
(
$mediatype
==
'application/xml'
)
{
if
(
$mediatype
==
'application/xml'
||
$mediatype
===
'text/xml'
)
{
$xml
=
new
\
DOMDocument
();
$xml
->
load
(
$message
->
path
);
$messageNamespace
=
$xml
->
documentElement
->
namespaceURI
;
...
...
bundle/medona/Controller/message.php
View file @
5ac9f1d2
...
...
@@ -1025,10 +1025,7 @@ class message
}
$messages
=
$this
->
read
(
$message
[
0
]
->
messageId
);
$nbMessages
=
count
(
$messages
);
if
(
$nbMessages
!=
1
)
{
if
(
!
$messages
)
{
throw
new
\
core\Exception\NotFoundException
(
"The message does not exist"
);
}
...
...
Write
Preview
Supports
Markdown
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