Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dangling symlinks cause upload errors with wildcards in filespecs #2691

Open
creid-arista opened this issue Sep 10, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@creid-arista
Copy link

Describe the bug

When attempting to upload via a filespec that includes a pattern with a wildcard, if the current directory or any child directories contain dangling symlinks the upload will fail. This is regardless of whether or not the dangling symlink matches the pattern.

Current behavior

[Debug] Usage Report: Sending info...
[Debug] Sending HTTP GET request to: .../artifactory/api/system/version
[Error] stat broken.symlink: no such file or directory
[Error] stat broken.symlink: no such file or directory
[Debug] Uploaded 0 artifacts.
[Error] stat broken.symlink: no such file or directory
[Debug] Artifactory response: 200 OK
[Debug] JFrog Artifactory version is: 7.63.10
[Debug] Sending HTTP POST request to: .../artifactory/api/system/usage

Reproduction steps

Create the following structure:

.
├── a-test.txt
├── broken.symlink -> a-file.txt
└── upload.filespec

upload.filespec:

{
    "files": [
        {
            "pattern": "./*-test.txt",
            "target": "generic-test/",
            "props": "name=Test File"
        }
    ]
}

Run jfrog rt u --spec=upload.filespec

Expected behavior

Upload the relevant file and ignore the irrelevant broken symlink.

JFrog CLI version

2.67.0

Operating system type and version

AlmaLinux 9.4

JFrog Artifactory version

No response

JFrog Xray version

No response

@creid-arista creid-arista added the bug Something isn't working label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant