Re: [4/6] git commit: [flex-asjs] [refs/heads/develop] - replace existing format bead if it exists

2017-04-17 Thread Alex Harui


On 4/17/17, 9:48 PM, "Justin Mclean"  wrote:

>Hi,
>
>> That would imply a bug elsewhere DateField.
>
>DateField consist of 3 functions addedToParent and a selectedDate
>setter/getter. How would you fix this bug?
>
>>  The pattern all components
>> should be using is to define an interface for a class of beads, maybe
>> something like IDateFormatBead.
>
>It does exactly this it uses IFormatBead. See the (unmodified) code in
>addedToParent in particular this line:
>var klass:* = ValuesManager.valuesImpl.getValue(this,"iFormatBead");
>
>> Then the code, usually in addedToParent()
>> should use getBeadByType() to see if there is an IDateFormatBead and
>>only
>> if there isn't should it go see if there is a default in CSS.
>
>So addedToParent should call getBeadByType rather than getValue? The
>method was original written by you I believe.

The recommended pattern is in UIBase and hopefully elsewhere:

  if (getBeadByType(IBeadController) == null)
  {
c = ValuesManager.valuesImpl.getValue(this, "iBeadController") as
Class;
if (c)
{
  var controller:IBeadController = new c as IBeadController;
  if (controller)
addBead(controller);
}
  }

There are variants where you do something like:

  var controller:IBeadController = getBeadByType(IBeadController);
  If (controller == null)
  {
c = ValuesManager.valuesImpl.getValue(this, "iBeadController") as
Class;
if (c)
{
   controller = new c as IBeadController;
   if (controller)
 addBead(controller);
}
  }




>
>> I noticed that there was a commit that changed the default date format
>> away from US format.
>
>For dates like 04-12-2017 most of the world would read that as 4th of
>December not the 12th of April. See
>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fen.wikipe
>dia.org%2Fwiki%2FDate_format_by_country=02%7C01%7C%7Cb00df717e4ad4d4e
>d42608d48616350a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636280877325
>813359=4oxuGnBG08JW%2BHE03kWBVfgsGFg2hu3eIEFj63j4MjI%3D=0
>
>> How did we manage the default format in regular Flex?
>
>It was locale dependant (specified in the shared resources resource
>file), currently FlexJS doesn’t support resource files.

Do we need resources in order to make a locale-dependant DateFormat bead?
IMO, with PAYG, you could bake in a specific format that doesn't have to
query the current locale or choose one that does.  It looks like the Intl
class is pretty well supported on JS these days?  Would that and
flash.globalization "do the right thing" without a whole resource
subsystem?

-Alex



Re: [4/6] git commit: [flex-asjs] [refs/heads/develop] - replace existing format bead if it exists

2017-04-17 Thread Justin Mclean
Hi,

> That would imply a bug elsewhere DateField.

DateField consist of 3 functions addedToParent and a selectedDate 
setter/getter. How would you fix this bug?

>  The pattern all components
> should be using is to define an interface for a class of beads, maybe
> something like IDateFormatBead.

It does exactly this it uses IFormatBead. See the (unmodified) code in 
addedToParent in particular this line:
var klass:* = ValuesManager.valuesImpl.getValue(this,"iFormatBead");

> Then the code, usually in addedToParent()
> should use getBeadByType() to see if there is an IDateFormatBead and only
> if there isn't should it go see if there is a default in CSS.

So addedToParent should call getBeadByType rather than getValue? The method was 
original written by you I believe.

> I noticed that there was a commit that changed the default date format
> away from US format.

For dates like 04-12-2017 most of the world would read that as 4th of December 
not the 12th of April. See https://en.wikipedia.org/wiki/Date_format_by_country

> How did we manage the default format in regular Flex?

It was locale dependant (specified in the shared resources resource file), 
currently FlexJS doesn’t support resource files.

Thanks,
Justin

Re: [4/6] git commit: [flex-asjs] [refs/heads/develop] - replace existing format bead if it exists

2017-04-17 Thread Alex Harui


On 4/17/17, 8:31 PM, "Justin Mclean"  wrote:

>HI,
>
>> What is the scenario where everybody will need this code?
>
>If they want to use a date formatter and not have dates displayed as
>“-MM-DD”.
>
>Before these changes dates would be formatted as US style dates by
>default and if you added a different date format bead it would still
>incorrectly display in US date format. Middle endian / US style dates
>should not be the default as they are only used by about 5-10% of the
>world’s population. If you prefer I can change the default to
>"DD/MM/” rather than -MM-DD format  (ISO 8601).
>
>Basically code like this would still display US style dates.
>
>
>
>
>
>
>Reason being that it was just finding the first IFormatBead which was
>defined in the CSS, any other IFormatBead bead the user added would be
>ignored.

That would imply a bug elsewhere DateField.  The pattern all components
should be using is to define an interface for a class of beads, maybe
something like IDateFormatBead. Then the code, usually in addedToParent()
should use getBeadByType() to see if there is an IDateFormatBead and only
if there isn't should it go see if there is a default in CSS.

I noticed that there was a commit that changed the default date format
away from US format.  How did we manage the default format in regular Flex?

-Alex



Re: [4/6] git commit: [flex-asjs] [refs/heads/develop] - replace existing format bead if it exists

2017-04-17 Thread Justin Mclean
HI,

> What is the scenario where everybody will need this code?

If they want to use a date formatter and not have dates displayed as 
“-MM-DD”.

Before these changes dates would be formatted as US style dates by default and 
if you added a different date format bead it would still incorrectly display in 
US date format. Middle endian / US style dates should not be the default as 
they are only used by about 5-10% of the world’s population. If you prefer I 
can change the default to "DD/MM/” rather than -MM-DD format  (ISO 
8601).

Basically code like this would still display US style dates.






Reason being that it was just finding the first IFormatBead which was defined 
in the CSS, any other IFormatBead bead the user added would be ignored.

Thanks,
Justin

Re: FlexSDK 4.16.0 installer errors

2017-04-17 Thread danielmcquillen
...scratch that, I was getting that error b/c I was running in PowerShell.
Running in regular cmd works fine (after updating jce per above instructions
by Alex. Thanks for that!)

- Daniel



--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexSDK-4-16-0-installer-errors-tp60542p61169.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: FlexSDK 4.16.0 installer errors

2017-04-17 Thread danielmcquillen
Hi @Lydecker,

Did you not get a 

   Target "25.0" does not exist in the project "sdk_ide_install".

error when you ran the installer?

Thanks

Daniel



--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexSDK-4-16-0-installer-errors-tp60542p61168.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS] Release cycles

2017-04-17 Thread Justin Mclean
Hi,

There are also several unresolved licensing issues, which from memory are:
- outstanding issues from the last two releases
- JSON license “do no evil” dependancy issue
- possible IP issue (MD5 code) checked in a few weeks ago

Having shorter release cycles IMO would mean it's a lot less work to make a 
release.

Thanks,
Justin

Re: git commit: [flex-asjs] [refs/heads/develop] - CORS security. Allow auth credentials to be passed when using cross site calls. This is required as well as setting the Access-Control-Allow-Origin h

2017-04-17 Thread Justin Mclean
Hi,

> I don't know much about CORS.  If you make a login call in order to
> authenticate the user and the server you call with the login is on a
> different domain, how do you get the transaction to happen if
> withCredentials are false?

The server sets an Access-Control-Allow-Origin header to allow cross domain 
calls. This by default this doesn’t pass credentials / cookies. In the login 
case the user credentials are likely passed in a URL query string (i.e. as form 
variable). Think of your classic login name and password form. It's only future 
requests that require the users authorisation cookie(s) to be passed on and 
that requires withCredentials set to true.

Thanks,
Justin

Re: [1/2] git commit: [flex-asjs] [refs/heads/develop] - - Fix not working numElements - Fix failing internalChildren function when element is undefined

2017-04-17 Thread Alex Harui
Hi Piotr,

Did we ever figure out how internalChildren got called so early that
element was undefined?

-Alex

On 2/9/17, 10:56 AM, "Alex Harui"  wrote:

>
>
>On 2/9/17, 8:38 AM, "piotrz"  wrote:
>
>>Hi Alex,
>>
>>I think the reason that we haven't had problems with numElements is that
>>no
>>one use it before. It's true that compiler should catch it even without
>>using, but it didn't.
>>
>>As for the internalChildren - Sankar in his application did find one
>>scenario with Tabs component where our element was undefined.
>
>Do you have time to figure out why element is undefined?  Adding defensive
>code doesn't scale.  Eventually it adds up to something.  So if 99% of the
>time the defensive code doesn't do anything we want to understand what it
>would take to make it 100% so we can remove that code.
>
>Thanks,
>-Alex
>



Re: git commit: [flex-asjs] [refs/heads/feature/chart-work] - Method getElementAt should return null if element not exists on JS sight

2017-04-17 Thread Alex Harui
Hi Piotr,

I'm wondering why some other code called getElementAt with an invalid
index.  Do we really need defensive code like this?

Thanks,
-Alex

On 4/2/17, 1:54 PM, "pio...@apache.org"  wrote:

>Repository: flex-asjs
>Updated Branches:
>  refs/heads/feature/chart-work de48d638e -> 3d92c1c3a
>
>
>Method getElementAt should return null if element not exists on JS sight
>
>
>Project: 
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgit-wip-us
>.apache.org%2Frepos%2Fasf%2Fflex-asjs%2Frepo=02%7C01%7C%7Cfc958bcc743
>74f70c62908d47a0a81a6%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6362676
>32925352663=FgOBYzB84GNwYjkWLfiPSD%2BqaNm5%2F88apiCeRfspZXg%3D
>ved=0
>Commit: 
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgit-wip-us
>.apache.org%2Frepos%2Fasf%2Fflex-asjs%2Fcommit%2F3d92c1c3=02%7C01%7C%
>7Cfc958bcc74374f70c62908d47a0a81a6%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%
>7C0%7C636267632925352663=tuMQ8oYjITRbU8IyzWziiyeAtEE6vVL%2BFPU3Ss44V
>S8%3D=0
>Tree: 
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgit-wip-us
>.apache.org%2Frepos%2Fasf%2Fflex-asjs%2Ftree%2F3d92c1c3=02%7C01%7C%7C
>fc958bcc74374f70c62908d47a0a81a6%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C
>0%7C636267632925352663=acLn0k3uWpk1mkvNdMx1JAWegpED2Aavi7ThgCGIrQk%3
>D=0
>Diff: 
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgit-wip-us
>.apache.org%2Frepos%2Fasf%2Fflex-asjs%2Fdiff%2F3d92c1c3=02%7C01%7C%7C
>fc958bcc74374f70c62908d47a0a81a6%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C
>0%7C636267632925352663=E9vx%2FXFguS2mVzIm98MHBjKQLgTJ0Om61qiaG8C10%2
>FI%3D=0
>
>Branch: refs/heads/feature/chart-work
>Commit: 3d92c1c3a79f5a334d008f1b54d3b53048a93465
>Parents: de48d63
>Author: piotrz 
>Authored: Sun Apr 2 22:54:45 2017 +0200
>Committer: piotrz 
>Committed: Sun Apr 2 22:54:45 2017 +0200
>
>--
> .../projects/HTML/src/main/flex/org/apache/flex/core/UIBase.as  | 5 +
> 1 file changed, 5 insertions(+)
>--
>
>
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgit-wip-us
>.apache.org%2Frepos%2Fasf%2Fflex-asjs%2Fblob%2F3d92c1c3%2Fframeworks%2Fpro
>jects%2FHTML%2Fsrc%2Fmain%2Fflex%2Forg%2Fapache%2Fflex%2Fcore%2FUIBase.as&
>data=02%7C01%7C%7Cfc958bcc74374f70c62908d47a0a81a6%7Cfa7b1b5a7b34438794aed
>2c178decee1%7C0%7C0%7C636267632925352663=oFj070ssakLLA%2FySQo0DSHQEi
>%2B3gXO%2BM5XEsJk%2BTsc4%3D=0
>--
>diff --git 
>a/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/UIBase.as
>b/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/UIBase.as
>index af9e255..ad4f999 100644
>--- 
>a/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/UIBase.as
>+++ 
>b/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/UIBase.as
>@@ -1087,6 +1087,11 @@ package org.apache.flex.core
> COMPILE::JS
> {
> var children:Array = internalChildren();
>+if (children.length == 0)
>+{
>+return null;
>+}
>+
> return children[index].flexjs_wrapper;
> }
> }
>



Re: [FlexJS] Release cycles

2017-04-17 Thread Alex Harui

On 4/17/17, 11:34 AM, "OK"  wrote:

>Hi,
>I don't know how much effort it is to cut a release but I wonder if it
>makes
>sense to increase the FlexJS release cycles to make changes much more
>transparent and to don't overload a release with too much bug fixes and
>new
>features.

Are you volunteering to be the release manager?

Releases have historically been a lot of effort.   There are other
products we release besides FlexJS and all take up time.  I'm hoping to
get the dual branch merged with develop and cut a release.  Hopefully
after that, if there is an enthusiastic new release manager, we can get
more releases out with shorter gaps in between.


Thanks,
-Alex



Re: [FlexJS] Status of dev branch/nightly build

2017-04-17 Thread Alex Harui
More changes are in the pipeline, but it would nice to have folks use the
nightly and help find issues.

-Alex

On 4/17/17, 11:16 AM, "OK"  wrote:

>Hi,
>I was on vacation and have not been following the list lately.
>I noticed some major changes and would like to ask if it's recommended to
>use the nightly build or if some more changes are in the pipeline.
>
>Thanks,
>Olaf
>
>
>
>--
>View this message in context:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>x-development.247.n4.nabble.com%2FFlexJS-Status-of-dev-branch-nightly-
>build-tp61158.html=02%7C01%7C%7C4187200f09454f4591d308d485bf4bee%7Cfa
>7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636280504036503935=UgaoBQgo
>pidiKctj%2BKWNAWaVMqR%2BvqFuCuFHB3I9zBc%3D=0
>Sent from the Apache Flex Development mailing list archive at Nabble.com.



Re: FlexSDK 4.16.0 installer errors

2017-04-17 Thread Alex Harui


On 4/17/17, 1:44 PM, "Lydecker"  wrote:

>That seems to have done the trick - thanks!
>
>Quick question, should my /frameworks/libs/player directory not have a
>'25.0' folder in it following the ant install (given I prompted for
>version
>25 and said yes to downloading the playerglobal.swc file?). I only have a
>23.0 file in my  /frameworks/libs/player directory following the script
>successfully completing The console output even says it was grabbing
>23.0 not 25.0 - is this just the installer.xml file that needs updating?

Hmm.  I don't think there is a prompt for the playerglobal version, just a
prompt to accept the licensing terms.

I think you actually installed playerglobal version 23.  I forgot to
mention that to get playerglobal version 25 you have to use:

  ant -f installer.xml -Dflash.sdk.version=25.0 -Dair.sdk.version=25.0

HTH,
-Alex



Re: FlexSDK 4.16.0 installer errors

2017-04-17 Thread Lydecker
That seems to have done the trick - thanks!

Quick question, should my /frameworks/libs/player directory not have a
'25.0' folder in it following the ant install (given I prompted for version
25 and said yes to downloading the playerglobal.swc file?). I only have a
23.0 file in my  /frameworks/libs/player directory following the script
successfully completing The console output even says it was grabbing
23.0 not 25.0 - is this just the installer.xml file that needs updating?

On 17 April 2017 at 17:46, Alex Harui [via Apache Flex Development] <
ml-node+s247n61157...@n4.nabble.com> wrote:

> Here are some links:
>
> http://www.oracle.com/technetwork/java/javase/
> downloads/jce8-download-21331
> 66.html
>
> http://www.oracle.com/technetwork/java/javase/
> downloads/jce-7-download-4321
> 24.html
>
> Just moving to the latest Java 8 should also fix it.
>
> HTH,
>
> -ALex
>
> On 4/17/17, 9:54 AM, "Alex Harui" <[hidden email]
> > wrote:
>
> >That smells like the JCE problem.
> >
> >
> >On 4/17/17, 5:25 AM, "Lydecker" <[hidden email]
> > wrote:
> >>
> >>osmf-download:
> >>   [delete] Deleting: D:\F162\osmf.properties
> >> [echo] Downloading OSMF2_0.swc?format=raw from:
> >>https://na01.safelinks.protection.outlook.com/?url=
> http%3A%2F%2Fsourcefor
> >>g
> >>e.net%2Fadobe%2Fflexsdk%2Fcode%2FHEAD%2Ftree%2Ftrunk%2Fframeworks%2Flibs&
>
> >>d
> >>ata=02%7C01%7C%7C6540b29eca594b7c3c5108d485a8582a%7Cfa7b1b5a7b34438794aed
>
> >>2
> >>c178decee1%7C0%7C0%7C63628040545808=EFkG64F%2FmGfU3rXXlOj8lXmRr
>
> >>%
> >>2FH9xXUew6n37JqivLY%3D=0
> >>  [get] Getting:
> >>https://na01.safelinks.protection.outlook.com/?url=
> http%3A%2F%2Fflex.apac
> >>h
> >>e.org%2Finstaller%2Fproperties%2Fsdk%2Fen_US.properties=02%7C01%7C%7
>
> >>C
> >>6540b29eca594b7c3c5108d485a8582a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7
>
> >>C
> >>0%7C63628040545808=PNdlZRlt6%2B%2B2HPbBBCnKwdutUHNTdINM8EQZEPbu
>
> >>x
> >>oU%3D=0
> >>  [get] To: D:\F162\en_US.properties
> >>
> >>check-cache:
> >>
> >>download_using_get:
> >>  [get] Getting:
> >>https://na01.safelinks.protection.outlook.com/?url=
> http%3A%2F%2Fflex.apac
> >>h
> >>e.org%2Finstaller%2Fproperties%2Fsdk%2Fen_US.properties=02%7C01%7C%7
>
> >>C
> >>6540b29eca594b7c3c5108d485a8582a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7
>
> >>C
> >>0%7C63628040545808=PNdlZRlt6%2B%2B2HPbBBCnKwdutUHNTdINM8EQZEPbu
>
> >>x
> >>oU%3D=0
> >>  [get] To: D:\F162\en_US.properties
> >>
> >>get-if-not-cached:
> >>  [get] Getting:
> >>https://na01.safelinks.protection.outlook.com/?url=
> http%3A%2F%2Fflex.apac
> >>h
> >>e.org%2Finstaller%2Fproperties%2Fsdk%2Fen_US.properties=02%7C01%7C%7
>
> >>C
> >>6540b29eca594b7c3c5108d485a8582a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7
>
> >>C
> >>0%7C63628040545808=PNdlZRlt6%2B%2B2HPbBBCnKwdutUHNTdINM8EQZEPbu
>
> >>x
> >>oU%3D=0
> >>  [get] To: D:\F162\en_US.properties
> >>
> >>check-params:
> >>
> >>get-with-no-params:
> >>  [get] Getting:
> >>https://na01.safelinks.protection.outlook.com/?url=
> http%3A%2F%2Fflex.apac
> >>h
> >>e.org%2Finstaller%2Fproperties%2Fsdk%2Fen_US.properties=02%7C01%7C%7
>
> >>C
> >>6540b29eca594b7c3c5108d485a8582a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7
>
> >>C
> >>0%7C63628040545808=PNdlZRlt6%2B%2B2HPbBBCnKwdutUHNTdINM8EQZEPbu
>
> >>x
> >>oU%3D=0
> >>  [get] To: D:\F162\en_US.properties
> >>
> >>check-params:
> >>
> >>get-with-params:
> >>  [get] Getting:
> >>https://na01.safelinks.protection.outlook.com/?url=
> http%3A%2F%2Fsourcefor
> >>g
> >>e.net%2Fadobe%2Fflexsdk%2Fcode%2FHEAD%2Ftree%2Ftrunk%2Fframeworks%2Flibs%
>
> >>2
> >>FOSMF2_0.swc%3Fformat%3Draw%26ts%3D201704171329=02%7C01%7C%7C6540b29
>
> >>e
> >>ca594b7c3c5108d485a8582a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636
>
> >>2
> >>8040545808=H2nijzFgeiJqv5iWTY5Jx1FUo6xewhFpLxGu0cx4ETY%3D
>
> >>v
> >>ed=0
> >>  [get] To: D:\F162\frameworks\libs\osmf.swc
> >>  [get]
> >>https://na01.safelinks.protection.outlook.com/?url=
> http%3A%2F%2Fsourcefor
> >>g
> >>e.net%2Fadobe%2Fflexsdk%2Fcode%2FHEAD%2Ftree%2Ftrunk%2Fframeworks%2Flibs%
>
> >>2
> >>FOSMF2_0.swc%3Fformat%3Draw%26ts%3D201704171329=02%7C01%7C%7C6540b29
>
> >>e
> >>ca594b7c3c5108d485a8582a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636
>
> >>2
> >>8040545808=H2nijzFgeiJqv5iWTY5Jx1FUo6xewhFpLxGu0cx4ETY%3D
>
> >>v
> >>ed=0
> >>moved to
> >>https://na01.safelinks.protection.outlook.com/?url=
> https%3A%2F%2Fsourcefo
> >>r
> >>ge.net%2Fadobe%2Fflexsdk%2Fcode%2FHEAD%2Ftree%2Ftrunk%2Fframeworks%2Flibs
>
> >>%
> >>2FOSMF2_0.swc%3Fformat%3Draw%26ts%3D201704171329=02%7C01%7C%7C6540b2
>
> >>9
> >>eca594b7c3c5108d485a8582a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C63
>
> >>6
> >>28040545808=Bv9ni9QLntVw%2BnfaKn1zjx2guAmy2mUYufWx4mTiwL0%3D
>
> >>s
> >>erved=0
> >>  [get] Error getting
> >>https://na01.safelinks.protection.outlook.com/?url=
> http%3A%2F%2Fsourcefor
> >>g
> 

[FlexJS] Release cycles

2017-04-17 Thread OK
Hi,
I don't know how much effort it is to cut a release but I wonder if it makes
sense to increase the FlexJS release cycles to make changes much more
transparent and to don't overload a release with too much bug fixes and new
features.

Thanks,
Olaf





--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-Release-cycles-tp61159.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


[FlexJS] Status of dev branch/nightly build

2017-04-17 Thread OK
Hi,
I was on vacation and have not been following the list lately.
I noticed some major changes and would like to ask if it's recommended to
use the nightly build or if some more changes are in the pipeline.

Thanks,
Olaf



--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-Status-of-dev-branch-nightly-build-tp61158.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: FlexSDK 4.16.0 installer errors

2017-04-17 Thread Alex Harui
Here are some links:

http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-21331
66.html

http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-4321
24.html

Just moving to the latest Java 8 should also fix it.

HTH,

-ALex

On 4/17/17, 9:54 AM, "Alex Harui"  wrote:

>That smells like the JCE problem.
>
>
>On 4/17/17, 5:25 AM, "Lydecker"  wrote:
>>
>>osmf-download:
>>   [delete] Deleting: D:\F162\osmf.properties
>> [echo] Downloading OSMF2_0.swc?format=raw from:
>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsourcefor
>>g
>>e.net%2Fadobe%2Fflexsdk%2Fcode%2FHEAD%2Ftree%2Ftrunk%2Fframeworks%2Flibs&
>>d
>>ata=02%7C01%7C%7C6540b29eca594b7c3c5108d485a8582a%7Cfa7b1b5a7b34438794aed
>>2
>>c178decee1%7C0%7C0%7C63628040545808=EFkG64F%2FmGfU3rXXlOj8lXmRr
>>%
>>2FH9xXUew6n37JqivLY%3D=0
>>  [get] Getting:
>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fflex.apac
>>h
>>e.org%2Finstaller%2Fproperties%2Fsdk%2Fen_US.properties=02%7C01%7C%7
>>C
>>6540b29eca594b7c3c5108d485a8582a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7
>>C
>>0%7C63628040545808=PNdlZRlt6%2B%2B2HPbBBCnKwdutUHNTdINM8EQZEPbu
>>x
>>oU%3D=0
>>  [get] To: D:\F162\en_US.properties
>>
>>check-cache:
>>
>>download_using_get:
>>  [get] Getting:
>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fflex.apac
>>h
>>e.org%2Finstaller%2Fproperties%2Fsdk%2Fen_US.properties=02%7C01%7C%7
>>C
>>6540b29eca594b7c3c5108d485a8582a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7
>>C
>>0%7C63628040545808=PNdlZRlt6%2B%2B2HPbBBCnKwdutUHNTdINM8EQZEPbu
>>x
>>oU%3D=0
>>  [get] To: D:\F162\en_US.properties
>>
>>get-if-not-cached:
>>  [get] Getting:
>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fflex.apac
>>h
>>e.org%2Finstaller%2Fproperties%2Fsdk%2Fen_US.properties=02%7C01%7C%7
>>C
>>6540b29eca594b7c3c5108d485a8582a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7
>>C
>>0%7C63628040545808=PNdlZRlt6%2B%2B2HPbBBCnKwdutUHNTdINM8EQZEPbu
>>x
>>oU%3D=0
>>  [get] To: D:\F162\en_US.properties
>>
>>check-params:
>>
>>get-with-no-params:
>>  [get] Getting:
>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fflex.apac
>>h
>>e.org%2Finstaller%2Fproperties%2Fsdk%2Fen_US.properties=02%7C01%7C%7
>>C
>>6540b29eca594b7c3c5108d485a8582a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7
>>C
>>0%7C63628040545808=PNdlZRlt6%2B%2B2HPbBBCnKwdutUHNTdINM8EQZEPbu
>>x
>>oU%3D=0
>>  [get] To: D:\F162\en_US.properties
>>
>>check-params:
>>
>>get-with-params:
>>  [get] Getting:
>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsourcefor
>>g
>>e.net%2Fadobe%2Fflexsdk%2Fcode%2FHEAD%2Ftree%2Ftrunk%2Fframeworks%2Flibs%
>>2
>>FOSMF2_0.swc%3Fformat%3Draw%26ts%3D201704171329=02%7C01%7C%7C6540b29
>>e
>>ca594b7c3c5108d485a8582a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636
>>2
>>8040545808=H2nijzFgeiJqv5iWTY5Jx1FUo6xewhFpLxGu0cx4ETY%3D
>>v
>>ed=0
>>  [get] To: D:\F162\frameworks\libs\osmf.swc
>>  [get]
>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsourcefor
>>g
>>e.net%2Fadobe%2Fflexsdk%2Fcode%2FHEAD%2Ftree%2Ftrunk%2Fframeworks%2Flibs%
>>2
>>FOSMF2_0.swc%3Fformat%3Draw%26ts%3D201704171329=02%7C01%7C%7C6540b29
>>e
>>ca594b7c3c5108d485a8582a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636
>>2
>>8040545808=H2nijzFgeiJqv5iWTY5Jx1FUo6xewhFpLxGu0cx4ETY%3D
>>v
>>ed=0
>>moved to
>>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsourcefo
>>r
>>ge.net%2Fadobe%2Fflexsdk%2Fcode%2FHEAD%2Ftree%2Ftrunk%2Fframeworks%2Flibs
>>%
>>2FOSMF2_0.swc%3Fformat%3Draw%26ts%3D201704171329=02%7C01%7C%7C6540b2
>>9
>>eca594b7c3c5108d485a8582a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C63
>>6
>>28040545808=Bv9ni9QLntVw%2BnfaKn1zjx2guAmy2mUYufWx4mTiwL0%3D
>>s
>>erved=0
>>  [get] Error getting
>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsourcefor
>>g
>>e.net%2Fadobe%2Fflexsdk%2Fcode%2FHEAD%2Ftree%2Ftrunk%2Fframeworks%2Flibs%
>>2
>>FOSMF2_0.swc%3Fformat%3Draw%26ts%3D201704171329=02%7C01%7C%7C6540b29
>>e
>>ca594b7c3c5108d485a8582a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636
>>2
>>8040545808=H2nijzFgeiJqv5iWTY5Jx1FUo6xewhFpLxGu0cx4ETY%3D
>>v
>>ed=0
>>to D:\F162\frameworks\libs\osmf.swc
>>
>>BUILD FAILED
>>D:\F162\installer.xml:705: The following error occurred while executing
>>this
>>line:
>>D:\F162\installer.xml:916: The following error occurred while executing
>>this
>>line:
>>D:\F162\installer.xml:924: The following error occurred while executing
>>this
>>line:
>>D:\F162\installer.xml:966: javax.net.ssl.SSLHandshakeException: Received
>>fatal alert: handshake_failure
>>at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
>>at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
>>at 
>>sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2023)
>>at

Re: FlexSDK 4.16.0 installer errors

2017-04-17 Thread Alex Harui
That smells like the JCE problem.


On 4/17/17, 5:25 AM, "Lydecker"  wrote:
>
>osmf-download:
>   [delete] Deleting: D:\F162\osmf.properties
> [echo] Downloading OSMF2_0.swc?format=raw from:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsourceforg
>e.net%2Fadobe%2Fflexsdk%2Fcode%2FHEAD%2Ftree%2Ftrunk%2Fframeworks%2Flibs
>ata=02%7C01%7C%7C6540b29eca594b7c3c5108d485a8582a%7Cfa7b1b5a7b34438794aed2
>c178decee1%7C0%7C0%7C63628040545808=EFkG64F%2FmGfU3rXXlOj8lXmRr%
>2FH9xXUew6n37JqivLY%3D=0
>  [get] Getting:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fflex.apach
>e.org%2Finstaller%2Fproperties%2Fsdk%2Fen_US.properties=02%7C01%7C%7C
>6540b29eca594b7c3c5108d485a8582a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C
>0%7C63628040545808=PNdlZRlt6%2B%2B2HPbBBCnKwdutUHNTdINM8EQZEPbux
>oU%3D=0
>  [get] To: D:\F162\en_US.properties
>
>check-cache:
>
>download_using_get:
>  [get] Getting:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fflex.apach
>e.org%2Finstaller%2Fproperties%2Fsdk%2Fen_US.properties=02%7C01%7C%7C
>6540b29eca594b7c3c5108d485a8582a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C
>0%7C63628040545808=PNdlZRlt6%2B%2B2HPbBBCnKwdutUHNTdINM8EQZEPbux
>oU%3D=0
>  [get] To: D:\F162\en_US.properties
>
>get-if-not-cached:
>  [get] Getting:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fflex.apach
>e.org%2Finstaller%2Fproperties%2Fsdk%2Fen_US.properties=02%7C01%7C%7C
>6540b29eca594b7c3c5108d485a8582a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C
>0%7C63628040545808=PNdlZRlt6%2B%2B2HPbBBCnKwdutUHNTdINM8EQZEPbux
>oU%3D=0
>  [get] To: D:\F162\en_US.properties
>
>check-params:
>
>get-with-no-params:
>  [get] Getting:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fflex.apach
>e.org%2Finstaller%2Fproperties%2Fsdk%2Fen_US.properties=02%7C01%7C%7C
>6540b29eca594b7c3c5108d485a8582a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C
>0%7C63628040545808=PNdlZRlt6%2B%2B2HPbBBCnKwdutUHNTdINM8EQZEPbux
>oU%3D=0
>  [get] To: D:\F162\en_US.properties
>
>check-params:
>
>get-with-params:
>  [get] Getting:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsourceforg
>e.net%2Fadobe%2Fflexsdk%2Fcode%2FHEAD%2Ftree%2Ftrunk%2Fframeworks%2Flibs%2
>FOSMF2_0.swc%3Fformat%3Draw%26ts%3D201704171329=02%7C01%7C%7C6540b29e
>ca594b7c3c5108d485a8582a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6362
>8040545808=H2nijzFgeiJqv5iWTY5Jx1FUo6xewhFpLxGu0cx4ETY%3D
>ed=0
>  [get] To: D:\F162\frameworks\libs\osmf.swc
>  [get]
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsourceforg
>e.net%2Fadobe%2Fflexsdk%2Fcode%2FHEAD%2Ftree%2Ftrunk%2Fframeworks%2Flibs%2
>FOSMF2_0.swc%3Fformat%3Draw%26ts%3D201704171329=02%7C01%7C%7C6540b29e
>ca594b7c3c5108d485a8582a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6362
>8040545808=H2nijzFgeiJqv5iWTY5Jx1FUo6xewhFpLxGu0cx4ETY%3D
>ed=0
>moved to
>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsourcefor
>ge.net%2Fadobe%2Fflexsdk%2Fcode%2FHEAD%2Ftree%2Ftrunk%2Fframeworks%2Flibs%
>2FOSMF2_0.swc%3Fformat%3Draw%26ts%3D201704171329=02%7C01%7C%7C6540b29
>eca594b7c3c5108d485a8582a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636
>28040545808=Bv9ni9QLntVw%2BnfaKn1zjx2guAmy2mUYufWx4mTiwL0%3D
>erved=0
>  [get] Error getting
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsourceforg
>e.net%2Fadobe%2Fflexsdk%2Fcode%2FHEAD%2Ftree%2Ftrunk%2Fframeworks%2Flibs%2
>FOSMF2_0.swc%3Fformat%3Draw%26ts%3D201704171329=02%7C01%7C%7C6540b29e
>ca594b7c3c5108d485a8582a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6362
>8040545808=H2nijzFgeiJqv5iWTY5Jx1FUo6xewhFpLxGu0cx4ETY%3D
>ed=0
>to D:\F162\frameworks\libs\osmf.swc
>
>BUILD FAILED
>D:\F162\installer.xml:705: The following error occurred while executing
>this
>line:
>D:\F162\installer.xml:916: The following error occurred while executing
>this
>line:
>D:\F162\installer.xml:924: The following error occurred while executing
>this
>line:
>D:\F162\installer.xml:966: javax.net.ssl.SSLHandshakeException: Received
>fatal alert: handshake_failure
>at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
>at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
>at 
>sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2023)
>at
>sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1125)
>at
>sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:
>1375)
>at
>sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
>at
>sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
>at
>sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
>at
>sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Abst
>ractDelegateHttpsURLConnection.java:185)
>at

Re: [FlexJS] Examples

2017-04-17 Thread Alex Harui
I think the service may have been temporarily down or the format changed.
See this, for example:

https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finan
ce.quotes%20where%20symbol%20in%20(%22YHOO%22)=json=store%3A%2F%
2Fdatatables.org%2Falltableswithkeys=


-Alex

On 4/17/17, 6:07 AM, "Peter Ent"  wrote:

>Thanks for the note about the US Census data. Census data, coupled with
>maps, always provides interesting information. It does however, take a bit
>of time to figure out what to query, how to query it, and how to present
>it. I think we could work this into a very nice example at some point.
>
>Does anyone know of something more real-time?
>
>‹peter
>
>On 4/15/17, 10:48 AM, "1600...@gmail.com on behalf of Douglas McCarroll"
><1600...@gmail.com on behalf of list.apache-flex@brightworks.com>
>wrote:
>
>>IIRC, James Ward's benchmarking app...
>>
>>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.jame
>>s
>>ward.com%2F2007%2F04%2F30%2Fajax-and-flex-data-loading-benchmarks%2F
>>=
>>02%7C01%7C%7C685b06dde1ce4c6a215f08d484546721%7Cfa7b1b5a7b34438794aed2c17
>>8
>>decee1%7C0%7C0%7C636278945430535468=jAuct%2B8oS4FnFAX9WC3xFvxZFpGCL
>>G
>>UvWvKgzJMPe2s%3D=0
>>
>>... used US Census data.
>>
>>Sadly, the benchmark app doesn't seem to work any more, but I found this
>>via google:
>>
>>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.cens
>>u
>>s.gov%2Fdata%2Fdevelopers%2Fdata-sets.html=02%7C01%7C%7C685b06dde1ce
>>4
>>c6a215f08d484546721%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C63627894
>>5
>>430535468=S1AMDnRVAKtdy0QGfKv24JZ%2FEj5CghHZvx991%2Ff1UxE%3D
>>e
>>d=0
>>
>>Douglas
>>
>>On Sat, Apr 15, 2017 at 9:30 AM, Christofer Dutz
>>
>>wrote:
>>
>>> We should ask Apache Infra Š they have several streams of publically
>>> available data. Not financial data, but stuff we could display.
>>>
>>> Chris
>>>
>>> Am 15.04.17, 14:36 schrieb "Peter Ent" :
>>>
>>> Hi,
>>>
>>> A couple of examples no longer work: DataBinding et al and
>>> MobileTrader et al. These examples depend on an API URL from Yahoo
>>> Financial which seems to no longer be working.
>>>
>>> Does anyone know of a free, Apache license compatible, API to query
>>> financial data? This data does not have to be current, just something
>>>we
>>> can use for examples of HTTPService.
>>>
>>> Barring that, if anyone knows another source of data (Apache
>>>license
>>> compatible) that would be interesting in an example, please share and
>>> perhaps we can make an example around it.
>>>
>>> Thanks,
>>> Peter Ent
>>> Adobe Systems/Apache Flex Project.
>>>
>>>
>>>
>



Re: git commit: [flex-asjs] [refs/heads/develop] - CORS security. Allow auth credentials to be passed when using cross site calls. This is required as well as setting the Access-Control-Allow-Origin h

2017-04-17 Thread Alex Harui


On 4/17/17, 2:44 AM, "piotrz"  wrote:

>Yes I was thinking about remove, but it look like you really need it and
>need
>to rely on events, so ok I don't want to argue.
>
>But maybe let's creat another one who just switch On property without rely
>on any events as it was suggested above.

We can have multiple version of beads some of which are very simple and
some more elaborate.  We want to give our users choices.  So I don't agree
that we should push that work into the application code.  It is fine for
Justin to provide two versions of handling withCredentials, and volunteers
are welcome to provide others.


My 2 cents,
-Alex



Re: git commit: [flex-asjs] [refs/heads/develop] - CORS security. Allow auth credentials to be passed when using cross site calls. This is required as well as setting the Access-Control-Allow-Origin h

2017-04-17 Thread Alex Harui


On 4/16/17, 11:00 PM, "Justin Mclean"  wrote:

>Hi,
>
>> So, good first try at a bead.   Maybe we don't agree on the scenario.
>>It
>> looked like this bead was considering a scenario where on one call, you
>> might set withCredentials=true, and on a subsequent call, you might set
>> withCredentials=false,
>
>Yes I said that was a requirement in one of my emails. It also why the
>function accepted it as a parameter rather than just setting it to true.
>
>> in which case you don't want to remove the listeners in postSend.
>
>AFAIKS you do want to remove them, otherwise if you called send again
>they are replaced and there’s a potential for a memory leak.

If you remove the preSend listener in the postSend, how will your logic
ever see the next send?  IMO you have to leave the listeners on and do any
cleanup in the strand setter.  But again, I don't think most beads need to
worry about being removed.  The major use of beads is for compile-time and
startup-time configuration, not runtime configuration after startup.


>
>>  So, by encapsulating this code in a bead, a simpler version can be
>>used for the
>> "set it once" crowd, and this more elaborate version could be used by
>> someone who does want to change withCredentials in different calls.
>
>So I should create an extra bead CORSWithCredentialsIsTrueBead where is
>it always true? Where user authentication is used there is probably
>always going to be a least one call i.e. the login call before the user
>is authenticated that you don’t want to pass the credentials on. I would
>guess that having the ability to set it would be the more common use case
>so this extra bead is probably not needed.

I don't know much about CORS.  If you make a login call in order to
authenticate the user and the server you call with the login is on a
different domain, how do you get the transaction to happen if
withCredentials are false?

I would add the very simple CORSWithCredentialsIsTrueBead because we want
to give our users choices and there are plenty of ways to get the login
that don't require the more elaborate bead you have proposed, such has
having a separate HTTPService instance for the login and another one for
other transactions.

-Alex



Re: FlexSDK 4.16.0 installer errors

2017-04-17 Thread Lydecker
Hi Alex,

Thanks for the advice - still getting an error with windows - seems to be
with OSFM download - which is weird as the mirror it fails to grab the file
from I can get when browsing to the URL directly. Here is the console output
- any pointers?

Thanks

D:\F162>ant -f installer.xml -Dair.sdk.version=25.0
Buildfile: D:\F162\installer.xml
  [get] Getting:
http://flex.apache.org/installer/properties/sdk/en_US.properties
  [get] To: D:\F162\en_US.properties

get-data:
  [get] Getting:
http://flex.apache.org/installer/sdk-installer-config-4.0.xml?ts=201704171329
  [get] To: D:\F162\sdk-installer-config-4.0.xml

get-air-md5-data:

get-flash-md5-data:

get-md5-data:

check-binary:

ask-air:
[input] Apache Flex SDK uses the Adobe AIR SDK to build Adobe AIR
applications.
[input] The Adobe AIR SDK is subject to and governed by the
[input] Adobe AIR SDK License Agreement specified here:
[input] http://www.adobe.com/products/air/sdk-eula.html.
[input] This license is not compatible with the Apache v2 license.
[input] Do you want to download and install the Adobe AIR SDK? (y, [n])
y

ask-flash:
[input] Apache Flex SDK uses the Adobe Flash Player's playerglobal.swc
to build Adobe Flash applications.
[input]
[input] The playerglobal.swc file is subject to and governed by the
[input] Adobe Flex SDK License Agreement specified here:
[input]
http://www.adobe.com/products/eulas/pdfs/adobe_flex_software_development_kit-combined-20110916_0930.pdf,
[input] By downloading, modifying, distributing, using and/or accessing
the playerglobal.swc file
[input] you agree to the terms and conditions of the applicable end user
license agreement.
[input]
[input] In addition to the Adobe license terms, you also agree to be
bound by the third-party terms specified here:
[input] http://www.adobe.com/products/eula/third_party/.
[input] Adobe recommends that you review these third-party terms.
[input]
[input] This license is not compatible with the Apache v2 license.
[input] Do you want to download and install the playerglobal.swc? (y,
[n])
y

ask-swfobject:

ask-ofl:

ask-adobe-osmf:

ask-adobe-fontswf:
[input] Apache Flex can optionally integrate with Adobe's embedded font
support.
[input] This feature requires a few font jars from the Adobe Flex SDK.
[input] The Adobe SDK license agreement for Adobe Flex 4.6 applies to
these jars.
[input] This license is not compatible with the Apache v2 license.
[input]
[input] Adobe Flex SDK License Agreement:
[input]
[input] All files contained in this Adobe Flex SDK download are subject
to and governed by the
[input] Adobe Flex SDK License Agreement specified here:
[input]
http://www.adobe.com/products/eulas/pdfs/adobe_flex_software_development_kit-combined-20110916_0930.pdf,
[input] By downloading, modifying, distributing, using and/or accessing
any files in this Adobe Flex SDK,
[input] you agree to the terms and conditions of the applicable end user
license agreement.
[input]
[input] In addition to the Adobe license terms, you also agree to be
bound by the third-party terms specified here: 
[input] http://www.adobe.com/products/eula/third_party/.
[input] Adobe recommends that you review these third-party terms.
[input]
[input] Do you want to install this jar from the Adobe Flex SDK? (y,
[n])
y

ask-licenses:

air-check:

air-download:
[mkdir] Created dir: D:\F162\in
  [get] Getting:
http://flex.apache.org/installer/properties/sdk/en_US.properties
  [get] To: D:\F162\en_US.properties

air-get-check:

air-get:
 [echo] Downloading Adobe AIR Runtime Kit for Windows from: 
http://airdownload.adobe.com/air/win/download/25.0//AdobeAIRSDK.zip
  [get] Getting:
http://flex.apache.org/installer/properties/sdk/en_US.properties
  [get] To: D:\F162\en_US.properties

download_air:
  [get] Getting:
http://flex.apache.org/installer/properties/sdk/en_US.properties
  [get] To: D:\F162\en_US.properties

download_air_with_md5:
  [get] Getting:
http://flex.apache.org/installer/properties/sdk/en_US.properties
  [get] To: D:\F162\en_US.properties

check-cache:

download_using_get:
  [get] Getting:
http://flex.apache.org/installer/properties/sdk/en_US.properties
  [get] To: D:\F162\en_US.properties

get-if-not-cached:
  [get] Getting:
http://flex.apache.org/installer/properties/sdk/en_US.properties
  [get] To: D:\F162\en_US.properties

check-params:

get-with-no-params:
  [get] Getting:
http://airdownload.adobe.com/air/win/download/25.0//AdobeAIRSDK.zip?ts=201704171329
  [get] To: D:\F162\in\AdobeAIRSDK.zip
  [get]
http://airdownload.adobe.com/air/win/download/25.0//AdobeAIRSDK.zip?ts=201704171329
permanently moved to
https://airdownload.adobe.com/air/win/download/25.0/AdobeAIRSDK.zip?ts=201704171329
  [get] Getting:
http://flex.apache.org/installer/properties/sdk/en_US.properties
  

Re: [FlexJS] Examples

2017-04-17 Thread Peter Ent
Thanks for the note about the US Census data. Census data, coupled with
maps, always provides interesting information. It does however, take a bit
of time to figure out what to query, how to query it, and how to present
it. I think we could work this into a very nice example at some point.

Does anyone know of something more real-time?

‹peter

On 4/15/17, 10:48 AM, "1600...@gmail.com on behalf of Douglas McCarroll"
<1600...@gmail.com on behalf of list.apache-flex@brightworks.com>
wrote:

>IIRC, James Ward's benchmarking app...
>
>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.james
>ward.com%2F2007%2F04%2F30%2Fajax-and-flex-data-loading-benchmarks%2F=
>02%7C01%7C%7C685b06dde1ce4c6a215f08d484546721%7Cfa7b1b5a7b34438794aed2c178
>decee1%7C0%7C0%7C636278945430535468=jAuct%2B8oS4FnFAX9WC3xFvxZFpGCLG
>UvWvKgzJMPe2s%3D=0
>
>... used US Census data.
>
>Sadly, the benchmark app doesn't seem to work any more, but I found this
>via google:
>
>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.censu
>s.gov%2Fdata%2Fdevelopers%2Fdata-sets.html=02%7C01%7C%7C685b06dde1ce4
>c6a215f08d484546721%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636278945
>430535468=S1AMDnRVAKtdy0QGfKv24JZ%2FEj5CghHZvx991%2Ff1UxE%3D
>d=0
>
>Douglas
>
>On Sat, Apr 15, 2017 at 9:30 AM, Christofer Dutz
>
>wrote:
>
>> We should ask Apache Infra Š they have several streams of publically
>> available data. Not financial data, but stuff we could display.
>>
>> Chris
>>
>> Am 15.04.17, 14:36 schrieb "Peter Ent" :
>>
>> Hi,
>>
>> A couple of examples no longer work: DataBinding et al and
>> MobileTrader et al. These examples depend on an API URL from Yahoo
>> Financial which seems to no longer be working.
>>
>> Does anyone know of a free, Apache license compatible, API to query
>> financial data? This data does not have to be current, just something we
>> can use for examples of HTTPService.
>>
>> Barring that, if anyone knows another source of data (Apache license
>> compatible) that would be interesting in an example, please share and
>> perhaps we can make an example around it.
>>
>> Thanks,
>> Peter Ent
>> Adobe Systems/Apache Flex Project.
>>
>>
>>



Re: git commit: [flex-asjs] [refs/heads/develop] - CORS security. Allow auth credentials to be passed when using cross site calls. This is required as well as setting the Access-Control-Allow-Origin h

2017-04-17 Thread piotrz
Yes I was thinking about remove, but it look like you really need it and need
to rely on events, so ok I don't want to argue. 

But maybe let's creat another one who just switch On property without rely
on any events as it was suggested above. 

Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/Re-git-commit-flex-asjs-refs-heads-develop-CORS-security-Allow-auth-credentials-to-be-passed-when-us-tp61050p61150.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: git commit: [flex-asjs] [refs/heads/develop] - CORS security. Allow auth credentials to be passed when using cross site calls. This is required as well as setting the Access-Control-Allow-Origin h

2017-04-17 Thread Justin Mclean
Hi,

> Regarding removing listeners, I just noticed that
> ElementWrapper.removeBead does not set the beads strand to null.  

Once this is fixed I’ll no longer need the postSend handler and I’ll change set 
strand to:

public function set strand(value:IStrand):void {
   _strand = value;

   if (_strand == null) {
   IEventDispatcher(_strand).removeEventListener("preSend", preSendHandler);
   }
   else {
   IEventDispatcher(_strand).addEventListener("preSend", preSendHandler);
   }
}

Thanks,
Justin



Re: git commit: [flex-asjs] [refs/heads/develop] - CORS security. Allow auth credentials to be passed when using cross site calls. This is required as well as setting the Access-Control-Allow-Origin h

2017-04-17 Thread Justin Mclean
Hi,

> So if we have some problems here - maybe you should remove this bead from
> framework, but since you need it - put it in your end application.

IMO Other people are very likely to need this at some point so it’s needed in 
the framework. Are you suggesting we go back to a non-bead implementation and 
just use the two line function instead?

> In framework itself add simple bead as Alex suggested.

If you look at the bead's code it's is actually reasonably simple. It's about 
the same in scape and size and functionality as say the MDL disable bead, i.e. 
a set strand method, a single getter and setter pair and a couple of small 
event handlers.

> If I correct understand HttpService can be both with credential and not? 

It's not supporting user credentials the bead doesn’t deal with that. The bead 
just sets a single property withCredentials to enable/disable cross domain 
XMLHttpRequest requests.

On the AS side you would use a cross domain policy, but on JS you need to set 
withCredentials on the client side as well.

Thanks,
Justin

Re: git commit: [flex-asjs] [refs/heads/develop] - CORS security. Allow auth credentials to be passed when using cross site calls. This is required as well as setting the Access-Control-Allow-Origin h

2017-04-17 Thread piotrz
Hi Justin,

So if we have some problems here - maybe you should remove this bead from
framework, but since you need it - put it in your end application.

In framework itself add simple bead as Alex suggested. Let's go with
providing simple beads by framework leaving to the user more sophisticated
scenario.

If I correct understand HttpService can be both with credential and not? -
That's something which should be cover by the user. 

Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/Re-git-commit-flex-asjs-refs-heads-develop-CORS-security-Allow-auth-credentials-to-be-passed-when-us-tp61050p61147.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [5/6] flex-asjs git commit: Bead to dead with simple date formats. Doesn’t support time zones, some foreign date formats, month names and a lot of other things.

2017-04-17 Thread piotrz
Ohh..Ok, so we have to check. Maybe that's something from the past and there
will not be breakages. 

I will check it tomorrow if won't bead me earlier. :) 

Thanks,
Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/Re-5-6-flex-asjs-git-commit-Bead-to-dead-with-simple-date-formats-Doesn-t-support-time-zones-some-fo-tp61144p61146.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [5/6] flex-asjs git commit: Bead to dead with simple date formats. Doesn’t support time zones, some foreign date formats, month names and a lot of other things.

2017-04-17 Thread Justin Mclean
Hi,

> Nice bead. I like it. :) One thought I think "textChanged" event shouldn't
> be dispatched through the bead. It should happen through the model or
> strand.

That was in the original code not something I changed, so I’m not sure of the 
exact consequences of changing that.

Basically I fixed a couple of bugs, added the format and separator properties 
and changed the contents of handleTextChange to be non US / format specific.

Thanks,
Justin

Re: [5/6] flex-asjs git commit: Bead to dead with simple date formats. Doesn’t support time zones, some foreign date formats, month names and a lot of other things.

2017-04-17 Thread Piotr Zarzycki
Hi Justin,

Nice bead. I like it. :) One thought I think "textChanged" event shouldn't
be dispatched through the bead. It should happen through the model or
strand.

Piotr

On Mon, Apr 17, 2017, 06:24  wrote:

> Bead to dead with simple date formats. Doesn’t support time zones, some
> foreign date formats, month names and a lot of other things.
>
>
> Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
> Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/edd27839
> Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/edd27839
> Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/edd27839
>
> Branch: refs/heads/develop
> Commit: edd27839eefc8d2352dad8ee997142e3979418f8
> Parents: 4842fa7
> Author: Justin Mclean 
> Authored: Mon Apr 17 14:24:16 2017 +1000
> Committer: Justin Mclean 
> Committed: Mon Apr 17 14:24:16 2017 +1000
>
> --
>  .../html/accessories/SimpleDateFormatBead.as| 222 +++
>  1 file changed, 222 insertions(+)
> --
>
>
>
> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/edd27839/frameworks/projects/Formatters/src/main/flex/org/apache/flex/html/accessories/SimpleDateFormatBead.as
> --
> diff --git
> a/frameworks/projects/Formatters/src/main/flex/org/apache/flex/html/accessories/SimpleDateFormatBead.as
> b/frameworks/projects/Formatters/src/main/flex/org/apache/flex/html/accessories/SimpleDateFormatBead.as
> new file mode 100644
> index 000..f2548a7
> --- /dev/null
> +++
> b/frameworks/projects/Formatters/src/main/flex/org/apache/flex/html/accessories/SimpleDateFormatBead.as
> @@ -0,0 +1,222 @@
>
> +
> +//
> +//  Licensed to the Apache Software Foundation (ASF) under one or more
> +//  contributor license agreements.  See the NOTICE file distributed with
> +//  this work for additional information regarding copyright ownership.
> +//  The ASF licenses this file to You under the Apache License, Version
> 2.0
> +//  (the "License"); you may not use this file except in compliance with
> +//  the License.  You may obtain a copy of the License at
> +//
> +//  http://www.apache.org/licenses/LICENSE-2.0
> +//
> +//  Unless required by applicable law or agreed to in writing, software
> +//  distributed under the License is distributed on an "AS IS" BASIS,
> +//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
> +//  See the License for the specific language governing permissions and
> +//  limitations under the License.
> +//
>
> +
> +package org.apache.flex.html.accessories
> +{
> +   import org.apache.flex.core.IBead;
> +   import org.apache.flex.core.IDateChooserModel;
> +   import org.apache.flex.core.IFormatBead;
> +   import org.apache.flex.core.IStrand;
> +import org.apache.flex.core.IStrandWithModel;
> +   import org.apache.flex.events.Event;
> +   import org.apache.flex.events.EventDispatcher;
> +
> +   /**
> +* The DateFormatBead class formats the display of a DateField
> using a format.
> +*
> + *  @flexjsignoreimport org.apache.flex.core.IStrandWithModel
> + *
> +*  @langversion 3.0
> +*  @playerversion Flash 10.2
> +*  @playerversion AIR 2.6
> +*  @productversion FlexJS 0.8
> +*/
> +   public class SimpleDateFormatBead extends EventDispatcher
> implements IBead, IFormatBead
> +   {
> +   /**
> +* constructor.
> +*
> +*  @langversion 3.0
> +*  @playerversion Flash 10.2
> +*  @playerversion AIR 2.6
> +*  @productversion FlexJS 0.8
> +*/
> +   public function SimpleDateFormatBead()
> +   {
> +   }
> +
> +   private var _format:String;
> +   private var _seperator:String;
> +   private var _propertyName:String;
> +   private var _eventName:String;
> +   private var _formattedResult:String;
> +
> +   /**
> +*  The name of the property on the model holding the
> value to be formatted.
> +*  The default is selectedDate.
> +*
> +*  @langversion 3.0
> +*  @playerversion Flash 10.2
> +*  @playerversion AIR 2.6
> +*  @productversion FlexJS 0.8
> +*/
> +   public function get propertyName():String
> +   {
> +   if (_propertyName == null) {
> +   return 

Re: git commit: [flex-asjs] [refs/heads/develop] - CORS security. Allow auth credentials to be passed when using cross site calls. This is required as well as setting the Access-Control-Allow-Origin h

2017-04-17 Thread Justin Mclean
Hi,

> So, good first try at a bead.   Maybe we don't agree on the scenario.  It
> looked like this bead was considering a scenario where on one call, you
> might set withCredentials=true, and on a subsequent call, you might set
> withCredentials=false,

Yes I said that was a requirement in one of my emails. It also why the function 
accepted it as a parameter rather than just setting it to true.

> in which case you don't want to remove the listeners in postSend.

AFAIKS you do want to remove them, otherwise if you called send again they are 
replaced and there’s a potential for a memory leak.

>  So, by encapsulating this code in a bead, a simpler version can be used for 
> the
> "set it once" crowd, and this more elaborate version could be used by
> someone who does want to change withCredentials in different calls.

So I should create an extra bead CORSWithCredentialsIsTrueBead where is it 
always true? Where user authentication is used there is probably always going 
to be a least one call i.e. the login call before the user is authenticated 
that you don’t want to pass the credentials on. I would guess that having the 
ability to set it would be the more common use case so this extra bead is 
probably not needed.

> Regarding removing listeners, I just noticed that
> ElementWrapper.removeBead does not set the beads strand to null.  

This seems like a bug to me, it should be doing that. That's part of the reason 
I added the remove listeners in the post send handler.

> Right now I think it should.  What do others think?  And then if you want to
> worry about being removed you could check for null and remove listeners,
> but IMO, there should be very few if any scenarios where beads get removed.

While not too common I've run into a couple of times. I just run into another 
earlier today with date formatting.

Thanks,
Justin