-
-
Notifications
You must be signed in to change notification settings - Fork 13
guarantee correct URLs #992
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
Comments
@mLuca , url fixes SHOULD happen on (xml-/json-)normalization-time, not in the model. see as inspiration: https://github.com/search?q=repo%3ACycloneDX%2Fcyclonedx-php-library+%255B&type=code |
@jkowalleck I can have a look today. |
@jkowalleck I had a look at the code base and grasped a bit of typescript on the way. I am new to GitHub, OSS development and such. I don't see how I can create a bugfix-branch to push my changes to? Also I didn't find any styleguide on how to name branches (e.g. "bugfix/992-assert-correct-url" ?) |
sure thing. just open a pullrequest and i will have a look. since you do not have write permission to this very repository, you would create a pullrequest from a fork: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork Since you would create the branch in your fork, I don't mind the branch name. |
Serialization/normalization guarantees valid URI values according to JSON/XML specification fixes #992 --------- Signed-off-by: mzl2fe <[email protected]> Signed-off-by: Jan Kowalleck <[email protected]> Co-authored-by: mzl2fe <[email protected]> Co-authored-by: Jan Kowalleck <[email protected]>
caused by CycloneDX/cyclonedx-webpack-plugin#1239 (comment)
An issue exists, where (invalid) URLs like
https://github.com/cssinjs/jss/issues/new?title=[jss-plugin-camel-case]
cause trouble.characters
[]
are invalid characters to URL standards. they must be url encoded%5B%5D
.possible fix can be done in this library, on normalization time (not in the model).
would not be the first time to fix this ...
see https://github.com/search?q=repo%3ACycloneDX%2Fcyclonedx-php-library+%255B&type=code
similar to CycloneDX/cyclonedx-php-library#35
have all the XML strings that are
anyURI
somehow fixed before rendering the XML/JSON.affected elements:
according to XML spec the
anyURI
needs to conform to https://www.ietf.org/rfc/rfc2396.txtThe text was updated successfully, but these errors were encountered: