salt artifactory - classifier not properly being identified #31179
So i was attempting to use the artifactory state instead of a cmd.run wget but was running in to an error that was not being solved. I keep getting the error
now please note in the artifactory repository i am pulling from in the snapshot folder there are 4 files
the actual artifactory xml:
If i remove the classifier it will download the base jar. I can even download the base pom. Yet when i try to downloading the "jar-with-dependencies" it will fail with the issue listed above.
after reviewing the artifactory module the following code stood out:
so the packaging type is a required field in the artifactory module so i have to specify jar. there is more then one jar though and xml contains multiple snapshotVersion. so from my non python coding interpretation it (the code) is just looking at the first snapshotVersion in the xml that is a jar.. which in my case does not have a classifier and "bombs out" on me.
I disabled the lines above from the python module and salt state artifactory worked perfect with the classifier and now downloads the file.
now i talked to one of my devs and he did mention in many cases there will only be 1 file not this multiple jar situation, but he did mention there are time where you will have more then one as you do thing like having "jar-with-dependencies"
imho it looks like it the check above needs to be refined.
And the default information:
Tested with Minion:
I'm having the same issue, snapshot versions with a classifier always fail due to this check.
It looks like the check in
Adding something like: