Archive for the ‘bugs’ Category

Security.loadPolicy() doesn’t support error recovery

Wednesday, June 11th, 2008

Flash Player does not support error recovery when it comes to loading policy file.
If for some reason socket policy server does not respond on the first call of Security.loadPolicy(url) there is no way to recover from this situation. All subsequent call to Security.loadPolicy() will be in vain.

I’ve submitted this bug in January 2008 and after 2 FlashPlayer releases there is no sign of a progress on this issue. FP 10 beta does not show any signs of the addressed problem either.

https://bugs.adobe.com/jira/browse/FP-67
https://bugs.adobe.com/jira/browse/SDK-14483

Adobe’s attitude is well described by Screenivas

Version 1.0 release : We are releasing a great product which would help our users in a great way by boosting their productivity. We would fix all serious bugs soon.

Customer: Great. Let me use it.

Version 2.0 release : We have lot of new features for you. In this release we have addressed all serious bugs (read it as bugs reported by great partners and volume customers) in the previous release.

Customer: But what about other serious bugs faced by me?

Company: We would fix all bugs soon.

Customer: They are only fixing bugs for the new features and few more bugs from volume customers.

Version 3.0 release : We have lot of new features. We have revelutionized the workflow. We have rewritten many parts of the code to boost performance. etc… Of-course now we are open-source !

Customer: Now it is Open-source ? Great! But what about bugs which were in 1.0 release?

Company: Oh! our customers have lived with these bugs for more than 2 years, now they have almost stopped complaining…..they can live with it! If they complain more, let us ask them to upgrade to the new version and follow a new workflow/API for the same feature which we have introduced. And anyway we are open-source let them grab the source and fix the bug themselves. We can’t spend our precious development time over fixing those old bugs.

Customer: Where I can find a developer and time to study this piece of open-source product and fix bugs for me? …?….?

There are 6385 unresolved or deferred bugs in the Flex bugs database. And they are now actively working on Flex4. This is so great! I could not wait for another version for Flex – this so exciting!

Date & daylight savings

Wednesday, June 11th, 2008

Date class has a bug related to the daylight savings.

If you want to change the date using number of seconds it will cause a problem going over the dates when daylight savings change.

E.g.


private var mydate:Date = new Date(2008, 3, 4, 0, 0, 0, 0);

mydate = new Date (mydate.getTime() + 1000 * 60 * 60 * 24)

mydate = new Date(mydate);

If it goes over the date when daylight savings is changed, instead of adding 24 hours it will add 23 or 25 hours (depending on the time of the year – summer or winter)

So, to do perform Date manipulation correctly you have to use date field, i.e.:

mydate.date +=1;

This method correctly handles the daylight savings and it will keep initial 00:00:00 time.

PS https://bugs.adobe.com/jira/browse/SDK-14983

unselect in ComboBox

Monday, June 9th, 2008

If you need to unselect value in the ComboBox control, setting the

selectedIndex = -1

is not enough, you have to set

prompt = "something"

, otherwise it selects the first element. Despite

selectedIndex = -1

. Weird…