function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kshuk-canonicalkshuk-canonical 

bug in AJAX toolkit 9.0 re: LoginScopeHeader

I've found what looks to be a bug in AJAX toolkit 9.0 -

On line 1408 of connection.js, we have this if block handling the organizationId element of the LoginScopeHeader:

Code:
if (this.organizationId !== null) {
writer.writeStartElement("LoginScopeHeader", headerNs);
writer.writeNameValueNode("organizationId", this.sessionId);
writer.writeEndElement("LoginScopeHeader", headerNs);
}

The third line of this block tries to write the sessionId as the value for the organizationId header. This is almost certainly a cut & paste oversight is it sits amongst several similar blocks for the other headers, and the one for sessionId directly precedes this one.

I believe that third line should read:

Code:
    writer.writeNameValueNode("organizationId", this.organizationId);
--Kevin
 

Message Edited by kshuk-canonical on 05-01-200708:42 AM

cheenathcheenath
Yes, this is a bug. Thanks for reporting this bug.
This will be fixed in the next release.

Thanks,