Skip to content

Unable to set multiple multiple values for a property #188

@stardude900

Description

@stardude900

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:

  • OS: Ubuntu 20.04 and Ubuntu 22.04
  • pyartifactory version [e.g. 1.4.0], get it with:
python -c "import pyartifactory; print(pyartifactory.__version__)"
2.5.1
  • Python version, get it with:
/usr/bin/python3 --version
Python 3.10.15

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions