Skip to content

Toolkit.js errno value defined incorrectly #191

@kadler

Description

@kadler

Many APIs take an error code structure which has 4 fields: bytes provided, bytes available, message id, and a reserved padding field: https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_71/apiref/errorcodeformat.htm

Bytes provided must be set to a value at least 8 bytes or it will not be used and instead an exception message will be thrown. We define the basic error structure here, including a setlen option to set the bytes available. However, we mix up the order of the bytes available and bytes provided, meaning the API sees bytes available as 0.

This causes many of the tests to fail to run when using a non-*ALLOBJ user because the APIs fail and thrown an exception message, which XMLSERVICE may not handle particularly well it seems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions