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

Retry chance never come. #36

Closed
greymd opened this issue Feb 7, 2017 · 2 comments · Fixed by #37
Closed

Retry chance never come. #36

greymd opened this issue Feb 7, 2017 · 2 comments · Fixed by #37
Assignees
Labels

Comments

@greymd
Copy link
Owner

greymd commented Feb 7, 2017

It seems bug.

# Copy
$ seq 100 | ttcopy -i aaaa -p bbbb
Copied!

# Incorrect password at first time.
$ ttpaste -i aaaa -p bbb
bad decrypt.
71168:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:/SourceCache/OpenSSL098/OpenSSL098-52.40.1/src/crypto/evp/evp_enc.c:330:
gzip: unknown compression format
Failed to decode data.
Please check ID/Password and Salt values.

# Second chance never happens.
$ ttpaste -i aaaa -p bbbb
Nothing has been copied yet.
@greymd greymd changed the title Supporting retry chance. Retry chance. Feb 7, 2017
@greymd greymd changed the title Retry chance. Retry chance never come. Feb 7, 2017
@mecab
Copy link
Collaborator

mecab commented Feb 7, 2017

It's strange. Let's investigate.

@mecab mecab added the bug label Feb 7, 2017
@mecab
Copy link
Collaborator

mecab commented Feb 8, 2017

The reason is the url in cl1p.net is encrypted as of #34 and we do NOT create local cache of the url.
Since cl1p removes the content once it is read, it's gone if we failed to decrypt.

We have to also cache the url.

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

Successfully merging a pull request may close this issue.

2 participants