Skip to content

[BUG] LicenseDB Import REST endpoint does not persist data to SW360 database #3766

@ADITYA-CODE-SOURCE

Description

@ADITYA-CODE-SOURCE

Description

LicenseDB Import REST endpoint does not persist data to SW360 database

How to reproduce

  1. Configure LicenseDB in sw360.properties with valid credentials
  2. Call POST /api/licenses/import/LicenseDB
  3. Check SW360 database - no licenses or obligations are saved
  4. The API returns success but data is never persisted
    The root cause is in LicenseController.java:562 which calls licenseDbIntegrationService.fullSync() (which only fetches data) instead of licenseDbService.fullSync() (which has persistence logic).

Expected Behavior

Licenses and obligations should be saved to SW360 database after calling the import endpoint.

Versions

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