Skip to content

Malformed URL for tag dependant #25

@Maldivia

Description

@Maldivia

The dependants added in TagFileLoaderVisitor.visit() are invalid URLs, causing new URL(key) in Compiler.isOutDated() to fail with MalformedURLException, falling back to assuming that they are outdated.

Example path generated: "jar:/WEB-INF/lib/library.jar!/META-INF/sample.tld"
Causing the following exception:

DEBUG [org.apache.jasper.compiler] (default task-7) Problem accessing resource. Treat as outdated.: java.net.MalformedURLException: invalid url: /WEB-INF/lib/library.jar!/META-INF/sample.tld (java.net.MalformedURLException: no protocol: /WEB-INF/lib/library.jar)
    at java.net.URL.<init>(URL.java:620)
    at java.net.URL.<init>(URL.java:483)
    at java.net.URL.<init>(URL.java:432)
    at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:491)
    at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:406)
    (...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions