Uploaded image for project: 'jUDDI (Retired)'
  1. jUDDI (Retired)
  2. JUDDI-444

tModel with empty name should not be saved

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.4
    • 3.1.0
    • core
    • None

    Description

      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)"

      Attachments

        Activity

          People

            kstam Kurt Stam
            latinov Lyudmil Latinov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: