microsoft / microsoft/component-detection
locationsFoundAt specifies URL-encoded paths
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 553
- Forks
- 135
- Avg merge
- 20h 58m
- Merged PRs (30d)
- 6
Description
As per the title, e.g.:
{
"dependencyGraphs": {
"C:\\src\\my project\\my project.csproj": {
...
}
},
"componentsFound": [
{
"locationsFoundAt": [
"/my%20project/my%20project.csproj"
],
...
}
]
}
This behaviour means that paths including spaces are mangled. This affects downstream uses like https://github.com/advanced-security/component-detection-dependency-submission-action - because the paths are different between "dependencyGraphs" and "componentsFound", it fails to link them, and I get a bunch of warnings like
Warning: No dependency graph entry found for manifest location: my%20project/my%20project.csproj
I have identified where this URL-encoding is being applied, and have a fix that I will push soon.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the URL-encoding location identified by the reporter and reproduce the issue with a project path containing spaces, comparing dependencyGraphs with componentsFound.locationsFoundAt. Done means both representations use the same unencoded path and downstream processing no longer reports a missing dependency graph entry.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- security
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100