Review Board 1.7.22


osapi.container.Service.apiPath defaults to the wrong rpc endpoint

Review Request #1540 - Created Aug. 16, 2011 and submitted

Ryan Baxter
SHINDIG-1577
Reviewers
shindig
ddumont, mhermanto, sieverssj_do_not_use
shindig
osapi.container.Service.apiPath defaults to the wrong rpc endpoint, it points to Googles endpoint and not the one in Shindig. If the container does not pass in an API_Path variable in its configuration we could possible use the wrong one.

 
http://svn.apache.org/repos/asf/shindig/trunk/features/src/main/javascript/features/container/service.js
Revision 1158436 New Change
[20] 39 lines
[+20]
40
  /**
40
  /**
41
   * @type {string}
41
   * @type {string}
42
   * @private
42
   * @private
43
   */
43
   */
44
  this.apiPath_ = String(osapi.container.util.getSafeJsonValue(config,
44
  this.apiPath_ = String(osapi.container.util.getSafeJsonValue(config,
45
      osapi.container.ServiceConfig.API_PATH, '/api/rpc/cs'));
45
      osapi.container.ServiceConfig.API_PATH, '/rpc'));
46

    
   
46

   
47
  /**
47
  /**
48
   * Map of gadget URLs to cached gadgetInfo response.
48
   * Map of gadget URLs to cached gadgetInfo response.
49
   * @type {Object}
49
   * @type {Object}
50
   * @private
50
   * @private
[+20] [20] 357 lines
  1. http://svn.apache.org/repos/asf/shindig/trunk/features/src/main/javascript/features/container/service.js: Loading...