Kitxuuu commited on
Commit
ca566c7
·
verified ·
1 Parent(s): 0f86e14

Add files using upload-large-folder tool

Browse files
Files changed (20) hide show
  1. local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/configs/metadata-filter-include.xml +28 -0
  2. local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/configs/tika-config-server-badjvmargs.xml +31 -0
  3. local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/configs/tika-config-server-basic.xml +32 -0
  4. local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/configs/tika-config-server-emitter.xml +33 -0
  5. local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/configs/tika-config-server-fetcher-template.xml +34 -0
  6. local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/configs/tika-config-server-timeout-10000.xml +28 -0
  7. local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/configs/tika-config-server-tls-one-way-template.xml +39 -0
  8. local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/configs/tika-config-server-tls-two-way-template.xml +42 -0
  9. local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/configs/tika-config-server.xml +32 -0
  10. local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/ssl-keys/tika-client-keystore.p12 +0 -0
  11. local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/ssl-keys/tika-server-keystore.p12 +0 -0
  12. local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/french.txt +1 -0
  13. local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/encrypted_document_exception.xml +23 -0
  14. local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/fake_oom.xml +24 -0
  15. local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/heavy_hang_100.xml +25 -0
  16. local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/heavy_hang_30000.xml +25 -0
  17. local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/hello_world_long.xml +30 -0
  18. local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/real_oom.xml +24 -0
  19. local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/thread_interrupt.xml +25 -0
  20. local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-standard/bin/tika.in.sh +80 -0
local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/configs/metadata-filter-include.xml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <metadataFilters>
20
+ <metadataFilter class="org.apache.tika.metadata.filter.IncludeFieldMetadataFilter">
21
+ <include>
22
+ <field>X-TIKA:content</field>
23
+ <field>extended-properties:Application</field>
24
+ <field>Content-Type</field>
25
+ </include>
26
+ </metadataFilter>
27
+ </metadataFilters>
28
+ </properties>
local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/configs/tika-config-server-badjvmargs.xml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <server>
20
+ <port>9999</port>
21
+ <taskTimeoutMillis>54321</taskTimeoutMillis>
22
+ <enableUnsecureFeatures>true</enableUnsecureFeatures>
23
+ <forkedJvmArgs>
24
+ <arg>-Xms20m</arg>
25
+ <arg>-Xmx10m</arg>
26
+ </forkedJvmArgs>
27
+ <endpoints>
28
+ <endpoint>rmeta</endpoint>
29
+ </endpoints>
30
+ </server>
31
+ </properties>
local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/configs/tika-config-server-basic.xml ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <server>
20
+ <taskTimeoutMillis>120000</taskTimeoutMillis>
21
+ <minimumTimeoutMillis>10</minimumTimeoutMillis>
22
+ <port>9999</port>
23
+ <maxFiles>1000</maxFiles>
24
+ <forkedJvmArgs>
25
+ <arg>-Xmx512m</arg>
26
+ </forkedJvmArgs>
27
+ <endpoints>
28
+ <endpoint>rmeta</endpoint>
29
+ <endpoint>status</endpoint>
30
+ </endpoints>
31
+ </server>
32
+ </properties>
local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/configs/tika-config-server-emitter.xml ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <server>
20
+ <taskTimeoutMillis>120000</taskTimeoutMillis>
21
+ <port>9999</port>
22
+ <maxFiles>1000</maxFiles>
23
+ <forkedJvmArgs>
24
+ <arg>-Xmx512m</arg>
25
+ </forkedJvmArgs>
26
+ <enableUnsecure>true</enableUnsecure>
27
+ <endpoints>
28
+ <endpoint>emit</endpoint>
29
+ <endpoint>async</endpoint>
30
+ <endpoint>status</endpoint>
31
+ </endpoints>
32
+ </server>
33
+ </properties>
local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/configs/tika-config-server-fetcher-template.xml ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <fetchers>
20
+ <fetcher class="org.apache.tika.pipes.fetcher.fs.FileSystemFetcher">
21
+ <name>fsf</name>
22
+ <basePath>{FETCHER_BASE_PATH}</basePath>
23
+ </fetcher>
24
+ </fetchers>
25
+ <server>
26
+ <port>{PORT}</port>
27
+ <taskTimeoutMillis>54321</taskTimeoutMillis>
28
+ <enableUnsecureFeatures>true</enableUnsecureFeatures>
29
+ <noFork>true</noFork>
30
+ <endpoints>
31
+ <endpoint>tika</endpoint>
32
+ </endpoints>
33
+ </server>
34
+ </properties>
local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/configs/tika-config-server-timeout-10000.xml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <server>
20
+ <port>9999</port>
21
+ <taskTimeoutMillis>10000</taskTimeoutMillis>
22
+ <taskPulseMillis>100</taskPulseMillis>
23
+ <maxFiles>20</maxFiles>
24
+ <forkedJvmArgs>
25
+ <arg>-Xmx512m</arg>
26
+ </forkedJvmArgs>
27
+ </server>
28
+ </properties>
local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/configs/tika-config-server-tls-one-way-template.xml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <server>
20
+ <port>9999</port>
21
+ <taskTimeoutMillis>1000000</taskTimeoutMillis>
22
+ <minimumTimeoutMillis>10000</minimumTimeoutMillis>
23
+ <maxFiles>10000</maxFiles>
24
+ <forkedJvmArgs>
25
+ <arg>-Xmx1g</arg>
26
+ </forkedJvmArgs>
27
+ <endpoints>
28
+ <endpoint>rmeta</endpoint>
29
+ </endpoints>
30
+ <tlsConfig>
31
+ <active>true</active>
32
+ <keyStoreType>PKCS12</keyStoreType>
33
+ <keyStorePassword>tika-secret</keyStorePassword>
34
+ <keyStoreFile>{SSL_KEYS}/tika-server-keystore.p12</keyStoreFile>
35
+ <clientAuthenticationWanted>false</clientAuthenticationWanted>
36
+ <clientAuthenticationRequired>false</clientAuthenticationRequired>
37
+ </tlsConfig>
38
+ </server>
39
+ </properties>
local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/configs/tika-config-server-tls-two-way-template.xml ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <server>
20
+ <port>9999</port>
21
+ <taskTimeoutMillis>1000000</taskTimeoutMillis>
22
+ <minimumTimeoutMillis>10000</minimumTimeoutMillis>
23
+ <maxFiles>10000</maxFiles>
24
+ <forkedJvmArgs>
25
+ <arg>-Xmx1g</arg>
26
+ </forkedJvmArgs>
27
+ <endpoints>
28
+ <endpoint>rmeta</endpoint>
29
+ </endpoints>
30
+ <tlsConfig>
31
+ <active>true</active>
32
+ <keyStoreType>PKCS12</keyStoreType>
33
+ <keyStorePassword>tika-secret</keyStorePassword>
34
+ <keyStoreFile>{SSL_KEYS}/tika-server-keystore.p12</keyStoreFile>
35
+ <trustStoreType>PKCS12</trustStoreType>
36
+ <trustStorePassword>tika-secret</trustStorePassword>
37
+ <trustStoreFile>{SSL_KEYS}/tika-server-truststore.p12</trustStoreFile>
38
+ <clientAuthenticationWanted>true</clientAuthenticationWanted>
39
+ <clientAuthenticationRequired>true</clientAuthenticationRequired>
40
+ </tlsConfig>
41
+ </server>
42
+ </properties>
local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/configs/tika-config-server.xml ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <server>
20
+ <port>9999</port>
21
+ <taskTimeoutMillis>54321</taskTimeoutMillis>
22
+ <minimumTimeoutMillis>10</minimumTimeoutMillis>
23
+ <enableUnsecureFeatures>true</enableUnsecureFeatures>
24
+ <maxFiles>20</maxFiles>
25
+ <forkedJvmArgs>
26
+ <arg>-Xmx2g</arg>
27
+ </forkedJvmArgs>
28
+ <endpoints>
29
+ <endpoint>rmeta</endpoint>
30
+ </endpoints>
31
+ </server>
32
+ </properties>
local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/ssl-keys/tika-client-keystore.p12 ADDED
Binary file (2.51 kB). View file
 
local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/ssl-keys/tika-server-keystore.p12 ADDED
Binary file (2.51 kB). View file
 
local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/french.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ c’est comme ci comme ça
local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/encrypted_document_exception.xml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one
4
+ or more contributor license agreements. See the NOTICE file
5
+ distributed with this work for additional information
6
+ regarding copyright ownership. The ASF licenses this file
7
+ to you under the Apache License, Version 2.0 (the
8
+ "License"); you may not use this file except in compliance
9
+ with the License. You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing,
14
+ software distributed under the License is distributed on an
15
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ KIND, either express or implied. See the License for the
17
+ specific language governing permissions and limitations
18
+ under the License.
19
+ -->
20
+
21
+ <mock>
22
+ <throw class="org.apache.tika.exception.EncryptedDocumentException">encrypted document exception</throw>
23
+ </mock>
local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/fake_oom.xml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one
4
+ or more contributor license agreements. See the NOTICE file
5
+ distributed with this work for additional information
6
+ regarding copyright ownership. The ASF licenses this file
7
+ to you under the Apache License, Version 2.0 (the
8
+ "License"); you may not use this file except in compliance
9
+ with the License. You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing,
14
+ software distributed under the License is distributed on an
15
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ KIND, either express or implied. See the License for the
17
+ specific language governing permissions and limitations
18
+ under the License.
19
+ -->
20
+
21
+ <mock>
22
+ <metadata action="add" name="author">Nikolai Lobachevsky</metadata>
23
+ <throw class="java.lang.OutOfMemoryError">oom message</throw>
24
+ </mock>
local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/heavy_hang_100.xml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one
4
+ or more contributor license agreements. See the NOTICE file
5
+ distributed with this work for additional information
6
+ regarding copyright ownership. The ASF licenses this file
7
+ to you under the Apache License, Version 2.0 (the
8
+ "License"); you may not use this file except in compliance
9
+ with the License. You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing,
14
+ software distributed under the License is distributed on an
15
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ KIND, either express or implied. See the License for the
17
+ specific language governing permissions and limitations
18
+ under the License.
19
+ -->
20
+
21
+ <mock>
22
+ <metadata action="add" name="author">Nikolai Lobachevsky</metadata>
23
+ <write element="p">some content</write>
24
+ <hang millis="100" heavy="true" pulse_millis="50"/>
25
+ </mock>
local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/heavy_hang_30000.xml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one
4
+ or more contributor license agreements. See the NOTICE file
5
+ distributed with this work for additional information
6
+ regarding copyright ownership. The ASF licenses this file
7
+ to you under the Apache License, Version 2.0 (the
8
+ "License"); you may not use this file except in compliance
9
+ with the License. You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing,
14
+ software distributed under the License is distributed on an
15
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ KIND, either express or implied. See the License for the
17
+ specific language governing permissions and limitations
18
+ under the License.
19
+ -->
20
+
21
+ <mock>
22
+ <metadata action="add" name="author">Nikolai Lobachevsky</metadata>
23
+ <write element="p">some content</write>
24
+ <hang millis="30000" heavy="true" pulse_millis="100"/>
25
+ </mock>
local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/hello_world_long.xml ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one
4
+ or more contributor license agreements. See the NOTICE file
5
+ distributed with this work for additional information
6
+ regarding copyright ownership. The ASF licenses this file
7
+ to you under the Apache License, Version 2.0 (the
8
+ "License"); you may not use this file except in compliance
9
+ with the License. You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing,
14
+ software distributed under the License is distributed on an
15
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ KIND, either express or implied. See the License for the
17
+ specific language governing permissions and limitations
18
+ under the License.
19
+ -->
20
+
21
+ <mock>
22
+ <metadata action="add" name="author">Nikolai Lobachevsky</metadata>
23
+ <metadata action="add" name="title">你好,世界</metadata>
24
+ <metadata action="add" name="my-key">parsers-value</metadata>
25
+ <write element="p">Hello world...</write>
26
+ <write element="p">When in the Course of human events, it becomes necessary for one people to dissolve the
27
+ political bands which have connected them with another, and to assume among the powers of the earth, the
28
+ separate and equal station to which the Laws of Nature and of Nature’s God entitle them, a decent respect
29
+ to the opinions of mankind requires that they should declare the causes which impel them to the separation.</write>
30
+ </mock>
local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/real_oom.xml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one
4
+ or more contributor license agreements. See the NOTICE file
5
+ distributed with this work for additional information
6
+ regarding copyright ownership. The ASF licenses this file
7
+ to you under the Apache License, Version 2.0 (the
8
+ "License"); you may not use this file except in compliance
9
+ with the License. You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing,
14
+ software distributed under the License is distributed on an
15
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ KIND, either express or implied. See the License for the
17
+ specific language governing permissions and limitations
18
+ under the License.
19
+ -->
20
+
21
+ <mock>
22
+ <metadata action="add" name="author">Nikolai Lobachevsky</metadata>
23
+ <oom/>
24
+ </mock>
local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/thread_interrupt.xml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one
4
+ or more contributor license agreements. See the NOTICE file
5
+ distributed with this work for additional information
6
+ regarding copyright ownership. The ASF licenses this file
7
+ to you under the Apache License, Version 2.0 (the
8
+ "License"); you may not use this file except in compliance
9
+ with the License. You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing,
14
+ software distributed under the License is distributed on an
15
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ KIND, either express or implied. See the License for the
17
+ specific language governing permissions and limitations
18
+ under the License.
19
+ -->
20
+
21
+ <mock>
22
+ <metadata action="add" name="author">Nikolai Lobachevsky</metadata>
23
+ <write element="p">some content</write>
24
+ <thread_interrupt/>
25
+ </mock>
local-test-tika-full-01-vuln_8/afc-tika/tika-server/tika-server-standard/bin/tika.in.sh ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Licensed to the Apache Software Foundation (ASF) under one or more
2
+ # contributor license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright ownership.
4
+ # The ASF licenses this file to You under the Apache License, Version 2.0
5
+ # (the "License"); you may not use this file except in compliance with
6
+ # the License. You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ # Settings here will override settings in existing env vars or in bin/tika. The default shipped state
17
+ # of this file is completely commented.
18
+
19
+ # By default the script will use JAVA_HOME to determine which java
20
+ # to use, but you can set a specific path for Tika to use without
21
+ # affecting other Java applications on your server/workstation.
22
+ #TIKA_JAVA_HOME=""
23
+
24
+ # This controls the number of seconds that the Tika script will wait for
25
+ # Tika to start. If the start fails, the script will
26
+ # give up waiting and display the last few lines of the logfile.
27
+ #TIKA_STOP_WAIT="180"
28
+
29
+ # Enable verbose GC logging...
30
+ # * If this is unset, various default options will be selected depending on which JVM version is in use
31
+ # * For Java 8: if this is set, additional params will be added to specify the log file & rotation
32
+ # * For Java 9 or higher: each included opt param that starts with '-Xlog:gc', but does not include an
33
+ # output specifier, will have a 'file' output specifier (as well as formatting & rollover options)
34
+ # appended, using the effective value of the TIKA_LOGS_DIR.
35
+ #
36
+ #GC_LOG_OPTS='-Xlog:gc*' # (Java 9+)
37
+ #GC_LOG_OPTS="-verbose:gc -XX:+PrintHeapAtGC -XX:+PrintGCDetails \
38
+ # -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:+PrintGCApplicationStoppedTime"
39
+
40
+ # These GC settings have shown to work well for a number of common Solr workloads. Good for Tika?
41
+ #GC_TUNE=" \
42
+ #-XX:SurvivorRatio=4 \
43
+ #-XX:TargetSurvivorRatio=90 \
44
+ #-XX:MaxTenuringThreshold=8 \
45
+ #-XX:+UseConcMarkSweepGC \
46
+ #-XX:ConcGCThreads=4 -XX:ParallelGCThreads=4 \
47
+ #-XX:+CMSScavengeBeforeRemark \
48
+ #-XX:PretenureSizeThreshold=64m \
49
+ #-XX:+UseCMSInitiatingOccupancyOnly \
50
+ #-XX:CMSInitiatingOccupancyFraction=50 \
51
+ #-XX:CMSMaxAbortablePrecleanTime=6000 \
52
+ #-XX:+CMSParallelRemarkEnabled \
53
+ #-XX:+ParallelRefProcEnabled \
54
+ #-XX:-OmitStackTraceInFastThrow etc.
55
+
56
+ # Anything you add to the TIKA_OPTS variable will be included in the java
57
+ # start command line as-is, in ADDITION to other options. If you specify the
58
+ # -a option on start script, those options will be appended as well. Examples:
59
+ #TIKA_OPTS="$TIKA_OPTS -Dlog4j.configuration=file:log4j_server.xml"
60
+
61
+ # Location where the bin/tika script will save PID files for running instances
62
+ # If not set, the script will create PID files in /var/tika
63
+ #TIKA_PID_DIR=
64
+
65
+ # Tika provides a default Log4J configuration properties file in tika-server.jar
66
+ # however, you may want to customize the log settings and file appender location
67
+ # so you can point the script to use a different log4j2.properties file
68
+ #LOG4J_PROPS=/var/tika/log4j2.properties
69
+
70
+ # Location where Tika should write logs to.
71
+ #TIKA_LOGS_DIR=/var/tika/logs
72
+
73
+ # Sets the port Tika binds to, default is 9998
74
+ #TIKA_PORT=9998
75
+
76
+ # As of Tika 2.0, Tika Server forks a process so that the forked
77
+ # process is more robust to OOMs, Infinite
78
+ # Loops, and Memory Leaks. Learn more at
79
+ # http://wiki.apache.org/tika/TikaJAXRS.
80
+ #TIKA_FORKED_OPTS=-maxFiles 100000 -JXmx4g