[esb-issues] [JBoss JIRA] (JBESB-3880) Changes to jUDDI initialisation code to allow use of spaces within directories

Kevin Conner (JIRA) jira-events at lists.jboss.org
Fri Nov 16 14:21:21 EST 2012


     [ https://issues.jboss.org/browse/JBESB-3880?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Conner updated JBESB-3880:
--------------------------------

    Description: 
The jUDDI code requires a correctly encoded URI to be passed but we are not escaping them correctly.  The attached changes need to be made.


  was:
The jUDDI code requires a correctly encoded URI to be passed but we are not escaping them correctly.  The following changes need to be made

Index: rosetta/src/org/jboss/internal/soa/esb/dependencies/JuddiClientService.java
===================================================================
--- rosetta/src/org/jboss/internal/soa/esb/dependencies/JuddiClientService.java (revision 38248)
+++ rosetta/src/org/jboss/internal/soa/esb/dependencies/JuddiClientService.java (working copy)
@@ -130,7 +130,7 @@
          }
 
          System.setProperty("javax.xml.registry.ConnectionFactoryClass","org.apache.ws.scout.registry.ConnectionFactoryImpl");
-         manager = new UDDIClerkManager(uddiClientResourceFile.getAbsolutePath());
+         manager = new UDDIClerkManager(uddiClientResourceFile.getAbsoluteFile().toURI().toString());
          // addClerkManager must precede manager.start() to avoid a race in jUDDI, do not change this order.
          UDDIClientContainer.addClerkManager(manager) ;
          manager.start();
Index: rosetta/src/org/jboss/internal/soa/esb/dependencies/JuddiRMIService.java
===================================================================
--- rosetta/src/org/jboss/internal/soa/esb/dependencies/JuddiRMIService.java    (revision 38248)
+++ rosetta/src/org/jboss/internal/soa/esb/dependencies/JuddiRMIService.java    (working copy)
@@ -139,7 +139,7 @@
             juddiPropertyOS.close() ;
         }
         
-        System.setProperty("juddi.propertiesFile", juddiPropertyFile.getAbsolutePath());
+        System.setProperty("juddi.propertiesFile", juddiPropertyFile.getAbsoluteFile().toURI().toString());
         
         Registry.start();


    
> Changes to jUDDI initialisation code to allow use of spaces within directories
> ------------------------------------------------------------------------------
>
>                 Key: JBESB-3880
>                 URL: https://issues.jboss.org/browse/JBESB-3880
>             Project: JBoss ESB
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Registry and Repository
>    Affects Versions: 4.11 CP2
>            Reporter: Kevin Conner
>            Assignee: Tom Cunningham
>         Attachments: juddi.patch
>
>
> The jUDDI code requires a correctly encoded URI to be passed but we are not escaping them correctly.  The attached changes need to be made.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the esb-issues mailing list