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
maarchRM
Commits
a241ca01
Commit
a241ca01
authored
Apr 15, 2022
by
Arnaud Pauget
Browse files
fix(19713) : add try catch test on extractFullText in batch function.
parent
6c386197
Pipeline
#17521
failed with stages
in 36 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/bundle/recordsManagement/Controller/archiveModificationTrait.php
View file @
a241ca01
...
...
@@ -937,7 +937,10 @@ trait archiveModificationTrait
stream_copy_to_stream
(
$handler
,
$tmpStream
);
rewind
(
$tmpStream
);
fclose
(
$tmpStream
);
$fullText
.
=
$fulltextService
->
getText
(
$tmpFile
,
$options
)
.
" "
;
try
{
$fullText
.
=
$fulltextService
->
getText
(
$tmpFile
,
$options
)
.
" "
;
}
catch
(
\
Exception
$exception
)
{}
unlink
(
$tmpFile
);
}
$archive
=
$this
->
retrieve
(
$archiveId
);
...
...
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