Skip to content

Conversation

@ashanthamara
Copy link
Contributor

@ashanthamara ashanthamara commented Aug 11, 2025

Purpose

As allowed headers and parameters support is not available in action execution, this PR restrict configuring actions with allowed headers and parameters.

Related Issue

Copilot AI review requested due to automatic review settings August 11, 2025 21:03
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR restricts the configuration of allowed headers and parameters for Pre Update Password and Pre Update Profile actions, as these features are not supported during action execution. The changes ensure that API consumers cannot attempt to configure unsupported functionality.

  • Remove allowed headers and parameters examples from OpenAPI documentation
  • Add validation to reject requests containing allowed headers or parameters for these action types
  • Include descriptive error messages for unsupported configuration attempts

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
Actions.yaml Removes allowedHeaders and allowedParameters examples from Pre Update Password and Pre Update Profile action documentation
PreUpdateProfileActionMapper.java Adds validation to reject allowed headers/parameters configuration with appropriate error handling
PreUpdatePasswordActionMapper.java Adds validation to reject allowed headers/parameters configuration with appropriate error handling
ActionMgtEndpointConstants.java Defines new error messages for unsupported allowed headers and parameters

@jenkins-is-staging
Copy link

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/16892102230

@wso2-engineering-bot
Copy link

AI Agent Log Improvement Checklist

⚠️ Warning: AI-Generated Review Comments

  • The log-related comments and suggestions in this review were generated by an AI tool to assist with identifying potential improvements. Purpose of reviewing the code for log improvements is to improve the troubleshooting capabilities of our products.
  • Please make sure to manually review and validate all suggestions before applying any changes. Not every code suggestion would make sense or add value to our purpose. Therefore, you have the freedom to decide which of the suggestions are helpful.

✅ Before merging this pull request:

  • Review all AI-generated comments for accuracy and relevance.
  • Complete and verify the table below. We need your feedback to measure the accuracy of these suggestions and the value they add. If you are rejecting a certain code suggestion, please mention the reason briefly in the suggestion for us to capture it.
Comment Accepted (Y/N) Reason
#### Log Improvement Suggestion No: 3
#### Log Improvement Suggestion No: 4
#### Log Improvement Suggestion No: 6
#### Log Improvement Suggestion No: 9

@jenkins-is-staging
Copy link

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/16892102230
Status: success

Copy link

@jenkins-is-staging jenkins-is-staging left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving the pull request based on the successful pr build https://github.com/wso2/product-is/actions/runs/16892102230

@indeewari indeewari merged commit 4ce0bbb into wso2:master Aug 12, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants