https://bz.apache.org/bugzilla/show_bug.cgi?id=65778

Gael Lalire <gael.lal...@gaellalire.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WONTFIX                     |---

--- Comment #2 from Gael Lalire <gael.lal...@gaellalire.fr> ---
If you convert a URL to a string and then back to URL you will lose a specific
URLHandler.
I'm using a specific URLHandler it allows me to open, read, and verify a jar
against a checksum (sha512) once. The jar data is then kept in memory 
channel.map(MapMode.PRIVATE, 0, size), so I'm sure that tomcat parsers are
getting the signed data.

To get it working I put in the URL string something like
m2://groupid/artifactid/version so it will reopen the file from .m2/repository
but the data may not be correct.

If you want to keep other format you can create a class like this :

class URLorString {
  URL url;
  String string;

  getURL() {
    url != null ? url : new URL(string)
  }
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to