Skip to content

det facade: handleTransaction answers raw EBCDIC bytes when a RETURN's COMMAREA LENGTH is past the DTO (#4679 follow-up) #4695

Closed

Description

@squid-protocol

Follow-up to #4679 (PR #4694). A det port's RETURN TRANSID COMMAREA with a LENGTH past its DTO now passes the LENGTH bytes (DetCics.commareaOut, CCSID 037), as an XCTL has since #4501. CardDemo COCRDLIC / COCRDSLC / COCRDUPC / COACTVWC / COACTUPC RETURN WS-COMMAREA LENGTH 2000, so their generated facades' handleTransaction (task.returned(Object.class)) now answer a byte[], not the DTO. The equivalence java-facade side still passes (it compares the very object the task returned), but a deployed caller of that REST/Spring entry point gets opaque bytes.

CicsTask.returned(Class) refuses a byte[] for a DTO type (no layout conversion: the bytes are cp037, a DTO's fromCommarea reads the storage page). Decide: convert byte[] -> DTO through the region page for the facade's answer (keeping EIBCALEN/bytes for the next task), or document the byte[] answer.

Part of #4270.

Activity

  1. added
    enhancement
    legacy-modernization
    priority: low
    on Oct 8, 2026
  2. squid-protocol commented on Oct 9, 2026

    @squid-protocol
    OwnerAuthor

    This now blocks three CBSA screens from an equivalence case (#4270). Their det ports prove equal on every scenario, but the java-facade side refuses every task. CicsTask.returned(<the program's DTO>.class) gets the byte[] that DetCics.commareaOut passes for a RETURN whose LENGTH is past the DTO, and throws the task RETURNed a [B, not a ...Bnk1tfnWsCommarea (no layout converts one into the other). The DTOs have no fromCommarea, and BNK1UAC's carries a POINTER, which commarea_codec does not encode.

    The CardDemo facades in this issue answer Object.class, so they pass. These answer their DTO class, so they refuse. The case generators are kept in the handoff handoff-4270-cbsa-whole-cases.md.

  3. added
    scope:core
    era:3
    on Oct 16, 2026
  4. squid-protocol commented on Oct 16, 2026

    @squid-protocol
    OwnerAuthor

    Siblings: #5291 (forge facades, XCTL without COMMAREA) left open by PR #5290.

  5. added a commit that references this issue on Oct 22, 2026
    cf0bcb9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementera:3legacy-modernizationpriority: lowscope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions