juddi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shawn Jiang (JIRA)" <juddi-...@ws.apache.org>
Subject [jira] [Updated] (JUDDI-522) org.apache.juddi.config.Install.getPublishers(Configuration) should check if the entries in jar is started with basePath
Date Sat, 10 Sep 2011 16:00:09 GMT

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

Shawn Jiang updated JUDDI-522:
------------------------------

    Attachment: JUDDI-522.patch

> 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

        

Mime
View raw message