Collection should be empty but contained [org.cyclonedx.exception.ParseException: $.components[0].licenses[0].license.text.encoding: null found, string expected, org.cyclonedx.exception.ParseException: $.components[0].licenses[0].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[0].licenses[1].license.text.encoding: null found, string expected, org.cyclonedx.exception.ParseException: $.components[0].licenses[1].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[0].licenses[1].license.text.content: null found, string expected, org.cyclonedx.exception.ParseException: $.components[0].licenses[2].license.text.encoding: null found, string expected, org.cyclonedx.exception.ParseException: $.components[0].licenses[2].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[0].licenses[3].license.text.encoding: null found, string expected, org.cyclonedx.exception.ParseException: $.components[0].licenses[3].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[0].licenses[4].license.text.encoding: null found, string expected, org.cyclonedx.exception.ParseException: $.components[0].licenses[4].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[1].licenses[0].license.text.encoding: null found, string expected, org.cyclonedx.exception.ParseException: $.components[1].licenses[0].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[1].licenses[1].license.text.encoding: null found, string expected, org.cyclonedx.exception.ParseException: $.components[1].licenses[1].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[2].licenses[0].license.text.encoding: null found, string expected, org.cyclonedx.exception.ParseException: $.components[2].licenses[0].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[2].licenses[1].license.text.encoding: null found, string expected, org.cyclonedx.exception.ParseException: $.components[2].licenses[1].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[3].licenses[0].license.text.encoding: null found, string expected, ...] and 3 more
java.lang.AssertionError: Collection should be empty but contained [org.cyclonedx.exception.ParseException: $.components[0].licenses[0].license.text.encoding: null found, string expected, org.cyclonedx.exception.ParseException: $.components[0].licenses[0].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[0].licenses[1].license.text.encoding: null found, string expected, org.cyclonedx.exception.ParseException: $.components[0].licenses[1].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[0].licenses[1].license.text.content: null found, string expected, org.cyclonedx.exception.ParseException: $.components[0].licenses[2].license.text.encoding: null found, string expected, org.cyclonedx.exception.ParseException: $.components[0].licenses[2].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[0].licenses[3].license.text.encoding: null found, string expected, org.cyclonedx.exception.ParseException: $.components[0].licenses[3].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[0].licenses[4].license.text.encoding: null found, string expected, org.cyclonedx.exception.ParseException: $.components[0].licenses[4].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[1].licenses[0].license.text.encoding: null found, string expected, org.cyclonedx.exception.ParseException: $.components[1].licenses[0].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[1].licenses[1].license.text.encoding: null found, string expected, org.cyclonedx.exception.ParseException: $.components[1].licenses[1].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[2].licenses[0].license.text.encoding: null found, string expected, org.cyclonedx.exception.ParseException: $.components[2].licenses[0].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[2].licenses[1].license.text.encoding: null found, string expected, org.cyclonedx.exception.ParseException: $.components[2].licenses[1].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[3].licenses[0].license.text.encoding: null found, string expected, ...] and 3 more
I was expecting to be able to work around the issue by explicitly settting the encoding on the AttachmentText
object to "UTF8", but then I got
Collection should be empty but contained [org.cyclonedx.exception.ParseException: $.components[0].licenses[0].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[0].licenses[1].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[0].licenses[1].license.text.content: null found, string expected, org.cyclonedx.exception.ParseException: $.components[0].licenses[2].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[0].licenses[3].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[0].licenses[4].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[1].licenses[0].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[1].licenses[1].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[2].licenses[0].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[2].licenses[1].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[3].licenses[0].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[4].licenses[0].license.text.encoding: does not have a value in the enumeration [base64]]
java.lang.AssertionError: Collection should be empty but contained [org.cyclonedx.exception.ParseException: $.components[0].licenses[0].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[0].licenses[1].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[0].licenses[1].license.text.content: null found, string expected, org.cyclonedx.exception.ParseException: $.components[0].licenses[2].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[0].licenses[3].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[0].licenses[4].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[1].licenses[0].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[1].licenses[1].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[2].licenses[0].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[2].licenses[1].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[3].licenses[0].license.text.encoding: does not have a value in the enumeration [base64], org.cyclonedx.exception.ParseException: $.components[4].licenses[0].license.text.encoding: does not have a value in the enumeration [base64]]
So this apparently is not about the usual platform-specific text encoding, but optional "transmission encoding" of the license text. As I do not want "base64", and setting the encoding to "" (empty string) also does not work, I'm out of ideas for work-arounds.