Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added property check on Tika responses #116

Open
wants to merge 1 commit into
base: MOODLE_310_STABLE
Choose a base branch
from

Conversation

SpaceCafe
Copy link

Occasionally, Apache Tika responses may not include an X-TIKA:content property, causing the following error to be thrown: PHP Warning: Undefined property: stdClass::$X-TIKA:content on line 159 in search/engine/elastic/classes/enrich/text/tika.php.

Occasionally, Apache Tika responses may not include an `X-TIKA:content` property, causing the following error to be thrown: `PHP Warning:  Undefined property: stdClass::$X-TIKA:content` on line 159 in `search/engine/elastic/classes/enrich/text/tika.php`.

Signed-off-by: Lars Thoms <lars@thoms.io>
@dmitriim
Copy link
Member

Hi @SpaceCafe ! Thanks for providing a patch. Can you please create an issue first describing the error that you are having. That can help people with the same issue see that it has been fixed.

Also why does Tika responses not include an X-TIKA:content property? What does this mean from tika point of view? Should we treat it as an error and throw an exception?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants