[ 
https://issues.apache.org/jira/browse/JUDDI-522?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kurt T Stam closed JUDDI-522.
-----------------------------

    Resolution: Cannot Reproduce

Hi Shawn,

We support the use of one of two directories: 'juddi_install_data' or 
'juddi_custom_install_data'. So the entry *always* needs to start with a 
'basePath'. 

Please reopen if I am not understanding the bug report correctly.

Thx,

--Kurt

> org.apache.juddi.config.Install.getPublishers(Configuration)  should check if 
> the entries in jar is started with basePath
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JUDDI-522
>                 URL: https://issues.apache.org/jira/browse/JUDDI-522
>             Project: jUDDI
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.1.0
>            Reporter: Shawn Jiang
>            Assignee: Kurt T Stam
>         Attachments: JUDDI-522.patch
>
>
> org.apache.juddi.config.Install.getPublishers(Configuration)  only check if 
> the entries in jar is ended with "_Publisher.xml"  and to ahead to use
> String publisher = 
> name.substring(basePath.length(),name.indexOf(FILE_PUBLISHER));
> to get the publisher.   
> It's not correct when the entry is not started with basePath.    following 
> check logic could fix this issue.
> if (name.startsWith(basePath)&& name.endsWith(FILE_PUBLISHER)) {
> xxxx
> String publisher = 
> name.substring(basePath.length(),name.indexOf(FILE_PUBLISHER));
> }

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to