Description
License archive download uses an incorrect filename formatting pattern in Sw360LicenseService.
In getDownloadLicenseArchive(...), the filename is built like this:
String fileConstant = "LicensesBackup.lics";
String filename = String.format(fileConstant, SW360Utils.getCreatedOn());
However, fileConstant does not contain any format placeholder such as %s, so the timestamp argument is ignored.
Expected behavior
The generated backup filename should include the timestamp returned by SW360Utils.getCreatedOn() so that each exported backup gets a unique and meaningful name.
such as LicensesBackup_2026-03-13.lics
Description
License archive download uses an incorrect filename formatting pattern in
Sw360LicenseService.In
getDownloadLicenseArchive(...), the filename is built like this:However,
fileConstantdoes not contain any format placeholder such as %s, so the timestamp argument is ignored.Expected behavior
The generated backup filename should include the timestamp returned by
SW360Utils.getCreatedOn()so that each exported backup gets a unique and meaningful name.such as
LicensesBackup_2026-03-13.lics