-
Notifications
You must be signed in to change notification settings - Fork 11
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
phylum package
returns results for nonexistent packages
#351
Comments
Is CLI the right place for this? Since the CLI basically just prints what the API responds here, it seems like this might be better handled on the API side? |
I think there are probably changes to make on both the API and the CLI side. Looking at the debug output:
The API is returning The API probably should be returning a 404 here, but the CLI doesn't handle that well either (see #155). One final note: I would expect a 404 on this endpoint for both packages that don't exist and packages that haven't been submitted yet. So the CLI message should be carefully worded to make that clear. |
I think this is also true for the |
Yes, to an extent. For |
Since submission is now done automatically for packages that did not exist yet, this will show the following message:
I still think we should print that the package doesn't exist (assuming we can get that info), but it seems less troublesome than reporting the package as not having any issues. |
The API will be updated in the future to return a different result for nonexistent packages. Until then, this is probably the best that can be expected. Closing this issue since any future work will happen on the API side. |
Re-opening after finding this...
But it seems this one also fools the UI so I don't think this is actually a CLI-specific issue. |
It sounds like the status of this issue didn't really change. Are you working on it right now? |
Just a bit of investigation. As mentioned in your previous comment, we expect a "Thank you for submitting" message for nonexistent packages. But for some reason we don't get that with |
The main thing I was curious about is why this issue is re-opened in CLI. There's nothing wrong with looking into this and tracking it somewhere, but it sounded like we already confirmed that this is not an issue with the CLI and I don't think that has changed? |
You are correct. I just haven't thought of any better place to track it. |
Is this still an issue? I don't see a |
This is still an issue, you get the behavior after trying again once you get the |
This fixes an issue where packages would show up as passing Phylum's analysis if they failed at any point of the pipeline. Closes #351.
This fixes an issue where packages would show up as passing Phylum's analysis if they failed at any point of the pipeline. Closes #351.
This fixes an issue where packages would show up as passing Phylum's analysis if they failed at any point of the pipeline. Closes #351.
This fixes an issue where packages would show up as passing Phylum's analysis if they failed at any point of the pipeline. Closes #351.
I think #1518 helps, but this is still an issue. This is current > phylum package maven androidx.collection:collection 1.4.0
Package Name: androidx.collection:collection Package Version: 1.4.0
License: Last updated: 1970-01-01T00:00:00+00:00
Num Deps: 0 Num Vulns: 0
Ecosystem: maven
Risk Vectors:
Total Risk: 100
Author Risk: 100
Engineering Risk: 100
License Risk: 100
Malicious Code Risk: 100
Vulnerability Risk: 100 |
Running
phylum package
with a nonexistent package name and version still returns results.Expected Behavior
Some indication that the package does not exist
The text was updated successfully, but these errors were encountered: