flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harbs <harbs.li...@gmail.com>
Subject Re: FlexJS RemoteObject with ColdFusion
Date Sat, 16 Sep 2017 19:50:03 GMT
I was thinking about this, and I’m wondering how well minified typed classes will actually
survive. Even if symbols are exported, the internal names are very often minified.

Has anyone tested that minified classes are actually serialized correctly?

Harbs

> On Sep 15, 2017, at 6:32 PM, Alex Harui <aharui@adobe.com.INVALID> wrote:
> 
> Actually, that <inject_html> shouldn't be there any more.  We have back
> ported amfjs to ActionScript.
> 
> But it is true that passing regular objects probably won't survive
> minification unless you use obj["propName"] or better yet, define a data
> type class (ValueObject).
> 
> One way to see if it is minification related is to run the version in
> bin/js-debug instead of bin/js-release.  If the js-debug version works
> then you can be pretty sure it is minification related.
> 
> Otherwise, maybe we need to know more about the runtime environment.
> Which OS and browser is being used, and things like that.
> 
> Thanks,
> -Alex
> 
> On 9/15/17, 8:22 AM, "Harbs" <harbs.lists@gmail.com <mailto:harbs.lists@gmail.com>>
wrote:
> 
>> Yes. All references to the outer script properties must be by using
>> bracket notation unless we have externs for that.
>> 
>> Harbs
>> 
>>> On Sep 15, 2017, at 5:52 PM, Piotr Zarzycki <piotrzarzycki21@gmail.com>
>>> wrote:
>>> 
>>> Hi Harbs,
>>> 
>>> I just did quick look into RemoteObject class and I see that there is JS
>>> library injected for AMF. If this is an outer script - can it be
>>> influenced
>>> by renaming?
>>> 
>>> Thanks,
>>> Piotr
>>> 
>>> On Fri, Sep 15, 2017, 13:59 Harbs <harbs.lists@gmail.com> wrote:
>>> 
>>>> You probably have minification renaming problems.
>>>> 
>>>> I have not tried RemoteObject, so it’s possible there are problems
>>>> there,
>>>> but...
>>>> 
>>>> Check if you have untyped objects and/or object literals.
>>>> 
>>>> For untyped objects, you should use myObj[“myProp”] rather than
>>>> myObj.myProp.
>>>> 
>>>> For object literals you need to quote the object keys:
>>>> 
>>>> var myObj = {
>>>>       “name”:”Foo”,
>>>>       “age”:5
>>>> }
>>>> rather than:
>>>> 
>>>> var myObj = {
>>>>       name:”Foo”,
>>>>       age:5
>>>> }
>>>> 
>>>> 
>>>> HTH,
>>>> Harbs
>>>> 
>>>>> On Sep 15, 2017, at 11:28 AM, doug777 <doug777twn@gmail.com> wrote:
>>>>> 
>>>>> In the Firefox web console I see this :
>>>>> 
>>>>> destination fault handler Object { code: -1004, message: "Invalid
>>>> response
>>>>> type.", detail: "Invalid XMLHttpRequest response sta…", data: null
}
>>>>> Language.js:238:7
>>>>> 
>>>>> Doug
>>>>> 
>>>>> 
>>>>> 
>>>>> --
>>>>> Sent from: 
>>>>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-
<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache->
>>>>> flex-users.2333346.n4.nabble.com <http://flex-users.2333346.n4.nabble.com/>%2F&data=02%7C01%7C%7Cd5f274df195447338
>>>>> 5ad08d4fc4da369%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6364108577
>>>>> 62696957&sdata=ZV4X7gVUIVh2R4Y8RAQiAcvARiat8h6p%2BVTcK4SQpIU%3D&reserve
>>>>> d=0


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message