You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2022/06/27 22:43:23 UTC

[GitHub] [maven-indexer] fawind commented on a diff in pull request #225: [MINDEXER-144] Fix IOOBEx on GAV remote repositories

fawind commented on code in PR #225:
URL: https://github.com/apache/maven-indexer/pull/225#discussion_r907857798


##########
indexer-core/src/test/java/org/apache/maven/index/artifact/M2GavCalculatorTest.java:
##########
@@ -585,6 +585,8 @@ public void testGav()
         assertNull( gav );
         gav = gavCalculator.pathToGav( "/dev/mbien/hintmod/maven-metadata-local.xml" );
         assertNull( gav );
+        gav = gavCalculator.pathToGav( "/dev/mbien/hintmod/1.0-SNAPSHOT/_remote.repositories" ); // causes MINDEXER-144
+        assertNull( gav );

Review Comment:
   This case failed with `IndexOutOfBoundsException` before the patch.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org