artifactory-client-java icon indicating copy to clipboard operation
artifactory-client-java copied to clipboard

doUploadAndExplode doesn't invoke Listener

Open EliasDerHai opened this issue 1 year ago • 2 comments

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

EliasDerHai avatar Dec 18 '24 13:12 EliasDerHai

This issue has been marked as stale due to 6 months of inactivity. As part of our effort to address every issue properly, please feel free to remove the stale label or keep this issue active by leaving a comment. Otherwise, it will be closed in 7 days

github-actions[bot] avatar Jun 20 '25 00:06 github-actions[bot]

Still buggy

EliasDerHai avatar Jun 27 '25 00:06 EliasDerHai