spdx / spdx/spdx-model-to-java

Object URIs are not validated

Open
#40 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
3
Forks
3
Avg merge
16h 30m
Merged PRs (30d)
1

Description

When creating a new ModelObject, the URI should be validated.

An example value that should fail:

https://spdx.org/ids/LicenseRef-scancode-public-domain AND LicenseRef-unknown-License-OSI-Approved-BSD-License AND LicenseRef-unknown-License-OSI-Approved-GNU-General-Public-License-GPL

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the ModelObject creation path and the existing URI validation entry point in the generated Java sources. Use the example URI as a regression case; done means creating a ModelObject with that value is rejected while valid URIs remain accepted.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.