Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Fix: Unknown media obeys settings.mediaLoadErrorHandling #4461

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

shezadkhan137
Copy link

No description provided.

@shezadkhan137 shezadkhan137 changed the title Unknown media obeys settings.mediaLoadErrorHandling Fix: Unknown media obeys settings.mediaLoadErrorHandling Aug 29, 2019
@rafaeljusto
Copy link

rafaeljusto commented Nov 21, 2019

This will probably solve issue #4525 .

Any plans on getting this merged? cc: @ashkulz

@romanodesouza
Copy link

👍 for this cc: @ashkulz

@ashkulz ashkulz self-assigned this Nov 21, 2019
@jonathanbull
Copy link

Any update on this @ashkulz?

@ashkulz
Copy link
Member

ashkulz commented Jan 9, 2020

Sorry, I didn't notice this at all. Will review it by this weekend 🙈

@shezadkhan137
Copy link
Author

@ashkulz Bump on this?

@mikesnare
Copy link

Bumping again. Hoping to get this merged in as we've hit it in our app as well. Our workaround is to try to detect this specific case by looking for an error code of 1 and detecting the 'ContentOperationNotPermittedError' string in stderr, but that's very hacky.

@jasperpg
Copy link

jasperpg commented Apr 8, 2020

i'm thinking of doing the same as what mikesnare did. but there may be other legitimate conditions where the UnknownContentError or ContentOperationNotPermittedError or some other errors that may occur.

so, i hope this pr gets merged and a new release with the binaries released as well.

for now, i forked and applied the patch. but building it from source takes a very long time. in addition, i am only able to build it for my particular environment for now.

@alessionossa
Copy link

Any update?

Copy link
Member

@ashkulz ashkulz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the late review! The problem is, the only way wkhtmltopdf can know it's a media request is by looking at the file extension -- but the PR as-is changes the non-media error handling, so is incorrect.

src/lib/multipageloader.cc Outdated Show resolved Hide resolved
Co-authored-by: Ashish Kulkarni <ashish@kulkarni.dev>
@shezadkhan137
Copy link
Author

@ashkulz Thanks for the suggestion. I've updated the PR.

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

Successfully merging this pull request may close these issues.

None yet

9 participants