Skip to content
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

implementation of xsd:anyURI is invalid #18

Closed
jkowalleck opened this issue Nov 14, 2021 · 0 comments · Fixed by #19
Closed

implementation of xsd:anyURI is invalid #18

jkowalleck opened this issue Nov 14, 2021 · 0 comments · Fixed by #19
Assignees
Labels
bug Something isn't working

Comments

@jkowalleck
Copy link
Member

jkowalleck commented Nov 14, 2021

ISSUE: current implementation treats xsd:anyURI as an URL.

xsd:anyURI is more than a URL
documentation: http://www.w3.org/TR/xmlschema-2/#anyURI
see also http://books.xmlschemata.org/relaxng/ch19-77009.html
see also http://www.datypic.com/sc/xsd/t-xsd_anyURI.html

current implementation is done wrong - as followed:

filter_var($url, \FILTER_VALIDATE_URL)
@jkowalleck jkowalleck added the bug Something isn't working label Nov 14, 2021
@jkowalleck jkowalleck self-assigned this Nov 14, 2021
jkowalleck added a commit that referenced this issue Nov 14, 2021
jkowalleck added a commit that referenced this issue Nov 14, 2021
jkowalleck added a commit that referenced this issue Nov 14, 2021
…nctiveLicense::setUrl()`

fixes #18

Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
jkowalleck added a commit that referenced this issue Nov 15, 2021
* Fixed
  * `CycloneDX\Core\Models\License\AbstractDisjunctiveLicense::setUrl()`
    no longer restricts the argument to be a valid URL.
    Per schema definition `licenseType.url` should be a URI, not a URL.
    See [#18](#18)
* Changed
  * `CycloneDX\Core\Models\License\AbstractDisjunctiveLicense::setUrl()`
     no longer throws `InvalidArgumentException`
     if the argument is not a URL (via [#19])

[#19]: #19
jkowalleck added a commit that referenced this issue Nov 20, 2021
…nctiveLicense::setUrl()`

fixes #18

Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
jkowalleck added a commit that referenced this issue Nov 20, 2021
* Fixed
  * `CycloneDX\Core\Models\License\AbstractDisjunctiveLicense::setUrl()`
    no longer restricts the argument to be a valid URL.
    Per schema definition `licenseType.url` should be a URI, not a URL.
    See [#18](#18)
* Changed
  * `CycloneDX\Core\Models\License\AbstractDisjunctiveLicense::setUrl()`
     no longer throws `InvalidArgumentException`
     if the argument is not a URL (via [#19])

[#19]: #19

Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant