jahaziel17 / wro4j

Automatically exported from code.google.com/p/wro4j
0 stars 0 forks source link

java.lang.StringIndexOutOfBoundsException: at org.webjars.WebJarAssetLocator.aggregateFile() #789

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add the following code sniplet to a Maven project:

            <plugin>
                <groupId>ro.isdc.wro4j</groupId>
                <artifactId>wro4j-maven-plugin</artifactId>
                <version>1.7.0</version>
                <executions>
                    <execution>
                        <phase>compile</phase>
                        <goals>
                            <goal>jshint</goal>
                            <goal>csslint</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <targetGroups>all</targetGroups>
                    <contextFolder>${basedir}/src/main/webapp</contextFolder>
                    <wroManagerFactory>ro.isdc.wro.maven.plugin.manager.factory.ConfigurableWroManagerFactory</wroManagerFactory>
                    <options>bitwise,camelcase,eqeqeq,forin,immed,latedef,newcap,noempty,noarg,quotmark,undef,unused="vars",strict,trailing,browser,node,jquery,devel</options>
                    <!--
                        indent=2
                    -->
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>wagon-maven-plugin</artifactId>
                <version>1.0-beta-4</version>
                <executions>
                    <execution>
                        <id>download-js</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>download-single</goal>
                        </goals>
                        <configuration>
                            <url>https://raw.github.com/kriskowal/q/v0.9.7/</url>
                            <fromFile>q.js</fromFile>
                            <toDir>${project.build.outputDirectory}/META-INF/resources/webjars/com.github.kriskowal.q/</toDir>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

What is the expected output? What do you see instead?

wro4j is expected to run the js and css validator, instead it throws an 
exception.

What version of the product are you using? On what operating system?

1.7.0 under Windows 7.

Please provide any additional information below.

This crash is caused by the existence of /target/classes/META-INF/** on the 
filesystem (outside of a JAR file). Renaming this directory causes the 
exception to go away.

Original issue reported on code.google.com by cow...@bbs.darktech.org on 26 Sep 2013 at 4:22

GoogleCodeExporter commented 8 years ago
This issue is failing on version 1.7.1 as well.

Original comment by cow...@bbs.darktech.org on 26 Sep 2013 at 4:25

GoogleCodeExporter commented 8 years ago
This is actually a bug in webjar library. I'll open an issue on their issue 
tracker. 

Original comment by alex.obj...@gmail.com on 26 Sep 2013 at 6:48

GoogleCodeExporter commented 8 years ago
Created issue on webjar-locator project issue tracker: 
https://github.com/webjars/webjars-locator/issues/25

Original comment by alex.obj...@gmail.com on 26 Sep 2013 at 6:51

GoogleCodeExporter commented 8 years ago

Original comment by alex.obj...@gmail.com on 5 Nov 2013 at 1:55

GoogleCodeExporter commented 8 years ago
Fixed in branch 1.7.x

Original comment by alex.obj...@gmail.com on 17 Nov 2013 at 8:38