Project

General

Profile

Bug #10294

ProDataSet BufferImpl.synchronize(DataRelation) ArrayIndexOutOfBoundsException

Added by Teodor Gorghe about 1 year ago. Updated about 1 year ago.

Status:
Test
Priority:
Normal
Assignee:
Target version:
-
Start date:
Due date:
% Done:

100%

billable:
No
vendor_id:
GCD
case_num:
version_reported:
version_resolved:
production:
No
env_name:
topics:

Related issues

Related to Database - Feature #9543: implement missing BUFFER attributes Test
Related to Base Language - Bug #10352: Fix READ-JSON dataset handle method's behaviour Closed

History

#1 Updated by Teodor Gorghe about 1 year ago

There is an issue of BufferImpl.synchronize(DataRelation), on a buffer from DATASET.
ABL Code:

BLOCK-LEVEL ON ERROR UNDO, THROW.

USING OpenEdge.Core.Assert FROM PROPATH.

CLASS tests.TestBufferAutosynchronize:
    DEFINE TEMP-TABLE tt1
        FIELD key1 AS INTEGER.

    DEFINE TEMP-TABLE tt2
        FIELD key2 AS INTEGER
        FIELD common_field AS RECID.

    DEFINE TEMP-TABLE tt3
        FIELD key3 AS INTEGER
        FIELD common_field AS RECID.

    DEFINE DATASET dsTest FOR tt1, tt2, tt3
        PARENT-ID-RELATION rel1 FOR tt1, tt2 PARENT-ID-FIELD common_field
        PARENT-ID-RELATION rel2 FOR tt2, tt3 PARENT-ID-FIELD common_field.

    @Test.
    METHOD PUBLIC VOID TestBufferRelease():
        DATASET dsTest:EMPTY-DATASET().

        CREATE tt2.
        BUFFER tt2:AUTO-SYNCHRONIZE = TRUE.
        RELEASE tt2. /* FWD throws java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0 */
    END METHOD.
END CLASS.


Currently, I need to do some research, how DATASET works on 4GL OE and more stuff about relationships/synchronization.

#3 Updated by Teodor Gorghe about 1 year ago

  • Assignee set to Teodor Gorghe
  • Status changed from New to WIP

Create task branch 10294a.

#4 Updated by Teodor Gorghe about 1 year ago

  • % Done changed from 0 to 100
  • Status changed from WIP to Review
  • reviewer Constantin Asofiei added

Committed revision 16052 on task branch 10294a:
- BufferImpl.synchronize(DataRelation) exception fix on PARENT-ID-RELATION.

Committed revision 16053 on task branch 10294a:
- The last solution was not good for a PARENT-ID-RELATION implementation. I think this one is good.

I need to do some additional testing on this with some standalone tests.

#5 Updated by Teodor Gorghe about 1 year ago

While testing the BUFFER:SYNCHRONIZE, I have come across with the following issue:
- when reading a ProDataSet using the READ-XML, the child does not receive the parent's RECID

#6 Updated by Greg Shah about 1 year ago

  • Related to Feature #9543: implement missing BUFFER attributes added

#7 Updated by Constantin Asofiei about 1 year ago

Are you working on the 10249-5 bug?

#8 Updated by Teodor Gorghe about 1 year ago

Right now, no. I am working on #10309.

#9 Updated by Constantin Asofiei about 1 year ago

  • Status changed from Review to Merge Pending

Please commit 10294a now.

#10 Updated by Teodor Gorghe about 1 year ago

  • Status changed from Merge Pending to Test

Branch 10294a was merged to trunk revision 16064 and archived.

#11 Updated by Paul Bodale 12 months ago

  • Related to Bug #10352: Fix READ-JSON dataset handle method's behaviour added

Also available in: Atom PDF