Skip to content

Persisting a detached Collection-Holder persistable with modified order of elements while having datanucleus.cache.collections set to false, cause IndexOutOfBound #526

@aleferri

Description

@aleferri

Like the title,
suppose we have a Collection-holder Persistable class, i called it ThingsHolder in detached state with all of it's relationships fetched, then we add an element E in a position that is not the last (i.e. at the beginning); if we then proceeds to persist this dirty object while having datanucleus.cache.collections=false we obtain an index out of bounds.

I am attaching the full buildable testcase for Datanucleus 5.2

dn-bug-attachcopy-testproject.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions