CycloneDX / CycloneDX/cyclonedx-core-java
Empty metadata --> tool tag causes parsing exception
- 主要言語
- Java
- スター
- 120
- フォーク
- 90
- 平均マージ
- 12時間 43分
- マージ済み PR(30日)
- 18
説明
Hello, I have a question regarding an exception I get when parsing a 1.3 CycloneDX SBOM.
According to the specification, the `` tag in the `` section is an `array`, which does not specify a constraint to it's size: https://cyclonedx.org/docs/1.3/json/#metadata_tools
However, when I try to parse an SBOM like this using your library:
```xml
```
I get this exception:
```
com.fasterxml.jackson.databind.JsonMappingException: Cannot coerce empty String ("") to `org.cyclonedx.model.Tool` value (but could if coercion was enabled using `CoercionConfig`)
at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: org.cyclonedx.model.Bom["metadata"])
```
The SBOM is generated using a tool, but it does not fill out this property.
I was wondering whether this behavior is intended or whether this is a difference to the specification that I did not understand.
Thank you for your time.
コントリビューションガイド
調査の方向性
示されている CycloneDX 1.3 XML で例外を再現し、その後、org.cyclonedx.model.Bom metadata と org.cyclonedx.model.Tool を経由するデシリアライズを追跡します。空の tools 要素が仕様で受け入れられるかを確認し、その入力が報告された parsing 例外なしで一貫して処理されれば、issue は完了とします。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- backend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100