<div dir="ltr">By the way, if this is a lower priority bug than others. I will gladly have a look into the issue and try and resolve it, provided that we agree on the expected behaviour of the tool under such a scenario.<div><br></div><div>Ricardo</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jul 27, 2018 at 5:14 PM Ricardo Gaviria <<a href="mailto:ricardo@unitelabs.ch">ricardo@unitelabs.ch</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Chris,<div><br></div><div>Thanks for your response. Please find attached the culprit. I believe the issue may lie with the fact that I am trying to diff an archive which happens to be encrypted and requires a password.</div><div><br></div><div>I'm guessing encrypted archives could be ignored when diff'ing and flagged, and possibly just diffing the fingerprint of the archive blob? Or what do you suggest? </div><div><br></div><div>Thanks again,</div><div>Ricardo</div></div><div dir="ltr"><br><div class="gmail_quote"><div dir="ltr">On Fri, Jul 27, 2018 at 6:41 AM Chris Lamb <<a href="mailto:lamby@debian.org" target="_blank">lamby@debian.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">retitle 904685 diffoscope: RuntimeError when trying to extract an encrypted file within .zip<br>
tags 904685 + moreinfo<br>
thanks<br>
<br>
Hi Ricardo,<br>
<br>
> Is this expected behaviour or is there a cmd line parameter which I<br>
> could use to prevent this?<br>
<br>
Oh, not at all the expected behaviour. diffoscope should "never"<br>
traceback on you.<br>
<br>
>   File "/usr/lib/python3.5/zipfile.py", line 1299, in open<br>
>     "required for extraction" % name)<br>
> RuntimeError: File acrobat.bmp is encrypted, password required for<br>
> extraction<br>
<br>
Actually looks zipfile related. Could you reply, attaching the file in<br>
question so we can debug & fix this?<br>
<br>
<br>
Regards,<br>
<br>
-- <br>
      ,''`.<br>
     : :'  :     Chris Lamb<br>
     `. `'`      <a href="mailto:lamby@debian.org" target="_blank">lamby@debian.org</a> / <a href="http://chris-lamb.co.uk" rel="noreferrer" target="_blank">chris-lamb.co.uk</a><br>
       `-<br>
</blockquote></div></div>-- <br><div dir="ltr" class="m_-608583303063067246gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Regards,<div>Ricardo Gaviria</div><div>Software Engineer, UniteLabs<br></div><div><div><b>M: </b><a href="tel:+41%2077%20956%2023%2076" value="+41779562376" target="_blank">+41 77 956 2376</a></div><div><b>W: </b><a href="http://unitelabs.ch" target="_blank">http://unitelabs.ch</a></div><div><b>In: </b><a href="https://www.linkedin.com/in/ricardogaviria/" target="_blank">https://www.linkedin.com/in/ricardogaviria/</a></div><br class="m_-608583303063067246inbox-inbox-inbox-inbox-inbox-inbox-inbox-inbox-inbox-Apple-interchange-newline"></div></div></div>
</blockquote></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Regards,<div>Ricardo Gaviria</div><div>Software Engineer, UniteLabs<br></div><div><div><b>M: </b>+41 77 956 2376</div><div><b>W: </b><a href="http://unitelabs.ch">http://unitelabs.ch</a></div><div><b>In: </b><a href="https://www.linkedin.com/in/ricardogaviria/">https://www.linkedin.com/in/ricardogaviria/</a></div><br class="inbox-inbox-inbox-inbox-inbox-inbox-inbox-inbox-inbox-Apple-interchange-newline"></div></div></div>