anancarv / python-artifactory

Typed interactions with the Jfrog Artifactory REST API
MIT License
60 stars 51 forks source link

Unable to set multiple multiple values for a property #188

Open stardude900 opened 1 month ago

stardude900 commented 1 month ago

Describe the bug When I try to upload a debian artifact for focal and jammy, it will appear in the UI correct, but is not actually installable until I click on the property in the UI and then click save. This makes me wonder if there is some invisible character that isn't being properly sent.

I feel like it has to be something with the semi-colon that seems to be required, but i haven't figured out a way around that.

To Reproduce Steps to reproduce the behavior:

  1. Try to upload an artifact with more than a single value for a property
  2. Verify that it appears in the UI
  3. Check to see if the deb is available for installation on the focal or jammy system

Expected behavior Both values show up in the UI and when trying to install, or list, the package shows up in both a focal and a jammy install. apt clean all ; apt update ; apt info -a <package>

Screenshots If applicable, add screenshots to help explain your problem.

Environment:

Code snippet

upload = art.artifacts.deploy(f'{base_dir}{item["Key"]}', f'{repo}/{item["Key"]}')

# Update Artifact properties
print(f'Setting Properties for {item["Key"]}')
set_art_props = art.artifacts.update_properties(
    f'{repo}/{item["Key"]}', {
        "deb.architecture" : ["amd64"], \
        "deb.distribution" : ["focal;jammy"], \
        "deb.component" : [f"{component}"], 
        "md5" : [md5]}, 
    recursive=False)

Additional context Add any other context about the problem here.

stardude900 commented 1 month ago

Updated the script to python 3.10.15 and pyartifactory to 2.5.1 since the previous ones were quite old.