Uploaded image for project: 'Scout (Retired)'
  1. Scout (Retired)
  2. SCOUT-34

DiscoveryURLs aren't constructed correctly when there is more than 1 discoveryURLs for a businessEntity

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.0rc1
    • Scout Implementation
    • None
    • win XP + sun 1.5 SDK

    Description

      This was working fine for scout 0.5, but not with the latest trunk. If a businessEntity contains more than one discoveryURLs, it will be constructed as this:

      <urn:discoveryURLs>
      <urn:discoveryURL useType="businessEntityExt">http://localhost:8080/page2.html
      </urn:discoveryURL>
      </urn:discoveryURLs>
      <urn:discoveryURLs>
      <urn:discoveryURL useType="businessEntityExt">http://localhost:8080/page1.html
      </urn:discoveryURL>
      </urn:discoveryURLs>

      This will cause prob in juddi when abstractservice doPost is called and one of the discoveryURLs won't get processed and will be lost. The fix is to call biz.addNewDiscoveryURLs() only once per iteration (result below) so that only same as scout 0.5.

      <urn:discoveryURLs>
      <urn:discoveryURL useType="businessEntityExt">http://localhost:8080/page2.html
      </urn:discoveryURL>
      <urn:discoveryURL useType="businessEntityExt">http://localhost:8080/page1.html
      </urn:discoveryURL>
      </urn:discoveryURLs>

      Attachments

        1. scout34.patch
          2 kB
          Lin Sun

        Activity

          People

            anil Anil Saldhana
            linsun Lin Sun
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: