[
https://issues.apache.org/jira/browse/JUDDI-444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kurt T Stam closed JUDDI-444.
-----------------------------
Resolution: Fixed
rejecting an empty string as well.
> tModel with empty name should not be saved
> ------------------------------------------
>
> Key: JUDDI-444
> URL: https://issues.apache.org/jira/browse/JUDDI-444
> Project: jUDDI
> Issue Type: Bug
> Components: core
> Affects Versions: 3.0.4
> Reporter: Lyudmil Latinov
> Assignee: Kurt T Stam
> Fix For: 3.0.5
>
>
> As per 3.6.2 Structure diagram "name" is mandatory for tModel. Also name
> should be non-empty - I'm coming with this conclusion from "While the tModel
> has exactly one non-empty name ..." in 3.6.3 Documentation.
> Currently it is possible to save tModel with empty name:
> <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
> <Body>
> <save_tModel xmlns="urn:uddi-org:api_v3">
>
> <authInfo>authtoken:f564f3db-f690-414f-97f9-71a410905758</authInfo>
> <tModel tModelKey="">
> <name/>
> </tModel>
> </save_tModel>
> </Body>
> </Envelope>
> This could be fixed in ValidatePublish.java - public void validateTModel
> from "if (tModel.getName() == null)" to "if (tModel.getName() == null ||
> tModel.getName().getValue().length() == 0)"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.