Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Bug with actionURL and loadScreen

    I am trying to load a screen from a custom servlet like this:

    Code:
    RPCRequest req = new RPCRequest();
    req.setActionURL("/screen/loader");
    RPCManager.loadScreen("Portal", new LoadScreenCallback() {
    @Override
    public void execute() {
    ...
    }
    }, globalIds, req);
    This is the output of the debug console for this request:
    Code:
    {
        "actionURL":"http://localhost:8080/product/gwt/com.aCompany.Main/sc/screenLoader", 
        "showPrompt":false, 
        "transport":"xmlHttpRequest", 
        "useSimpleHttp":true, 
        "promptStyle":"cursor", 
        "params":{
            "screenName":"Portal", 
            "locale":{
                "actionURL":"/screen/loader"
            }
        }
    }
    It seems, changing the action URL fails, it did not change at all. For strange reasons, an actionURL parameter is part of the locale instead.

    Another example where I added an additional parameter to the request:

    Code:
    {
        "actionURL":"http://localhost:8080/product/gwt/com.aCompany.Main/sc/screenLoader", 
        "showPrompt":false, 
        "transport":"xmlHttpRequest", 
        "useSimpleHttp":true, 
        "promptStyle":"cursor", 
        "params":{
            "screenName":"Portal", 
            "locale":{
                "params":{
                    "someParam":"hola"
                }, 
                "actionURL":"/screen/loader"
            }
        }
    }
    SmartClient Version: v8.3p_2013-05-09/PowerEdition Deployment (built 2013-05-09) DEV+PROD mode
    FF 20.0.1
    Chrome Version 26.0.1410.64 m

    #2
    What's in your parameter "req"? That seems to be where the weirdly nested params would be coming from.

    Comment


      #3
      Well, the second (and last) debug output was just meant to bring some more clarity on what happens.

      Code:
      RPCRequest req = new RPCRequest();
      
      // HashMap params = new HashMap();
      // params.put("someParam", "hola");
      // req.setParams(params);
      req.setActionURL("/screen/loader");
      The commented code generated the first debug output posted here, the uncommented version the second.

      Comment


        #4
        Ah. We see what the problem is, should be fixed shortly.

        Comment


          #5
          We've made a change which should address this issue. Can you please re test against the next nightly build (dated May 15)
          If the issue persists let us know

          Thanks
          Isomorphic Software

          Comment


            #6
            Sorry, no changes in the request (the error is still there).

            SmartClient Version: v8.3p_2013-05-15/PowerEdition Deployment (built 2013-05-15)

            Comment


              #7
              We just re-tested against the May 16th build - looks like the fix may have missed the May 15th cut off time.
              Could you try that build (and be sure to clear your cache / recompile and check the version information reported by the build if you do see the problem).

              If it persists we may need to see a test case

              Thanks
              Isomorphic Software

              Comment


                #8
                OK, so now the actionURL works correctly, the "screenName" parameter is forwarded correctly, but if additional parameters are specified, they are omitted (cf. my post of 10th May 2013 08:46).

                Comment


                  #9
                  We've found the culprit for this and made a change to address it. Please try the next nightly build dated May 25 or above

                  Comment

                  Working...
                  X