Skip to content

Bug: License backup filename ignores timestamp during archive download #3885

@YianZhao

Description

@YianZhao

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions