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

IndexoutOfBoundException for item.move #243

Open
maqzee-git opened this issue Apr 18, 2019 · 1 comment
Open

IndexoutOfBoundException for item.move #243

maqzee-git opened this issue Apr 18, 2019 · 1 comment

Comments

@maqzee-git
Copy link

maqzee-git commented Apr 18, 2019

Release used - artifactory-client-java.2.8.3

I have tried multiple ways to move a folder within a repo and failed to do so. If I try with same user from UI, it works so not sure what I am missing or doing incorrectly, can someone help me with fixing the issue

Gist of Code
ItemHandle prevJarFolder = artifactory.repository("libs-feature-local").folder("company/component/0.10.10"); println prevJarFolder.info(); prevJarFolder.move("libs-feature-local", 'company/component/0.10.10.1') //adding 1

Error

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:657)
at java.util.ArrayList.get(ArrayList.java:433)
at java_util_List$get$3.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
at org.jfrog.artifactory.client.impl.ItemHandleImpl.moveOrCopy(ItemHandleImpl.groovy:153)
at org.jfrog.artifactory.client.impl.ItemHandleImpl.move(ItemHandleImpl.groovy:133)`

@jonesbusy
Copy link
Contributor

Same issue : #333

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants