Add files using upload-large-folder tool
Browse files- local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-1445-default-except.xml +31 -0
- local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-1700-unknown-parser.xml +25 -0
- local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-1986-bad-types.xml +26 -0
- local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-2389-illegal.xml +29 -0
- local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3137-include.xml +29 -0
- local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3137-mimes-uc.xml +28 -0
- local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3268-bad-parser-exclude.xml +25 -0
- local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3695-exclude.xml +35 -0
- local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-4133-capture-group-overwrite.xml +26 -0
- local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-866-valid.xml +22 -0
- local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/config/fetchers-duplicate-config.xml +33 -0
- local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/config/pipes-iterator-config.xml +25 -0
- local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/mime/brwNIMS_2014.dif +56 -0
- local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/mime/custom-mimetypes-badMinShouldMatch1.xml +37 -0
- local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/mime/custom-mimetypes-badMinShouldMatch3.xml +37 -0
- local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/mime/custom-mimetypes-badMinShouldMatch4.xml +32 -0
- local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/mime/test-tika-327.html +50 -0
- local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/mime/test.html +10 -0
- local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/mime/test.xls +0 -0
- local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/mime/truncated-utf16-xml.xyz +0 -0
local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-1445-default-except.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 |
+
<parsers>
|
| 20 |
+
<parser class="org.apache.tika.parser.DefaultParser">
|
| 21 |
+
<mime-exclude>hello/world</mime-exclude>
|
| 22 |
+
<mime-exclude>fail/world</mime-exclude>
|
| 23 |
+
</parser>
|
| 24 |
+
<parser class="org.apache.tika.parser.EmptyParser">
|
| 25 |
+
<mime>hello/world</mime>
|
| 26 |
+
</parser>
|
| 27 |
+
<parser class="org.apache.tika.parser.ErrorParser">
|
| 28 |
+
<mime>fail/world</mime>
|
| 29 |
+
</parser>
|
| 30 |
+
</parsers>
|
| 31 |
+
</properties>
|
local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-1700-unknown-parser.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 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 |
+
<parsers>
|
| 20 |
+
<parser class="org.apache.tika.parser.EmptyParser">
|
| 21 |
+
<mime>hello/world</mime>
|
| 22 |
+
</parser>
|
| 23 |
+
<parser class="made.up.invalid" />
|
| 24 |
+
</parsers>
|
| 25 |
+
</properties>
|
local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-1986-bad-types.xml
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
<parsers>
|
| 20 |
+
<parser class="org.apache.tika.parser.DummyParameterizedParser">
|
| 21 |
+
<params>
|
| 22 |
+
<param name="xint" type="zippity">When in the course of human events</param>
|
| 23 |
+
</params>
|
| 24 |
+
</parser>
|
| 25 |
+
</parsers>
|
| 26 |
+
</properties>
|
local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-2389-illegal.xml
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
<parsers>
|
| 20 |
+
<parser-exclude class="org.apache.tika.parser.DefaultParser"/>
|
| 21 |
+
<parser class="org.apache.tika.parser.DummyInitializableParser" initializableProblemHandler="impossible.method">
|
| 22 |
+
<params>
|
| 23 |
+
<param name="shortA" type="short">500</param>
|
| 24 |
+
<param name="shortB" type="short">501</param>
|
| 25 |
+
</params>
|
| 26 |
+
</parser>
|
| 27 |
+
|
| 28 |
+
</parsers>
|
| 29 |
+
</properties>
|
local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3137-include.xml
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
<params>
|
| 22 |
+
<include>
|
| 23 |
+
<field>title</field>
|
| 24 |
+
<field>author</field>
|
| 25 |
+
</include>
|
| 26 |
+
</params>
|
| 27 |
+
</metadataFilter>
|
| 28 |
+
</metadataFilters>
|
| 29 |
+
</properties>
|
local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3137-mimes-uc.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.ClearByMimeMetadataFilter">
|
| 21 |
+
<mimes>
|
| 22 |
+
<mime>image/jpeg</mime>
|
| 23 |
+
<mime>application/pdf</mime>
|
| 24 |
+
</mimes>
|
| 25 |
+
</metadataFilter>
|
| 26 |
+
<metadataFilter class="org.apache.tika.metadata.filter.MockUpperCaseFilter"/>
|
| 27 |
+
</metadataFilters>
|
| 28 |
+
</properties>
|
local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3268-bad-parser-exclude.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 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 |
+
<service-loader initializableProblemHandler="throw"/>
|
| 20 |
+
<parsers>
|
| 21 |
+
<parser class="org.apache.tika.parser.DefaultParser">
|
| 22 |
+
<parser-exclude class="org.apache.tika.parser.zippity.doo.dah"/>
|
| 23 |
+
</parser>
|
| 24 |
+
</parsers>
|
| 25 |
+
</properties>
|
local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3695-exclude.xml
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
<parsers>
|
| 20 |
+
<parser class="org.apache.tika.parser.DefaultParser"/>
|
| 21 |
+
</parsers>
|
| 22 |
+
<autoDetectParserConfig>
|
| 23 |
+
<params>
|
| 24 |
+
<spoolToDisk>12345</spoolToDisk>
|
| 25 |
+
<outputThreshold>6789</outputThreshold>
|
| 26 |
+
</params>
|
| 27 |
+
<metadataWriteFilterFactory class="org.apache.tika.metadata.writefilter.StandardWriteFilterFactory">
|
| 28 |
+
<params>
|
| 29 |
+
<excludeFields>
|
| 30 |
+
<field>subject</field>
|
| 31 |
+
</excludeFields>
|
| 32 |
+
</params>
|
| 33 |
+
</metadataWriteFilterFactory>
|
| 34 |
+
</autoDetectParserConfig>
|
| 35 |
+
</properties>
|
local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-4133-capture-group-overwrite.xml
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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.CaptureGroupMetadataFilter">
|
| 21 |
+
<sourceField>Content-Type</sourceField>
|
| 22 |
+
<targetField>Content-Type</targetField>
|
| 23 |
+
<regex>\A([^;]+)</regex>
|
| 24 |
+
</metadataFilter>
|
| 25 |
+
</metadataFilters>
|
| 26 |
+
</properties>
|
local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-866-valid.xml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
<parsers>
|
| 20 |
+
<parser class="org.apache.tika.parser.EmptyParser"/>
|
| 21 |
+
</parsers>
|
| 22 |
+
</properties>
|
local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/config/fetchers-duplicate-config.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 |
+
<fetchers>
|
| 20 |
+
<fetcher class="org.apache.tika.pipes.fetcher.fs.FileSystemFetcher">
|
| 21 |
+
<params>
|
| 22 |
+
<name>fs1</name>
|
| 23 |
+
<basePath>/my/base/path1</basePath>
|
| 24 |
+
</params>
|
| 25 |
+
</fetcher>
|
| 26 |
+
<fetcher class="org.apache.tika.pipes.fetcher.fs.FileSystemFetcher">
|
| 27 |
+
<params>
|
| 28 |
+
<name>fs1</name>
|
| 29 |
+
<basePath>/my/base/path2</basePath>
|
| 30 |
+
</params>
|
| 31 |
+
</fetcher>
|
| 32 |
+
</fetchers>
|
| 33 |
+
</properties>
|
local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/config/pipes-iterator-config.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 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 |
+
<pipesIterator class="org.apache.tika.pipes.pipesiterator.fs.FileSystemPipesIterator">
|
| 20 |
+
<params>
|
| 21 |
+
<fetcherName>fs1</fetcherName>
|
| 22 |
+
<basePath>/my/base/path1</basePath>
|
| 23 |
+
</params>
|
| 24 |
+
</pipesIterator>
|
| 25 |
+
</properties>
|
local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/mime/brwNIMS_2014.dif
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<DIF xmlns="http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/ http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/dif_v9.8.4.xsd">
|
| 3 |
+
<Entry_ID>02a6301c-3ab3-11e4-8ee7-00c0f03d5b7c</Entry_ID>
|
| 4 |
+
<Entry_Title>Barrow Logger Data NIMS 2014</Entry_Title>
|
| 5 |
+
|
| 6 |
+
<Parameters>
|
| 7 |
+
<Category>EARTH SCIENCE</Category>
|
| 8 |
+
<Topic>BIOSPHERE</Topic>
|
| 9 |
+
<Term>ECOLOGICAL DYNAMICS</Term>
|
| 10 |
+
</Parameters>
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
<Spatial_Coverage>
|
| 14 |
+
<Southernmost_Latitude>70</Southernmost_Latitude>
|
| 15 |
+
<Northernmost_Latitude>72</Northernmost_Latitude>
|
| 16 |
+
<Westernmost_Longitude>-162</Westernmost_Longitude>
|
| 17 |
+
<Easternmost_Longitude>-150</Easternmost_Longitude>
|
| 18 |
+
</Spatial_Coverage>
|
| 19 |
+
|
| 20 |
+
<Data_Center>
|
| 21 |
+
<Data_Center_Name>
|
| 22 |
+
<Short_Name>ACADIS</Short_Name>
|
| 23 |
+
<Long_Name>Advanced Cooperative Arctic Data and Information Service</Long_Name>
|
| 24 |
+
</Data_Center_Name>
|
| 25 |
+
<Data_Center_URL>http://www.aoncadis.org/</Data_Center_URL>
|
| 26 |
+
<Personnel>
|
| 27 |
+
<Role>DATA CENTER CONTACT</Role>
|
| 28 |
+
<First_Name>ACADIS</First_Name>
|
| 29 |
+
<Last_Name>User Services</Last_Name>
|
| 30 |
+
<Contact_Address>
|
| 31 |
+
<Address>NCAR/CISL</Address>
|
| 32 |
+
<Address>P.O. Box 3000</Address>
|
| 33 |
+
<City>Boulder</City>
|
| 34 |
+
<Province_or_State>CO</Province_or_State>
|
| 35 |
+
<Postal_Code>80307</Postal_Code>
|
| 36 |
+
<Country>USA</Country>
|
| 37 |
+
</Contact_Address>
|
| 38 |
+
</Personnel>
|
| 39 |
+
</Data_Center>
|
| 40 |
+
|
| 41 |
+
<Summary>
|
| 42 |
+
<Abstract>Logger records from the Networked Info-mechanical Systems (NIMS), Transect length: ~50m The data was recorded using a CR3000 logger. The sensor trolley was equipped with instruments for recording the distance to vegetation canopy (SR50a Sonic Distance, Campbell Scientific), up- and downwelling short- and longwave radiation (CNR4 net radiometer, Kipp & Zonen), air temperature and surface temperature (SI-111 IR radiometer, Apogee Instruments Inc.) and spectral reflection (Jaz Combo-2, Ocean Optics; GreenSeeker RT100 (505), NTech).</Abstract>
|
| 43 |
+
</Summary>
|
| 44 |
+
|
| 45 |
+
<Related_URL>
|
| 46 |
+
<URL_Content_Type>
|
| 47 |
+
<Type>GET DATA</Type>
|
| 48 |
+
</URL_Content_Type>
|
| 49 |
+
<URL>http://www.aoncadis.org/dataset/id/02a6301c-3ab3-11e4-8ee7-00c0f03d5b7c.html</URL>
|
| 50 |
+
<Description>Data Center top-level access page for this resource</Description>
|
| 51 |
+
</Related_URL>
|
| 52 |
+
|
| 53 |
+
<Metadata_Name>ACADIS IDN DIF</Metadata_Name>
|
| 54 |
+
<Metadata_Version>9.8.4</Metadata_Version>
|
| 55 |
+
<Last_DIF_Revision_Date>2015-02-05</Last_DIF_Revision_Date>
|
| 56 |
+
</DIF>
|
local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/mime/custom-mimetypes-badMinShouldMatch1.xml
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
<!--
|
| 19 |
+
Description: This test XML file is used to test minShouldMatch
|
| 20 |
+
-->
|
| 21 |
+
<mime-info>
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
<mime-type type="hello/world-min-file">
|
| 25 |
+
<_comment>A "Hello World MinShouldMatch" file</_comment>
|
| 26 |
+
<magic priority="50">
|
| 27 |
+
<match minShouldMatch="5">
|
| 28 |
+
<match value="Hello" type="string" offset="0:20" />
|
| 29 |
+
<match value="Hallow" type="string" offset="0:20" />
|
| 30 |
+
<match value="World!" type="string" offset="0:20" />
|
| 31 |
+
<match value="Welt!" type="string" offset="0:20" />
|
| 32 |
+
</match>
|
| 33 |
+
</magic>
|
| 34 |
+
</mime-type>
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
</mime-info>
|
local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/mime/custom-mimetypes-badMinShouldMatch3.xml
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
<!--
|
| 19 |
+
Description: This test XML file is used to test minShouldMatch
|
| 20 |
+
-->
|
| 21 |
+
<mime-info>
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
<mime-type type="hello/world-min-file">
|
| 25 |
+
<_comment>A "Hello World MinShouldMatch" file</_comment>
|
| 26 |
+
<magic priority="50">
|
| 27 |
+
<match minShouldMatch="needsToBeAnInteger!">
|
| 28 |
+
<match value="Hello" type="string" offset="0:20" />
|
| 29 |
+
<match value="Hallow" type="string" offset="0:20" />
|
| 30 |
+
<match value="World!" type="string" offset="0:20" />
|
| 31 |
+
<match value="Welt!" type="string" offset="0:20" />
|
| 32 |
+
</match>
|
| 33 |
+
</magic>
|
| 34 |
+
</mime-type>
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
</mime-info>
|
local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/mime/custom-mimetypes-badMinShouldMatch4.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 |
+
<!--
|
| 19 |
+
Description: This test XML file is used to test minShouldMatch
|
| 20 |
+
-->
|
| 21 |
+
<mime-info>
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
<mime-type type="hello/world-min-file">
|
| 25 |
+
<_comment>A "Hello World MinShouldMatch" file</_comment>
|
| 26 |
+
<magic priority="50">
|
| 27 |
+
<match minShouldMatch="1"/>
|
| 28 |
+
</magic>
|
| 29 |
+
</mime-type>
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
</mime-info>
|
local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/mime/test-tika-327.html
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="iso-8859-1"?><link href="http://www.apache.org" rel="stylesheet" type="text/css" />
|
| 2 |
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
| 3 |
+
<title>title</title>
|
| 4 |
+
<meta name="description" content="content" />
|
| 5 |
+
<meta name="keywords" content="keys" />
|
| 6 |
+
<script language="JavaScript" type="text/javascript">
|
| 7 |
+
<!--
|
| 8 |
+
function hello() {
|
| 9 |
+
}
|
| 10 |
+
//-->
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
</script>
|
| 14 |
+
|
| 15 |
+
<!-- IE fix -->
|
| 16 |
+
<style type="text/css">form { display: inline }</style>
|
| 17 |
+
<!--
|
| 18 |
+
comment
|
| 19 |
+
-->
|
| 20 |
+
</head>
|
| 21 |
+
|
| 22 |
+
<body>
|
| 23 |
+
<table>
|
| 24 |
+
<tr>
|
| 25 |
+
<td>
|
| 26 |
+
<table>
|
| 27 |
+
<tr>
|
| 28 |
+
<td><font class="title"><!--comment--><a href="index.php">image</a></font></td>
|
| 29 |
+
<td> <table>
|
| 30 |
+
<tr>
|
| 31 |
+
<td>
|
| 32 |
+
</td>
|
| 33 |
+
</tr>
|
| 34 |
+
</table></td>
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
</tr>
|
| 39 |
+
<tr>
|
| 40 |
+
<td>
|
| 41 |
+
<span class="class">Home </span> </span>
|
| 42 |
+
</td>
|
| 43 |
+
<td>
|
| 44 |
+
July 2, 2013 </td>
|
| 45 |
+
</tr>
|
| 46 |
+
</table></td>
|
| 47 |
+
</tr>
|
| 48 |
+
</table>
|
| 49 |
+
end of table
|
| 50 |
+
</body>
|
local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/mime/test.html
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
| 2 |
+
<html>
|
| 3 |
+
<head>
|
| 4 |
+
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
| 5 |
+
<title>Hello World</title>
|
| 6 |
+
</head>
|
| 7 |
+
<body>
|
| 8 |
+
<p>Hello World!<p/>
|
| 9 |
+
</body>
|
| 10 |
+
</html>
|
local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/mime/test.xls
ADDED
|
Binary file (13.8 kB). View file
|
|
|
local-test-tika-full-01-vuln_6/afc-tika/tika-core/src/test/resources/org/apache/tika/mime/truncated-utf16-xml.xyz
ADDED
|
Binary file (571 Bytes). View file
|
|
|