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

getTModelDetail bug

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.9rc3
    • 2.0rc5
    • None
    • None

    Description

      There's a bug in getTModelDetail UDDI operation, it's in the org.apache.juddi.datastore.jdbc.JDBCDataStore class's fetchTModel method, when fech the TModel's IdentifierBag the code should be:

      Vector idVector = TModelIdentifierTable.select(tModelKey,connection);
      if (idVector != null && idVector.size() != 0)

      { IdentifierBag idBag = new IdentifierBag(); idBag.setKeyedReferenceVector(idVector); tModel.setIdentifierBag(idBag); }

      but the original code is:

      Vector idVector = TModelIdentifierTable.select(tModelKey,connection);
      if (idVector != null)

      { IdentifierBag idBag = new IdentifierBag(); idBag.setKeyedReferenceVector(idVector); tModel.setIdentifierBag(idBag); }

      it doesn't follow the UDDI.xsd when retured to client side and will cause a exception.

      Attachments

        Activity

          People

            sviens Stephen Viens
            xdsmile Alex
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: