ok, I updated https://issues.apache.org/jira/browse/MNG-5871
FYI, MNG-5878 implementation is waiting in a branch for a new non-patch release, to be semver compliant, since it's a new feature Regards, Hervé Le vendredi 30 octobre 2015 00:31:44 Jason van Zyl a écrit : > I don’t think it’s necessary as Igor found it and hopefully I fixed it > before any user will see it. But we can find the original JIRA issue with > the commit and then add this commit there as the fix. Probably easiest to > track it in one place from the source of the work. > > The two issues that I can see as likely candidates are: > > MNG-5871 > MNG-5878 > > Both appear to be yours. You know which one that change originates from? > I’ll update the issue once you point me in the right direction. > > On Oct 30, 2015, at 12:05 AM, Hervé BOUTEMY <[email protected]> wrote: > > > > no Jira issue? > > > > this won't help track Maven core evolution, since I suppose it's a user > > visible failure > > > > can you please open a Jira issue, with a little stacktrace to find the > > issue when searching the web? And I don't know if we can rewrite the > > comment to point to this issue > > > > we need to continue our bug tracking conventions, or our community will > > soon be lost in unexplained changes between versions > > > > Regards, > > > > Hervé > > > > Le vendredi 30 octobre 2015 01:34:29 [email protected] a écrit : > >> Repository: maven > >> > >> Updated Branches: > >> refs/heads/master 508d97ec8 -> f684761de > >> > >> Fix for urls being empty in the POM and causing an out of bounds > >> exception > >> > >> > >> Project: http://git-wip-us.apache.org/repos/asf/maven/repo > >> Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/f684761d > >> Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/f684761d > >> Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/f684761d > >> > >> Branch: refs/heads/master > >> Commit: f684761dee739b4ec8a7e6db5a0a6a0b809e66c9 > >> Parents: 508d97e > >> Author: Jason van Zyl <[email protected]> > >> Authored: Thu Oct 29 18:33:59 2015 -0700 > >> Committer: Jason van Zyl <[email protected]> > >> Committed: Thu Oct 29 18:33:59 2015 -0700 > >> > >> ---------------------------------------------------------------------- > >> .../DefaultInheritanceAssembler.java | 2 +- > >> .../DefaultInheritanceAssemblerTest.java | 8 +++- > >> .../resources/poms/inheritance/empty-child.xml | 31 ++++++++++++++++ > >> .../poms/inheritance/empty-expected.xml | 39 ++++++++++++++++++++ > >> .../resources/poms/inheritance/empty-parent.xml | 37 +++++++++++++++++++ > >> 5 files changed, 115 insertions(+), 2 deletions(-) > >> ---------------------------------------------------------------------- > >> > >> > >> http://git-wip-us.apache.org/repos/asf/maven/blob/f684761d/maven-model-bu > >> ild > >> er/src/main/java/org/apache/maven/model/inheritance/DefaultInheritanceAs > >> semb ler.java > >> ---------------------------------------------------------------------- > >> diff > >> --git > >> a/maven-model-builder/src/main/java/org/apache/maven/model/inheritance/De > >> fa > >> ultInheritanceAssembler.java > >> b/maven-model-builder/src/main/java/org/apache/maven/model/inheritance/De > >> fa > >> ultInheritanceAssembler.java index 5ffcf6d..fd1c07f 100644 > >> --- > >> a/maven-model-builder/src/main/java/org/apache/maven/model/inheritance/De > >> fa > >> ultInheritanceAssembler.java +++ > >> b/maven-model-builder/src/main/java/org/apache/maven/model/inheritance/De > >> fa > >> ultInheritanceAssembler.java @@ -161,7 +161,7 @@ public class > >> DefaultInheritanceAssembler > >> > >> private void concatPath( StringBuilder url, String path ) > >> { > >> > >> - if ( path.length() > 0 ) > >> + if ( url.length() > 0 && path.length() > 0 ) > >> > >> { > >> > >> boolean initialUrlEndsWithSlash = url.charAt( > >> url.length() > >> > >> - 1 ) == '/'; boolean pathStartsWithSlash = path.charAt( 0 ) == '/'; > >> > >> http://git-wip-us.apache.org/repos/asf/maven/blob/f684761d/maven-model-bu > >> ild > >> er/src/test/java/org/apache/maven/model/inheritance/DefaultInheritanceAs > >> semb lerTest.java > >> ---------------------------------------------------------------------- > >> diff > >> --git > >> a/maven-model-builder/src/test/java/org/apache/maven/model/inheritance/De > >> fa > >> ultInheritanceAssemblerTest.java > >> b/maven-model-builder/src/test/java/org/apache/maven/model/inheritance/De > >> fa > >> ultInheritanceAssemblerTest.java index ae45283..60f860f 100644 > >> --- > >> a/maven-model-builder/src/test/java/org/apache/maven/model/inheritance/De > >> fa > >> ultInheritanceAssemblerTest.java +++ > >> b/maven-model-builder/src/test/java/org/apache/maven/model/inheritance/De > >> fa > >> ultInheritanceAssemblerTest.java @@ -137,6 +137,12 @@ public class > >> DefaultInheritanceAssemblerTest > >> > >> } > >> > >> } > >> > >> + public void testWithEmptyUrl() > >> + throws Exception > >> + { > >> + testInheritance( "empty", false ); > >> + } > >> + > >> > >> public void testInheritance( String baseName ) > >> > >> throws Exception > >> > >> { > >> > >> @@ -177,5 +183,5 @@ public class DefaultInheritanceAssemblerTest > >> > >> XMLUnit.setIgnoreWhitespace( true ); > >> XMLAssert.assertXMLEqual( control, test ); > >> > >> } > >> > >> - } > >> + } > >> } > >> > >> http://git-wip-us.apache.org/repos/asf/maven/blob/f684761d/maven-model-bu > >> ild er/src/test/resources/poms/inheritance/empty-child.xml > >> ---------------------------------------------------------------------- > >> diff > >> --git > >> a/maven-model-builder/src/test/resources/poms/inheritance/empty-child.xml > >> b/maven-model-builder/src/test/resources/poms/inheritance/empty-child.xml > >> new file mode 100644 > >> index 0000000..88ccde4 > >> --- /dev/null > >> +++ > >> b/maven-model-builder/src/test/resources/poms/inheritance/empty-child.xml > >> @@ -0,0 +1,31 @@ > >> +<?xml version="1.0" encoding="UTF-8"?> > >> + > >> +<!-- > >> +Licensed to the Apache Software Foundation (ASF) under one > >> +or more contributor license agreements. See the NOTICE file > >> +distributed with this work for additional information > >> +regarding copyright ownership. The ASF licenses this file > >> +to you under the Apache License, Version 2.0 (the > >> +"License"); you may not use this file except in compliance > >> +with the License. You may obtain a copy of the License at > >> + > >> + http://www.apache.org/licenses/LICENSE-2.0 > >> + > >> +Unless required by applicable law or agreed to in writing, > >> +software distributed under the License is distributed on an > >> +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY > >> +KIND, either express or implied. See the License for the > >> +specific language governing permissions and limitations > >> +under the License. > >> +--> > >> + > >> +<project xmlns="http://maven.apache.org/POM/4.0.0" > >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + > >> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > >> http://maven.apache.org/xsd/maven-4.0.0.xsd"> + > >> <modelVersion>4.0.0</modelVersion> > >> + <parent> > >> + <groupId>inheritance</groupId> > >> + <artifactId>empty</artifactId> > >> + <version>1</version> > >> + </parent> > >> + <artifactId>child</artifactId> > >> +</project> > >> \ No newline at end of file > >> > >> http://git-wip-us.apache.org/repos/asf/maven/blob/f684761d/maven-model-bu > >> ild er/src/test/resources/poms/inheritance/empty-expected.xml > >> ---------------------------------------------------------------------- > >> diff > >> --git > >> a/maven-model-builder/src/test/resources/poms/inheritance/empty-expected. > >> xm > >> l > >> b/maven-model-builder/src/test/resources/poms/inheritance/empty-expected. > >> xm > >> l new file mode 100644 > >> index 0000000..eac914a > >> --- /dev/null > >> +++ > >> b/maven-model-builder/src/test/resources/poms/inheritance/empty-expected. > >> xm > >> l @@ -0,0 +1,39 @@ > >> +<?xml version="1.0" encoding="UTF-8"?> > >> + > >> +<!-- > >> +Licensed to the Apache Software Foundation (ASF) under one > >> +or more contributor license agreements. See the NOTICE file > >> +distributed with this work for additional information > >> +regarding copyright ownership. The ASF licenses this file > >> +to you under the Apache License, Version 2.0 (the > >> +"License"); you may not use this file except in compliance > >> +with the License. You may obtain a copy of the License at > >> + > >> + http://www.apache.org/licenses/LICENSE-2.0 > >> + > >> +Unless required by applicable law or agreed to in writing, > >> +software distributed under the License is distributed on an > >> +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY > >> +KIND, either express or implied. See the License for the > >> +specific language governing permissions and limitations > >> +under the License. > >> +--> > >> + > >> +<project xmlns="http://maven.apache.org/POM/4.0.0" > >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + > >> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > >> http://maven.apache.org/xsd/maven-4.0.0.xsd"> + > >> <modelVersion>4.0.0</modelVersion> > >> + <parent> > >> + <groupId>inheritance</groupId> > >> + <artifactId>empty</artifactId> > >> + <version>1</version> > >> + </parent> > >> + <groupId>inheritance</groupId> > >> + <artifactId>child</artifactId> > >> + <version>1</version> > >> + <url></url> > >> + <scm> > >> + <connection>scm:my-scm:http://domain.org/base/child</connection> > >> + > >> <developerConnection>scm:my-scm:https://domain.org/base/child/</developer > >> Co > >> nnection> + <url></url> > >> + </scm> > >> +</project> > >> \ No newline at end of file > >> > >> http://git-wip-us.apache.org/repos/asf/maven/blob/f684761d/maven-model-bu > >> ild er/src/test/resources/poms/inheritance/empty-parent.xml > >> ---------------------------------------------------------------------- > >> diff > >> --git > >> a/maven-model-builder/src/test/resources/poms/inheritance/empty-parent.xm > >> l > >> b/maven-model-builder/src/test/resources/poms/inheritance/empty-parent.xm > >> l > >> new file mode 100644 > >> index 0000000..8e94403 > >> --- /dev/null > >> +++ > >> b/maven-model-builder/src/test/resources/poms/inheritance/empty-parent.xm > >> l > >> @@ -0,0 +1,37 @@ > >> +<?xml version="1.0" encoding="UTF-8"?> > >> + > >> +<!-- > >> +Licensed to the Apache Software Foundation (ASF) under one > >> +or more contributor license agreements. See the NOTICE file > >> +distributed with this work for additional information > >> +regarding copyright ownership. The ASF licenses this file > >> +to you under the Apache License, Version 2.0 (the > >> +"License"); you may not use this file except in compliance > >> +with the License. You may obtain a copy of the License at > >> + > >> + http://www.apache.org/licenses/LICENSE-2.0 > >> + > >> +Unless required by applicable law or agreed to in writing, > >> +software distributed under the License is distributed on an > >> +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY > >> +KIND, either express or implied. See the License for the > >> +specific language governing permissions and limitations > >> +under the License. > >> +--> > >> + > >> +<project xmlns="http://maven.apache.org/POM/4.0.0" > >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + > >> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > >> http://maven.apache.org/xsd/maven-4.0.0.xsd"> + > >> <modelVersion>4.0.0</modelVersion> > >> + <groupId>inheritance</groupId> > >> + <artifactId>empty</artifactId> > >> + <version>1</version> > >> + <modules> > >> + <module>child</module> > >> + </modules> > >> + <url></url> > >> + <scm> > >> + <connection>scm:my-scm:http://domain.org/base</connection> > >> + > >> <developerConnection>scm:my-scm:https://domain.org/base/</developerConnec > >> ti > >> on> + <url></url> > >> + </scm> > >> +</project> > >> \ No newline at end of file > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > Thanks, > > Jason > > ---------------------------------------------------------- > Jason van Zyl > Founder, Takari and Apache Maven > http://twitter.com/jvanzyl > http://twitter.com/takari_io > --------------------------------------------------------- > > Our achievements speak for themselves. What we have to keep track > of are our failures, discouragements and doubts. We tend to forget > the past difficulties, the many false starts, and the painful > groping. We see our past achievements as the end result of a > clean forward thrust, and our present difficulties as > signs of decline and decay. > > -- Eric Hoffer, Reflections on the Human Condition > > > > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
