Uploaded image for project: 'WSS4J'
  1. WSS4J
  2. WSS-692

Timestamp of content in jar-files are invalid.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.4.0
    • 2.4.1
    • WSS4J Core
    • None
    • Important

    Description

      This is the content from wss4j-bindings-2.4.0.jar:

      -rw-r--r--  2.0 unx     1498 b- defN 80-000-00 04:08 META-INF/MANIFEST.MF
      drwxr-xr-x  2.0 unx        0 b- stor 80-000-00 04:08 META-INF/
      drwxr-xr-x  2.0 unx        0 b- stor 80-000-00 04:08 org/
      drwxr-xr-x  2.0 unx        0 b- stor 80-000-00 04:08 org/apache/
      drwxr-xr-x  2.0 unx        0 b- stor 80-000-00 04:08 org/apache/wss4j/
      drwxr-xr-x  2.0 unx        0 b- stor 80-000-00 04:08 org/apache/wss4j/binding/
      drwxr-xr-x  2.0 unx        0 b- stor 80-000-00 04:08 org/apache/wss4j/binding/wss10/
      drwxr-xr-x  2.0 unx        0 b- stor 80-000-00 04:08 org/apache/wss4j/binding/wss11/
      drwxr-xr-x  2.0 unx        0 b- stor 80-000-00 04:08 org/apache/wss4j/binding/wssc/
      drwxr-xr-x  2.0 unx        0 b- stor 80-000-00 04:08 org/apache/wss4j/binding/wssc13/
      drwxr-xr-x  2.0 unx        0 b- stor 80-000-00 04:08 org/apache/wss4j/binding/wssc200502/
      drwxr-xr-x  2.0 unx        0 b- stor 80-000-00 04:08 org/apache/wss4j/binding/wsu10/
      drwxr-xr-x  2.0 unx        0 b- stor 80-000-00 04:08 META-INF/maven/
      drwxr-xr-x  2.0 unx        0 b- stor 80-000-00 04:08 META-INF/maven/org.apache.wss4j/
      drwxr-xr-x  2.0 unx        0 b- stor 80-000-00 04:08 META-INF/maven/org.apache.wss4j/wss4j-bindings/
      -rw-r--r--  2.0 unx     1410 b- defN 80-000-00 04:08 META-INF/DEPENDENCIES
      -rw-r--r--  2.0 unx    11358 b- defN 80-000-00 04:08 META-INF/LICENSE
      -rw-r--r--  2.0 unx      190 b- defN 80-000-00 04:08 META-INF/NOTICE 
      ...

      the result is an invalid timestamp in spring-boot applications:

      -rw-r--r--  2.0 unx   335572 b- stor 80-000-00 04:08 BOOT-INF/lib/wss4j-ws-security-dom-2.4.0.jar
      -rw-r--r--  2.0 unx   277594 b- stor 80-000-00 04:08 BOOT-INF/lib/wss4j-ws-security-common-2.4.0.jar
      -rw-r--r--  2.0 unx   212270 b- stor 80-000-00 04:08 BOOT-INF/lib/wss4j-policy-2.4.0.jar
      -rw-r--r--  2.0 unx   410898 b- stor 80-000-00 04:08 BOOT-INF/lib/wss4j-ws-security-stax-2.4.0.jar
      -rw-r--r--  2.0 unx    43090 b- stor 80-000-00 04:08 BOOT-INF/lib/wss4j-bindings-2.4.0.jar
      -rw-r--r--  2.0 unx   131446 b- stor 80-000-00 04:08 BOOT-INF/lib/wss4j-ws-security-policy-stax-2.4.0.jar 

      and that prevents spring-boot to start

      Exception in thread "main" java.time.DateTimeException: Invalid value for MonthOfYear (valid values 1 - 12): 0 at
          java.time.temporal.ValueRange.checkValidValue(ValueRange.java:311) at
          java.time.temporal.ChronoField.checkValidValue(ChronoField.java:703) at
          java.time.LocalDate.of(LocalDate.java:267) at
          java.time.LocalDateTime.of(LocalDateTime.java:336) at
          org.springframework.boot.loader.jar.CentralDirectoryFileHeader.decodeMsDosFormatDateTime(CentralDirectoryFileHeader.java:130) at
          org.springframework.boot.loader.jar.CentralDirectoryFileHeader.getTime(CentralDirectoryFileHeader.java:119) at
          org.springframework.boot.loader.jar.JarEntry.<init>(JarEntry.java:55) at
          org.springframework.boot.loader.jar.JarFileEntries.getEntry(JarFileEntries.java:328) at
          org.springframework.boot.loader.jar.JarFileEntries.access$400(JarFileEntries.java:48) at
          org.springframework.boot.loader.jar.JarFileEntries$EntryIterator.next(JarFileEntries.java:379) at
          org.springframework.boot.loader.jar.JarFileEntries$EntryIterator.next(JarFileEntries.java:363) at
          org.springframework.boot.loader.jar.JarFile$2.nextElement(JarFile.java:198) at
          org.springframework.boot.loader.jar.JarFile$2.nextElement(JarFile.java:189) at
          org.springframework.boot.loader.archive.JarFileArchive$EntryIterator.next(JarFileArchive.java:186) at
          org.springframework.boot.loader.archive.JarFileArchive$EntryIterator.next(JarFileArchive.java:171) at
          org.springframework.boot.loader.archive.JarFileArchive.getNestedArchives(JarFileArchive.java:84) at
          org.springframework.boot.loader.ExecutableArchiveLauncher.getClassPathArchives(ExecutableArchiveLauncher.java:70) at
          org.springframework.boot.loader.Launcher.launch(Launcher.java:49) at
          org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
      

      Attachments

        1. WSS-692-test-case.tgz
          1 kB
          Schömer Jörg

        Activity

          People

            coheigea Colm O hEigeartaigh
            schoemer@adesso.de Schömer Jörg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: