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
21d7d6ef
Commit
21d7d6ef
authored
Apr 15, 2022
by
Arnaud Pauget
Browse files
Merge branch 'fix/19713_fulltext_extraction_error' into 'develop'
Fix/19713 fulltext extraction error See merge request
!712
parents
64758123
a241ca01
Pipeline
#17530
failed with stages
in 22 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/bundle/digitalResource/Controller/digitalResource.php
View file @
21d7d6ef
...
...
@@ -882,7 +882,9 @@ class digitalResource
file_put_contents
(
$srcfile
,
$contents
);
$fullText
.
=
$fullTextService
->
getText
(
$srcfile
);
try
{
$fullText
.
=
$fullTextService
->
getText
(
$srcfile
);
}
catch
(
\
Exception
$exception
)
{}
}
}
...
...
src/bundle/recordsManagement/Controller/archiveModificationTrait.php
View file @
21d7d6ef
...
...
@@ -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