[ZendTo] Quietly not encrypting in V6
Jules
Jules at Zend.To
Mon Jun 8 11:17:23 BST 2020
John,
I have made this situation block, so the user uploading the drop-off
will see an error message, and the drop-off attempt will be rejected.
This will be in the very next release.
I will be interested to see if anyone ever sees the error message!
Cheers,
Jules.
On 05/06/2020 19:53, John Thurston via ZendTo wrote:
> I'm looking at moving from V5 to V6. During testing, we turned up
> interesting behavior.
>
> While creating a drop-off, the authenticated customer was prompted for
> a passphrase. This was entered and accepted. Checksum was also requested.
>
> When the upload was complete, the 'Outbox' showed the files with an
> "X" in the encrypted column. When later performing the pickup, no
> passphrase was requested.
>
> When I later looked in the logs, I found:
>> Error: Should be encrypting files but failed to read the passphrase,
>> so not encrypting. If this drop-off came from a request, the encoded
>> passphrase in the request got corrupted!
>
> which I traced to line 2531 of NSSDropoff.php
> which is preceded with the comment block
>
>> // If we got the encryption passphrase from a request, but failed to
>> // be able to read it, the user won't have been prompted to enter one.
>> // So we have no way of finding it! So if that failed, don't encrypt
>> // at all.
>
> But this drop/pickup didn't originate with a 'request'. It was done by
> an interactive, authenticated user. The user requested encryption,
> supplied the phrase, and the application seems to have quietly failed
> to encrypt an otherwise acceptable (not too large) file.
>
> I'm unable to reproduce this failure.
>
> If the customer asks to encrypt an over-sized file, it is plainly
> refused. If encryption has been requested and can't be done for some
> other reason, shouldn't that be a blocking-situation?
>
>
>
Jules
--
Julian Field MEng CEng CITP MBCS MIEEE MACM
'Science is an integral part of culture. It's not this foreign
thing, done by an arcane priesthood. It's one of the glories of
human intellectual tradition.' - Stephen Jay Gould
www.Zend.To
Twitter: @JulesFM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jul.es/pipermail/zendto/attachments/20200608/c3e1187f/attachment-0001.html>
More information about the ZendTo
mailing list