You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .travis.yml
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,9 @@ addons:
9
9
- openjdk-8-jre-headless
10
10
matrix:
11
11
include:
12
-
- php: 7.2
12
+
- php: 7.3
13
13
env: ES=6
14
-
- php: 7.2
14
+
- php: 7.3
15
15
env: ES=7
16
16
- php: 7.4
17
17
env: ES=6
@@ -23,7 +23,7 @@ cache:
23
23
- $HOME/.composer/cache
24
24
25
25
before_install:
26
-
- export NEOS_TARGET_VERSION=5.3
26
+
- export NEOS_TARGET_VERSION=7.0
27
27
- cd ..
28
28
- if [ "$ES" = 6 ]; then wget --no-check-certificate https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.8.6.tar.gz && tar xvfz elasticsearch-6.8.6.tar.gz && mv elasticsearch-6.8.6 elasticsearch; fi
29
29
- if [ "$ES" = 7 ]; then wget --no-check-certificate https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.9.0-linux-x86_64.tar.gz && tar xvfz elasticsearch-7.9.0-linux-x86_64.tar.gz && mv elasticsearch-7.9.0 elasticsearch; fi
if ($asset->getResource()->getFileSize() > $this->maximumFileSize) {
67
+
$this->logger->info(sprintf('The asset %s with size of %s bytes exceeds the maximum size of %s bytes. The file content was not ingested.', $asset->getResource()->getFilename(), $asset->getResource()->getFileSize(), $this->maximumFileSize), LogEnvironment::fromMethodName(__METHOD__));
68
+
return$this->buildAssetContentObject([]);
69
+
}
70
+
71
+
$extractedAsset = null;
72
+
53
73
$request = [
54
74
'pipeline' => [
55
75
'description' => 'Attachment Extraction',
@@ -73,14 +93,50 @@ public function extract(AssetInterface $asset): AssetContent
$this->logger->error(sprintf('Error while extracting fulltext data from file "%s". See Elasticsearch error log line fo details.', $asset->getResource()->getFilename()), LogEnvironment::fromMethodName(__METHOD__));
102
+
$this->logger->error(sprintf('Error while extracting fulltext data from file "%s". See Elasticsearch error log line for details.', $asset->getResource()->getFilename()), LogEnvironment::fromMethodName(__METHOD__));
80
103
} else {
81
104
$this->logger->debug(sprintf('Extracted asset %s of type %s. Extracted %s characters of content', $asset->getResource()->getFilename(), $extractedAsset['content_type'] ?? '-no-content-type-', $extractedAsset['content_length'] ?? '0'), LogEnvironment::fromMethodName(__METHOD__));
$this->logger->error(sprintf('An exception occured while fetching resource with sha1 %s of asset %s. %s', $asset->getResource()->getSha1(), $asset->getResource()->getFilename(), $message), LogEnvironment::fromMethodName(__METHOD__));
121
+
return'';
122
+
}
123
+
124
+
if ($stream === false) {
125
+
$this->logger->error(sprintf('Could not get the file stream of resource with sha1 %s of asset %s.', $asset->getResource()->getSha1(), $asset->getResource()->getFilename()), LogEnvironment::fromMethodName(__METHOD__));
0 commit comments