-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: explorer-20.0.0
-
Component/s: Explorer
-
Epic Link:
-
Team:AT
-
Sprint:nxAT 11.1.27
-
Story Points:1
Logics implemented at NXP-29371 do not match the reality of a "promoted version" number.
Saving a snaphot for "11.3" takes version "11.3.56" so export is not retrieved correctly when calling corresponding API.
The script should be able to save the corresponding distribution setting the version, or update it before export.
Moreover, trying to retrieve the distribution gives the following error server side, so corresponding code should be made safer:
2020-10-07T15:53:06,164 ERROR [Distribution] java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0 java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0 at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) ~[?:?] at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) ~[?:?] at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248) ~[?:?] at java.util.Objects.checkIndex(Objects.java:372) ~[?:?] at java.util.ArrayList.get(ArrayList.java:459) ~[?:?] at org.nuxeo.apidoc.snapshot.SnapshotManagerComponent.getSnapshot(SnapshotManagerComponent.java:158) ~[nuxeo-apidoc-core-20.0.0-RC3.jar:?] at org.nuxeo.apidoc.snapshot.SnapshotManagerComponent.exportSnapshot(SnapshotManagerComponent.java:280) ~[nuxeo-apidoc-core-20.0.0-RC3.jar:?] at org.nuxeo.apidoc.browse.Distribution.downloadDistrib(Distribution.java:465) ~[nuxeo-apidoc-webengine-20.0.0-RC3.jar:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]