Author: johnh
Date: Thu Jul 23 01:22:31 2009
New Revision: 796920
URL: http://svn.apache.org/viewvc?rev=796920&view=rev
Log:
Fix for case where container config has rpc_relay defined to a value that
!startsWith("/") and parent= param is omitted altogether.
Modified:
incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js
Modified:
incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js
URL:
http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js?rev=796920&r1=796919&r2=796920&view=diff
==============================================================================
--- incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js
(original)
+++ incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js
Thu Jul 23 01:22:31 2009
@@ -411,7 +411,7 @@
// Relative path: we append to the parent.
// We're relying on the server validating the parent parameter in this
// case. Because of this, parent may only be passed in the query, not
fragment.
- if (params.parent !== "") {
+ if (typeof params.parent === "string" && params.parent !== "") {
// Otherwise, relayUrl['..'] will be null, signaling transport
// code to ignore rpc calls since they cannot work without a
// relay URL with host qualification.