Skip to content

doUploadAndExplode doesn't invoke Listener #395

@EliasDerHai

Description

@EliasDerHai

Describe the bug
listener is ignored if uploaded with doUploadAndExplode

To Reproduce
this logs:

var uploaded = artifactory
                    .repository(repositoryName)
                    .upload(targetPath, file)
                    .withListener((bytesRead, totalBytes) -> {
                        log.debug("Artifactory ({} / {})", bytesRead, totalBytes);
                    })
                    .doUpload();

but this doesn't:

var uploaded = artifactory
                    .repository(repositoryName)
                    .upload(targetPath, file)
                    .withListener((bytesRead, totalBytes) -> {
                        log.debug("Artifactory ({} / {})", bytesRead, totalBytes);
                    })
                    .doUploadAndExplode(true);

also it would be more consistent if both methods would have the same return type

Expected behavior
listener should be invoked also with the explode feature.

Versions

  • Artifactory Java Client version: 2.19.1
  • Operating system: WIN11pro
  • Artifactory Version: Enterprise Plus 7.77.14 rev

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