Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-12185

CapabilityRegistry.suggest-capabilities issue on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Verified (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.1.0.ER2
    • Fix Version/s: 7.1.0.ER3
    • Component/s: Management
    • Labels:
      None

      Description

      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)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jdenise Jean Francois Denise
              Reporter:
              mkopecky Marek Kopecky
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: