Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-3072

CapabilityRegistry.suggest-capabilities issue on Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.0.Beta29
    • None
    • Management
    • None

      The test added by WFLY-8990 highlight a problem on windows.
      A path containing a ':' makes Paths.get to fail. (Eg: profile/clone-profile-test-case-default/subsystem/mail/mail-session/java:jboss/mail/Default)

      [Host Controller] 12:00:52,091 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 3) WFLYCTL0013: Operation ("suggest-capabilities") failed - address: ([
      [Host Controller] ("host" => "master"),
      [Host Controller] ("core-service" => "capability-registry")
      [Host Controller] ]): java.nio.file.InvalidPathException: Illegal char <:> at index 73: /profile/clone-profile-test-case-default/subsystem/mail/mail-session/java:jboss/mail/Default
      [Host Controller] at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
      [Host Controller] at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
      [Host Controller] at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
      [Host Controller] at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
      [Host Controller] at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
      [Host Controller] at java.nio.file.Paths.get(Paths.java:84)
      [Host Controller] at org.jboss.as.controller.CapabilityRegistry.lambda$null$4(CapabilityRegistry.java:952)
      [Host Controller] at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
      [Host Controller] at java.util.Iterator.forEachRemaining(Iterator.java:116)
      [Host Controller] at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)

              jdenise@redhat.com Jean Francois Denise
              jdenise@redhat.com Jean Francois Denise
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: