possible bug: ListCollectionView.addAll with filter function

Hello

I wrote this post in the "General Discussion" Forum "LFex sdk", I also put it there.

I think I found a bug in the flex SDK. I checked in JIRA and it seems it is not reported.
This simple code raise an 'out of bouds exception' (flex SDK 4.1):

var list: collection ArrayCollection = new ArrayCollection();

list.filterFunction = filter;

List.Refresh ();

var items: ArrayList = new ArrayList ([1,2,3,4,5]);

list.addAll (items);

Function filter(obj:Object): Boolean {}

var n: Number is obj in numbers;.

return n < 2;

}

I checked the code in mx.collections.ListCollectionView and it's obvious: addAll called addAllAt. "addAllAt" launches a call loop on the list to add and calling the addItemAt for each element, but it increments the index arguments, even if the previous item has not really added (because of a restriction of the filter), and the "out of bounds exception occurs. In my opinion, addAllAt must be changed as as follows:

current version:

public function addAllAt (addList:IList, index: int):void {}

var length: int = addList.length;

for (var i: int = 0; i < length; i ++)

{

this.addItemAt (addList.getItemAt (i), I + index);

}

}

proposed version:

public function addAllAt (addList:IList, index: int):void {}

var length: int = addList.length;

for (var i: int = 0; i < length; i ++)

{

var to: int = I + index;

if(at>Length) {}

a = length;

}

this.addItemAt (addList.getItemAt (i), to);

}

}

Should I open a bug? Or am I missing something?

M1kal

Fill out a bug report.

Tags: Flex

Similar Questions

  • Plans of work in PS CC can be also for print design? If not, is it possible to use photoshop with similar functionality?

    Plans of work in PS CC can be also for print design? If not, is it possible to use photoshop with similar functionality?

    As they don't understand the area of cropping and Bleedbox parameters so far that they are, in my opinion, useless in regards to printing.

    If you try to make prepress and correct page layout work in Photoshop, you can change to use the right tools for the task as Indesign.

  • Possible bug in LabVIEW with help chart

    The attached VI reads a group of bytes as U8 from a file and writes the each other in a new file.  It does this by using the function array decimate.  It seems that there is a bug in LabVIEW.  If the '+ 0' is deleted from the code nothing but 0 is written to the file.  If you explore the table that will be written in the file it shows no null values, but the resulting file is always all zeros.  Addition of '+ 0' was a work around the issue.

    I'm under LabVIEW version 8.5.

    This looks similar to the LabVIEW 8.5 suspiciosly bug, we discussed quite earlier.

    Try placing a primitive 'always copy' (from the palette ' application control... control memory') until the file write and see if things improve. Good luck!

  • Possible bug in Anyconnect with smart card on linux

    Hello

    I got the authentication of smart card Anyconnect connecting Linux using NetId customers.

    My problem is that this only works at first starting a client anyconnect.

    I can do connect/reconnect whenever I want to, but if I left the anyconnect client and restart smart card authentication not working anymore.

    I've nailed sort of problem until beeing associated with the user profile for anyconnect beeing created (including the seams to read at the start of the customer).

    ~/. AnyConnect

    Still further the specific problem with the item seams

    If I delete this specific element of the profile or completely delete the profile, and then restart the client, smart card authentication will work.

    Newspapers anyconnect not sewing to shed light on the problem.

    Print written in the profile is always the same.

    Hope that is understandable and someone could give an explanation to this.

    Do not hesitate to ask if something is not clear or you would like more information.

    Best regards

    / Mattias

    Mattias,

    Please understand that these issues are all new to us.  We had not seen before two cases I know has opened in the same week as yours.  If you wish to pursue a fix, beyond the solution of effective workaround for this add-in, open that a TAC is necessary so that we can collect the details and file another bug.  Please be sure to include in your case, notes of the opening so that the TAC engineer who gets it may be noted that workaround.

    -Craig

  • Possible BUG: af:query with several LOVs throws bitIndex exception

    Hi all

    I use the af:query for the search component and I get constantly "bitIndex < 0:-1 error" when searching on a LOV (by typing the value in the part of the LOV not using inputtext does not popup LOV).

    Installation program:

    I use Jdev 11.1.2.1 with JDEVADF_11.1.2.1.0_GENERIC_110907.2314.6081.

    Using the schema HR, I created the entity departments and a Department display object based on the entity.

    I created 2 objects of basis for the LOVs SQL view (not from entities not):

    1. view LOV departments - select * from departments
    2 view of the LOV locations - select * from places

    The two views of Lov were created using the wizard with all the default values.

    In my opinion main departments (based on the entity), I created 2 LOVs for LocationId and for DepartmentId.

    The LOV for DepartmentId returns 2 attributes, DepartmentId and DepartmentName both are mapped to the corresponding attributes in the main view of Department. (I did using the popup "Edit the list of values", in the section 'List return values').

    Finally, I dragged the "all searchable attributes" from the control panel of data to a test page, creating a group of ADF query with table

    The error:

    I type a valid service id in the LOV DepartmentId within the research section and I get the "bitIndex < 0:-1 error.» No results are returned.

    When the server running with - Djbo.debugoutput = console I see the following error messages:

    CtrlAttrs < JUCtrlValueBinding > < setInputValue > [18415]: exception caching: oracle.jbo.AttrValException: Houston-27019: the get method for attribute "DepartmentName" in the PREMISESof VIEW_USAGE_internal_vci_def_values is not resolved.
    < DCBindingContainer > < cacheException > [18416] * updated BindingContainer cache EXCEPTION: oracle.jbo.AttrValException
    < DCBindingContainer > < cacheException > [18417] java.lang.IndexOutOfBoundsException: bitIndex < 0:-1
    at java.util.BitSet.get(BitSet.java:441)
    at oracle.jbo.server.ViewRowStorage.getAttributeInternal(ViewRowStorage.java:1823)
    at oracle.jbo.server.ViewRowImpl.getAttributeValue(ViewRowImpl.java:1962)
    at oracle.jbo.server.ViewRowImpl.getAttributeInternal(ViewRowImpl.java:824)
    at oracle.adf.model.bean.DCDataRow.getAttributeInternal(DCDataRow.java:366)
    at oracle.adf.model.bean.DCCriteriaValueRowImpl.getAttributeInternal(DCCriteriaValueRowImpl.java:241)
    at oracle.jbo.server.ViewRowImpl.getAttrInvokeAccessor(ViewRowImpl.java:906)
    at oracle.jbo.server.ViewRowImpl.getAttribute(ViewRowImpl.java:854)
    at oracle.jbo.uicli.binding.JUCtrlValueBinding.internalGetAttributeValueFromRow(JUCtrlValueBinding.java:1213)
    at oracle.jbo.uicli.binding.JUCtrlListBinding.setTargetAttrsFromLovRow(JUCtrlListBinding.java:2799)
    at oracle.jbo.uicli.binding.JUCtrlListBinding.setTargetAttrsFromLovRowAndUpdateMRU(JUCtrlListBinding.java:2712)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlLOVBinding.setInputValueInRow(FacesCtrlLOVBinding.java:1163)
    at oracle.jbo.uicli.binding.JUCtrlValueBinding.setInputValue(JUCtrlValueBinding.java:2926)
    at oracle.jbo.uicli.binding.JUCtrlValueBinding.setInputValue(JUCtrlValueBinding.java:2889)
    to oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$ AdfCriterionValues.set (FacesCtrlSearchBinding.java:3589)
    at javax.el.ListELResolver.setValue(ListELResolver.java:240)
    at oracle.adfinternal.view.faces.model.AdfELResolver.setValue(AdfELResolver.java:162)
    at oracle.adfinternal.view.faces.model.AdfELResolverProxy.setValue(AdfELResolverProxy.java:71)
    at com.sun.faces.el.DemuxCompositeELResolver._setValue(DemuxCompositeELResolver.java:255)


    Note:
    The search works as expected if I only have a LOV attached to the main view. (if I don't have the Department LOV attached as described above everything works fine)
    If both LOVs of DepartmentLOV and LocationsLOV return a single value, the departmnetId and the locationId, without mapping any additional return attributes research as planned as well.

    This is test case the simplest I could create to reproduce the error I see in our code.

    Here is a link to my test project: [http://www.2shared.com/file/QxZJDfax/bitIndexTest.html]

    Help, please

    I'm looking for workarounds / fixes.
    Any advice would be greatly appreciated.

    Thank you
    Sasha

    Hi Sasha,

    which seems related to the bug 12851501 - ARRAYINDEXOUTOFBOUNDSEXCEPTION LIFTING OF VIEWROWSTORAGE CLASS
    expected to be fixed in JDeveloper 11.1.2.2.0

    If you have access to My Oracle Support, there are here available patch (patch 12851501).

    Kind regards

    Didier.

  • Are you aware of a possible bug in the version 3.6.23? In the browser, for example, "two /" appears with the slash through the 'o'. Is this a known bug? Thank you

    Are you aware of a possible bug in the version 3.6.23? In the browser, for example, "two /" appears with the slash through the 'o'. Is this a known bug?

    When the same text is seen in another browser, it is displayed correctly as "two."

    The same question is displayed on another computer.

    Thank you.

    Sounds that you use a font that supports ligatures (Palatino?).

  • Possible bug: save the table with double and extended precision to the worksheet

    If one concatenates an array of double-precision and an array of precision extended with the 'build' vi table, then recorded using 'Write in a spreadsheet file' vi any digits to the right of the decimal are reset to zero in the saved file. Regardless of the entry of signifier of format (for example %.10f) to the vi 'Write in a spreadsheet file'.

    I'm on Vista Ultimate 32 bit and labview 9.0

    This is a possible bug that is easily circumvented by the conversion of a type before you incorporate arrar in a worksheet. Nevertheless, it's a bug and it cost me some time.

    Hi JL,.

    No, this is not a bug - it's a feature

    Well, if you'd look closer you would recognize the 'save to spreadsheet' as polymorphic VI. As this polymorphic VI does not support the EXTENSION numbers internally (it only supports DBL, I64, and String) LabVIEW selects the instance with more precision: I64 (I64 a 64 bits of precision, DBL that 53...). Your options are:

    -the value of the instance to use as the DBL (by right click and "Select type... »)

    -make a copy of this VI, save it under a different name and make support number of POST (not rework the polymorphic VI like you would break compatibility with other facilities of LV or future revisions)

  • possible bug? formatting number 0 is displayed as 4 294 967 295

    This is really two questions in one. First of all, I have a routine that sometimes gives a result of 0, which is * sometimes * displayed in an AdvancedDataGrid column in the form of 4 294 967 295, which I assume is somehow a significant number (more big int?). In any case, I have one ADG with a column defined as:

    < mx:AdvancedDataGridColumn headerText = "Remaining work" labelFunction = "rem_work_fmt" textAlign = "right" / >

    The called labelFunction is illustrated below:

    private void rem_work_fmt(item:Object,_column:AdvancedDataGridColumn):String
    {
    var num:String = numberFormatter.format (item.get_remaining_work ());
    trace ("result:" + num);
    return num;
    }
    Track of exit impressions: "result: 0" as expected, but the number displayed in the grid is sometimes 0 and 4294967295 sometimes.

    More strangeness, this only happens to the last column in the ADG. I call the same logic of format on another column and have never seen a wrong result. In addition, the same 'get_remaining_work()' function is called on the same data and the result is properly displayed in a field of text as 0.

    Second question, I met a few other possible bugs, I didn't report because I found a work around. How to do that in the beta program?

    LW1001,

    Bugs can be filed in the public bug at http://bugs.adobe.com/flex/
    You will need to register before you can submit bugs.
    Also, if you can attach files to bug to the bug report, it makes it much easier for Adobe to investigate.

    Let me know if you have any other questions/problems.

    Peter

  • Having the problem with the function on SG300 Dhcp / 500?

    Having the problem with the function on SG300 Dhcp / 500? now I can use the dhcp server on the two model, but have a problem.

    My problem is when I create

    VLAN 1: 192.168.0.1/24 dhcp pool 192.168.0.10 - 250

    VLAN 10: 192.168.10.10 - 250 192.168.10.1/24 dhcp pool

    case 1

    I plug the pc to vlan 1 can I get ip 192.168.0.11. But when I change this pc to a new port in vlan 2 I always get the same ip address. why I can not get IP of vlan2.

    case 1

    I plug the pc to vlan 2 I can get ip 192.168.10.11. But when I change this pc to a new port in the vlan 1 I always get the same ip address. why I can not get IP of vlan1.

    but when I have access to the switch and remove the link after that that i will get correct IP.

    I think this is the bug of this firmware. Could you help this case.

    This is a known bug that is the setting of Cisco

    Sent by Cisco Support technique iPad App

  • File navigation on OSX problem - how to use a filter function?

    I work with file navigation atm using the JSX file objects and the openDlg method and quite frankly, it drives me crazy.

    He has a crazy person decided it was a good idea to have the filter flag on the totally different openDlg method to Win and OSX? Under windows, you use a string for filtering, OSX he wants is a function!

    I checked the documentation and also searched this forum and I can't even find an example of how to set up so that it works for Windows and OSX?

    OK, so I found the syntax, but it still does not make sense.

    fileMask = function(file){file.name.match(/\.psd$/i) ? true:false;}
    


    Here we have the psd extension hardcoded in the regular extension. But what happens if we want it to be a variable? And what happens if t he file does not yet exist.

    Basically I want is the user of:
    Navigate to a folder

    Set a file name

    record.

    The extension type must be locked!

    Compared to the way of windows to do things, the way OSX to use a filtering function is too complex, absurd and downright annoying!

    EDIT: I also discovered that you can not write a file on OSX name unless the file already exists. Come on! Is this the type of dialogue hurt or something?

    Here is my script to request a file that handles the differences Win/Mac

    function isWindows() {
      return app.systemInformation.indexOf("Operating System: Windows") >= 0
    }
    function isMac() {
      return app.systemInformation.indexOf("Operating System: Mac") >= 0
    }
    function promptFile(filter_extension) {
      var filter = null
      if (isMac()) {
           if (filter_extension) {
                var filter_regex = new RegExp("[^\.]*\."+filter_extension+"$")
                filter = function (file_entry) {
                     return filter_regex.test(file_entry.name)
                }
           } else {
                filter = function () { return true }
           }
      } else if (isWindows()) {
           if (filter_extension) {
                filter = filter_extension.charAt(0).toUpperCase() + filter_extension.slice(1)+"-files:*."+filter_extension
           } else {
                filter = "All files:*.*"
           }
      } else {
           filter = null
      }
      var f = File.openDialog("Select your file", filter, false)
      if (f) {
           return f.fsName.replace(/\\/g, "/") // sanitize to forward slash
      }
    }
    }
    
  • Filter function

    Hi all

    I use the function filter to calculate extent for all regions. And I have one other measures even that is supposed to show that the data of a prticular area. So, basically, it's like a comparison, region vs all regions.

    So, to get a region, I added a filter.

    Now when I run the analysis, the filter function which is group of regions does not work, it shows only the data for a particular region of selecetd from the filter drop-down.

    How can I achieve this? Is it possible to lock the filter function?

    Thank you

    GLOBAL has in the end is 'simple', you pass a measure and then a level of one or more dimensions and OBIEE will be just 'ignore' the filter on the region and to return altogether from all regions and the level of demand (can be 'all regions', 'country' etc..).

    It works better that FILTER at least for that sort of thing.

  • Possible bug on role assignments

    I am using SOA/BPM 11.1.1.7.

    I found a possible bug when you deploy a BPM Application which mixed assignments (some directly to one user, others to a role of Application BPM (created in the workspace).

    I did two tests.

    Test 1.  Created a project/process of BPM with two lanes.  In organization, I assigned the roles of corridor users (to the embedded Weblogic LDAP).  On deployment, these roles were driven from the area space of work/Administration/roles (when logged in as a Weblogic).

    Test 2.

    In the workspace I created a few BPM roles (and put assignments users), then in a project of assigned BPM Application roles to my role of corridor.

    However, I created a corridor and made the assignment directly to the user.

    On deployment, the role which has been directly attributed to the user at the level of BPM projects has been eliminated NOT to the role area.

    A video of it is here: http://youtu.be/bWtEIRavlEY

    Stuart

    Hi Stuart,

    Could check you how your mapping roles work if you check "deployment of existing objects of update on ' option in organization.xml?

  • How to add a filter function in the navigation?

    Hello

    .. .this site has a pretty cool concept navigation based on a filter function:

    http://trufcreative.com/work

    2014-12-13_Filter-Function.35.1.png

    Any chance to build the same kind of functionality ("sort by") + (as a separate navigation level) with MUSE?

    Any advice would be much appreciated!

    G

    You can achieve this by using a code that currently there is no widget providing for sorting of the tales or elements.

    Where is hosted on Adobe servers, you can use web apps to achieve this goal. Sorting based on filters of points can be included in the web application page.

    Let me know if you use BC, I'll give you more information than the way you do.

    Thank you

    Sanjit

  • APEX translated application 4.2 available possible bugs on theme 25

    Hello everyone,

    I try APEX 4.2 with reactive Blue theme (theme 25). So far so good. When I tried to do an application translated from my one shot (I don't translate any string, just de-seeded and released the app), I discovered some possible bugs on the page layout. For example, in areas of form, fields with the scope of auto column cannot be aligned in the same line. They are moved to a new line, although in the original application, it works. I know it's easy to fix by setting a specific value in the scope of column. But how can I fix the page layout in the pages who are magicians (with the standard model of region) and fields are placed in the table not div like in the initial application. Is there a difference between a translated application (which is actually not yet translated) and on the initial page rendering?

    Thanks in advance.

    Hi Grandmaster,

    I think that you are hit bug 15922307 - model of presentation of the grid of a translation application is not used
    who sets us 4.2.1.00.08. Can you check if you're on this version or if you are still on APEX 4.2.0

    Concerning
    Patrick
    -----------
    Member of the APEX development team

    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Permissions lost on vCenter Server 4.0.162856 - Possible bug?

    Hello.

    We have a VMware infrastructure in which each person has several virtual machines, as well as several VLANs for their private use. To avoid the possibility of users mess with others "machines" or VLAN, I started today test the parameters of different role. During one of those tests, I think I came across a bug.

    I tried to assign read-only access to the group 'Users' to our virtual switch distributed so that people could use VLANs but not modify them. Because it is not possible to assign permissions to a virtual switch directly, what I was doing was creating a folder and assign permissions there. The problem is that, as soon as I set up the permissions for the 'Users' group, these permissions have been apparently applied to one, 'administrators' so, subsequently, I am unable to manage the VLAN more even from the administrator account.

    I took a screenshot of the configuration of authorization, indicating also that I can't change anything. It is available at the following link

    http://img408.imageshack.us/img408/5048/screeenshot.jpg 

    I would be very interested to know if there is a known bug, but more important still, if there is any way I can roll back to the previous configuration. I guess it would be possible to restore the previous configuration of editing the SQL database directly, but, unfortunately, I do not know what I would need to change, it

    Any help would be greatly appreciated

    Daniel

    OK, back to the top of your first database... and I'm just a pirate at heart, no vmware support, so I'm not responsible for what anyone, if anything goes wrong, but...

    On your SQL server server, open the VPX_ACCESS table and look for a line with ROLE_ID-2, which is READ only and the main of "users".   And then delete.

    That should fix it. You may need to restart the server vcms to read however.  If you have made other changes to directors, they will show in the same table and can be changed or repaired in the same way.

    FYI, ROLE_ID-1 is the administrator privilege.

Maybe you are looking for