Skip to content

toJson implementation for IamPolicy.java class is wrong. #4481

@coder0610

Description

@coder0610

Describe the bug

In toJson implementation, actions are being added to resources field.
Because of this, wrong json document is getting created.

image

Expected Behavior

toJson method should create correct json.

Current Behavior

In toJson implementation, actions are being added to resources field.
Because of this, wrong json document is getting created.

Reproduction Steps

Create a IamPolicy.java object , add resources to it.
Then convert it to json by calling toJson method.

Possible Solution

No response

Additional Information/Context

No response

AWS Java SDK version used

2.20.109

JDK version used

java 17

Operating System and version

windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions