OpenJPA
  1. OpenJPA
  2. OPENJPA-2334

OpenJPA must support processing puRoot & jar-file URLs as jar-formatted InputStreams

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.2, 2.3.0
    • Fix Version/s: 2.2.2, 2.3.0
    • Component/s: jpa
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      TheJPA Specification states in the javadoc for javax.persistence.spi.PersistenceUnitInfo methods getJarFileUrls() and getPersistenceUnitRootUrl():

      "A URL will either be a file: URL referring to a jar file or referring to a directory that contains an exploded jar file, or some other URL from which an InputStream in jar format can be obtained."

      Currently the method OpenJPA uses to identify PCTypes does not completely meet the specification requirements, and needs to be adapted to support non-file/jar URLs that provide jar-formatted InputStreams.

        Activity

        Hide
        Pinaki Poddar added a comment -

        The patch has some hardcoded error messages. They should be localized.

        Show
        Pinaki Poddar added a comment - The patch has some hardcoded error messages. They should be localized.
        Hide
        Jody Grassel added a comment -

        Commits r1446295 for 2.2.x and 1446294 for trunk.

        Show
        Jody Grassel added a comment - Commits r1446295 for 2.2.x and 1446294 for trunk.

          People

          • Assignee:
            Jody Grassel
            Reporter:
            Jody Grassel
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development