Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
archivesPubliques
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maarch
archivesPubliques
Commits
3d3b9a36
Verified
Commit
3d3b9a36
authored
1 year ago
by
Cyril Vazquez
Browse files
Options
Downloads
Patches
Plain Diff
Fix bug on attachment validation causing SEDA message variable to be replaced by error message
parent
c8bfcb76
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bundle/seda/Controller/ArchiveTransfer.php
+2
-2
2 additions, 2 deletions
bundle/seda/Controller/ArchiveTransfer.php
with
2 additions
and
2 deletions
bundle/seda/Controller/ArchiveTransfer.php
+
2
−
2
View file @
3d3b9a36
...
...
@@ -435,8 +435,8 @@ class ArchiveTransfer extends abstractMessage implements \bundle\medona\Controll
if
(
strpos
(
$serviceLevel
->
control
,
'formatValidation'
)
!==
false
)
{
$validation
=
$formatController
->
validateFormat
(
$filepath
);
if
(
!
$validation
!==
true
&&
is_array
(
$validation
))
{
$
message
=
implode
(
', '
,
reset
(
$validation
));
$this
->
sendError
(
"307"
,
"Le format du document '"
.
$filename
.
"' n'est pas valide : "
.
$
message
);
$
err
=
implode
(
', '
,
reset
(
$validation
));
$this
->
sendError
(
"307"
,
"Le format du document '"
.
$filename
.
"' n'est pas valide : "
.
$
err
);
}
$this
->
infos
[]
=
"Validation du format du document '"
.
$filename
.
"'' par JHOVE 1.11"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment