spdx / spdx/Spdx-Java-Library

Templates with <<var... tags in a string without spaces does not match correctly

Open
#28 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

matching wontfix
Dominant language
Java
Stars
71
Forks
44
Avg merge
12h 54m
Merged PRs (30d)
7

Description

Since the license matching is tokanized and the var tags assume the regular expression is a token, it likely will not match a string in the middle of an expression.

It will also match when the template has an incorrect space (see LicenseListXML issue https://github.com/spdx/license-list-XML/issues/1146).

Contributor guide

Open the contributing guide

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 tracing the license-matching tokenization path described in the issue and reproduce both template cases: a <<var... tag embedded without spaces and a template with an incorrect space. Done means matching handles tags in the middle of an expression correctly and rejects the incorrect-space case, with regression coverage for both behaviors.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.