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

Unable to set multiple multiple values for a property #188

Open
stardude900 opened this issue Sep 11, 2024 · 1 comment
Open

Unable to set multiple multiple values for a property #188

stardude900 opened this issue Sep 11, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@stardude900
Copy link

stardude900 commented Sep 11, 2024

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.

@stardude900 stardude900 added the bug Something isn't working label Sep 11, 2024
@stardude900
Copy link
Author

stardude900 commented Sep 11, 2024

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

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