[FIX] read/write: (Un)pickle only on user confirmation#127
Open
ales-erjavec wants to merge 17 commits into
Open
[FIX] read/write: (Un)pickle only on user confirmation#127ales-erjavec wants to merge 17 commits into
ales-erjavec wants to merge 17 commits into
Conversation
Contributor
janezd
reviewed
Sep 28, 2020
| @@ -804,16 +1006,16 @@ def check(obj): | |||
| return all(map(check, obj)) | |||
Contributor
There was a problem hiding this comment.
@ales-erjavec, on Friday I didn't yet realize that .ows files contain literals, not json. I am always a few (well, a many) steps behind. :|
The list of allowed sequences does not include sets. I suppose it's because there's no literal for an empty set. But could non-empty sets be allowed?
Collaborator
Author
There was a problem hiding this comment.
No. It would need to be all sets or none at all.
ales-erjavec
force-pushed
the
readwrite-pickle-only-on-confirmation
branch
from
January 4, 2021 10:07
a69c669 to
a11e98a
Compare
ales-erjavec
force-pushed
the
readwrite-pickle-only-on-confirmation
branch
from
February 17, 2021 11:08
a11e98a to
ff42430
Compare
ales-erjavec
force-pushed
the
readwrite-pickle-only-on-confirmation
branch
from
August 20, 2021 14:22
ff42430 to
28847dd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue
Pickle format is used in the serialization (as a fallback when parameters cannot be saved as a python literal).
Changes
When saving: warn and ask for confirmation when the saved workflow will contain unsafe content.
When loading: warn and ask for confirmation; optionally load only workflow structure without parameters.