Skip to content

fix(rest): restricting modification of fields.#4058

Open
rudra-superrr wants to merge 1 commit intoeclipse-sw360:mainfrom
siemens:fix/patch_endpoints
Open

fix(rest): restricting modification of fields.#4058
rudra-superrr wants to merge 1 commit intoeclipse-sw360:mainfrom
siemens:fix/patch_endpoints

Conversation

@rudra-superrr
Copy link
Copy Markdown
Contributor

Description: The PATCH endpoints for Components (PATCH /api/components/{id}) and Projects (PATCH /api/projects/{id}) currently allow users to overwrite immutable creation metadata fields:

Component/Project level: createdOn, createdBy
Attachment level: createdBy, createdTeam, createdOn

These fields are set at creation time and should not be modifiable afterwards. A user can currently send arbitrary values for these fields in a PATCH request body, and they will be persisted .

How to test:
Attempt to modify the above fields via patch endpoint.

@rudra-superrr rudra-superrr added needs code review needs general test This is general testing, meaning that there is no org specific issue to check for labels Apr 9, 2026
Signed-off-by: rudra-superrr <prabhuchopra@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs code review needs general test This is general testing, meaning that there is no org specific issue to check for

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant