generated from aboutcode-org/skeleton
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Resolution fails due to encoding issue with version strings containing a +
#143
Comments
fviernau
added a commit
to fviernau/python-inspector
that referenced
this issue
Sep 15, 2023
`Distribution.from_link()` derives the version string of a package from the given (percent encoded) `Link.url`. That derivation lacks the decoded, so the resulting version string may also contain percent encoded characters in which case the dependency resolution fails. Fix the resolution by URL adding the missing unquoting. Fixes aboutcode-org#143. Signed-off-by: Frank Viernau <[email protected]>
fviernau
added a commit
to fviernau/python-inspector
that referenced
this issue
Sep 15, 2023
`Distribution.from_link()` derives the version string of a package from the given (percent encoded) `Link.url`. That derivation lacks the decoding, so the resulting version string may also contain percent encoded characters in which case the dependency resolution fails. Fix the resolution by URL adding the missing unquoting. Fixes aboutcode-org#143. Signed-off-by: Frank Viernau <[email protected]>
fviernau
added a commit
to fviernau/python-inspector
that referenced
this issue
Sep 25, 2023
`Distribution.from_link()` derives the version string of a package from the given (percent encoded) `Link.url`. That derivation lacks the decoding, so the resulting version string may also contain percent encoded characters in which case the dependency resolution fails. Fix the resolution by URL adding the missing unquoting. Fixes aboutcode-org#143. Signed-off-by: Frank Viernau <[email protected]>
fviernau
added a commit
to fviernau/python-inspector
that referenced
this issue
Sep 25, 2023
`Distribution.from_link()` derives the version string of a package from the given (percent encoded) `Link.url`. That derivation lacks the decoding, so the resulting version string may also contain percent encoded characters in which case the dependency resolution fails. Fix the resolution by URL adding the missing unquoting. Fixes aboutcode-org#143. Signed-off-by: Frank Viernau <[email protected]>
fviernau
added a commit
to fviernau/python-inspector
that referenced
this issue
Sep 25, 2023
`Distribution.from_link()` derives the version string of a package from the given (percent encoded) `Link.url`. That derivation lacks the decoding, so the resulting version string may also contain percent encoded characters in which case the dependency resolution fails. Fix the resolution by URL adding the missing unquoting. Fixes aboutcode-org#143. Signed-off-by: Frank Viernau <[email protected]>
fviernau
added a commit
to fviernau/python-inspector
that referenced
this issue
Sep 25, 2023
`Distribution.from_link()` derives the version string of a package from the given (percent encoded) `Link.url`. That derivation lacks the decoding, so the resulting version string may also contain percent encoded characters in which case the dependency resolution fails. Fix the resolution by URL adding the missing unquoting. Fixes aboutcode-org#143. Signed-off-by: Frank Viernau <[email protected]>
For reference, not sure if you have read this before, the |
fviernau
added a commit
to fviernau/python-inspector
that referenced
this issue
Oct 10, 2023
`Distribution.from_link()` derives the version string of a package from the given (percent encoded) `Link.url`. That derivation lacks the decoding, so the resulting version string may also contain percent encoded characters in which case the dependency resolution fails. Fix the resolution by URL adding the missing unquoting. Fixes aboutcode-org#143. Signed-off-by: Frank Viernau <[email protected]>
@fviernau I have a fewthings to push to our branch shortly |
pombredanne
added a commit
to fviernau/python-inspector
that referenced
this issue
Oct 24, 2023
Move the resolution to the from_filename() method in subclasses Reference: aboutcode-org#143 Signed-off-by: Philippe Ombredanne <[email protected]>
pombredanne
added a commit
to fviernau/python-inspector
that referenced
this issue
Oct 24, 2023
These new test were missing originally and they excercise all the corner cases of encoding. Reference: aboutcode-org#143 Signed-off-by: Philippe Ombredanne <[email protected]>
pombredanne
added a commit
to fviernau/python-inspector
that referenced
this issue
Oct 24, 2023
* Ensure that we honor the --generic-paths option when converting to plain mapping. * Avoid recursive imports by moving remove_test_data_dir_variable_prefix to utils.py * Simplifify tests to bypass the creation of an output file when not needed * Some tests are also updated to account for package version updates. Reference: aboutcode-org#143 Signed-off-by: Philippe Ombredanne <[email protected]>
fviernau
added a commit
to oss-review-toolkit/ort
that referenced
this issue
Oct 31, 2023
Amongst others, the new release has a fix for a version string encoding related issue, see aboutcode-org/python-inspector#143. Signed-off-by: Frank Viernau <[email protected]>
fviernau
added a commit
to oss-review-toolkit/ort
that referenced
this issue
Nov 1, 2023
Amongst others, the new release has a fix for a version string encoding related issue, see aboutcode-org/python-inspector#143. Signed-off-by: Frank Viernau <[email protected]>
fviernau
added a commit
to oss-review-toolkit/ort
that referenced
this issue
Nov 1, 2023
Amongst others, the new release has a fix for a version string encoding related issue, see aboutcode-org/python-inspector#143. Signed-off-by: Frank Viernau <[email protected]>
fviernau
added a commit
to oss-review-toolkit/ort
that referenced
this issue
Nov 1, 2023
Amongst others, the new release has a fix for a version string encoding related issue, see aboutcode-org/python-inspector#143. Signed-off-by: Frank Viernau <[email protected]>
fviernau
added a commit
to oss-review-toolkit/ort
that referenced
this issue
Nov 1, 2023
Amongst others, the new release has a fix for a version string encoding related issue, see aboutcode-org/python-inspector#143. Signed-off-by: Frank Viernau <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following
requirements.txt
can be resolved withpip
, but not withpython-inspector
.Outcome:
Observation:
After some debugging, I found that
packages_from_links()
inutils_pypi.py
operates on packages which have the version encoded. In particular, the+
is encoded as%2B
. My guess is that the matching somehow then compares+
with%2B
and fails. I tried the following (workaround)requirements.txt
, which can be successfully analyzed. I guess this proofs that it's an encoding bug:The text was updated successfully, but these errors were encountered: