Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Securely update add yao.component.GetOptions and deprecated SelectOptions #770

Merged
merged 2 commits into from
Nov 3, 2024

Conversation

trheyi
Copy link
Contributor

@trheyi trheyi commented Nov 3, 2024

Deprecation of yao.component.SelectOptions

If you are using yao.component.SelectOptions in the Select component, it is recommended to update immediately.

yao.component.SelectOptions has a data access vulnerability, which may allow unauthorized access to arbitrary model data through the API.

Replace it with yao.component.GetOptions, which allows direct querying in the component using the query prop.

{
  "bind": "where.status.in",
  "edit": {
    "type": "Select",
    "props": {
      "query": {
        "from": "pet",
        "select": ["status", "name"],
        "labelField": "name",
        "valueField": "status",
        "wheres": [{ "column": "id", "op": "ge", "value": 0 }],
        "limit": 2
      }
    }
}

@trheyi trheyi merged commit 8a80704 into YaoApp:main Nov 3, 2024
1 of 2 checks passed
Copy link

github-actions bot commented Nov 3, 2024

Thank you for the PR! The db: MySQL5.7 redis: 5 mongo: 6.0 test workflow is running, the results of the run will be commented later.

Copy link

github-actions bot commented Nov 3, 2024

Thank you for the PR! The db: MySQL8.0 redis: 6 mongo: 6.0 test workflow is running, the results of the run will be commented later.

Copy link

github-actions bot commented Nov 3, 2024

Thank you for the PR! The db: MySQL8.0 redis: 5 mongo: 6.0 test workflow is running, the results of the run will be commented later.

Copy link

github-actions bot commented Nov 3, 2024

Thank you for the PR! The db: MySQL5.7 redis: 4 mongo: 6.0 test workflow is running, the results of the run will be commented later.

Copy link

github-actions bot commented Nov 3, 2024

Thank you for the PR! The db: MySQL5.7 redis: 5 mongo: 6.0 test workflow is running, the results of the run will be commented later.

Copy link

github-actions bot commented Nov 3, 2024

Thank you for the PR! The db: MySQL5.7 redis: 6 mongo: 6.0 test workflow is running, the results of the run will be commented later.

Copy link

github-actions bot commented Nov 3, 2024

Thank you for the PR! The db: MySQL8.0 redis: 4 mongo: 6.0 test workflow is running, the results of the run will be commented later.

Copy link

github-actions bot commented Nov 3, 2024

Thank you for the PR! The db: SQLite3 redis: 5 mongo: 6.0 test workflow is running, the results of the run will be commented later.

Copy link

github-actions bot commented Nov 3, 2024

Thank you for the PR! The db: MySQL5.7 redis: 4 mongo: 6.0 test workflow is running, the results of the run will be commented later.

Copy link

github-actions bot commented Nov 3, 2024

Thank you for the PR! The db: SQLite3 redis: 6 mongo: 6.0 test workflow is running, the results of the run will be commented later.

Copy link

github-actions bot commented Nov 3, 2024

Thank you for the PR! The db: MySQL8.0 redis: 6 mongo: 6.0 test workflow is running, the results of the run will be commented later.

Copy link

github-actions bot commented Nov 3, 2024

Thank you for the PR! The db: SQLite3 redis: 4 mongo: 6.0 test workflow is running, the results of the run will be commented later.

Copy link

github-actions bot commented Nov 3, 2024

Thank you for the PR! The db: SQLite3 redis: 6 mongo: 6.0 test workflow is running, the results of the run will be commented later.

Copy link

github-actions bot commented Nov 3, 2024

Thank you for the PR! The db: SQLite3 redis: 5 mongo: 6.0 test workflow is running, the results of the run will be commented later.

Copy link

github-actions bot commented Nov 3, 2024

Thank you for the PR! The db: MySQL5.7 redis: 6 mongo: 6.0 test workflow is running, the results of the run will be commented later.

Copy link

github-actions bot commented Nov 3, 2024

Thank you for the PR! The db: MySQL8.0 redis: 5 mongo: 6.0 test workflow is running, the results of the run will be commented later.

Copy link

github-actions bot commented Nov 3, 2024

Thank you for the PR! The db: MySQL8.0 redis: 4 mongo: 6.0 test workflow is running, the results of the run will be commented later.

Copy link

github-actions bot commented Nov 3, 2024

Thank you for the PR! The db: SQLite3 redis: 4 mongo: 6.0 test workflow is running, the results of the run will be commented later.

Copy link

github-actions bot commented Nov 3, 2024

✨DONE✨ db: SQLite3 redis: 5 mongo: 6.0 passed.

Copy link

github-actions bot commented Nov 3, 2024

✨DONE✨ db: MySQL5.7 redis: 5 mongo: 6.0 passed.

Copy link

github-actions bot commented Nov 3, 2024

✨DONE✨ db: MySQL8.0 redis: 6 mongo: 6.0 passed.

Copy link

github-actions bot commented Nov 3, 2024

✨DONE✨ db: SQLite3 redis: 5 mongo: 6.0 passed.

Copy link

github-actions bot commented Nov 3, 2024

✨DONE✨ db: MySQL8.0 redis: 5 mongo: 6.0 passed.

Copy link

github-actions bot commented Nov 3, 2024

✨DONE✨ db: MySQL8.0 redis: 4 mongo: 6.0 passed.

Copy link

github-actions bot commented Nov 3, 2024

✨DONE✨ db: MySQL5.7 redis: 4 mongo: 6.0 passed.

Copy link

github-actions bot commented Nov 3, 2024

✨DONE✨ db: MySQL5.7 redis: 6 mongo: 6.0 passed.

Copy link

github-actions bot commented Nov 3, 2024

✨DONE✨ db: MySQL8.0 redis: 6 mongo: 6.0 passed.

Copy link

github-actions bot commented Nov 3, 2024

✨DONE✨ db: SQLite3 redis: 6 mongo: 6.0 passed.

Copy link

github-actions bot commented Nov 3, 2024

✨DONE✨ db: SQLite3 redis: 4 mongo: 6.0 passed.

Copy link

github-actions bot commented Nov 3, 2024

✨DONE✨ db: MySQL8.0 redis: 4 mongo: 6.0 passed.

Copy link

github-actions bot commented Nov 3, 2024

✨DONE✨ db: SQLite3 redis: 6 mongo: 6.0 passed.

Copy link

github-actions bot commented Nov 3, 2024

✨DONE✨ db: MySQL5.7 redis: 5 mongo: 6.0 passed.

Copy link

github-actions bot commented Nov 3, 2024

✨DONE✨ db: MySQL5.7 redis: 4 mongo: 6.0 passed.

Copy link

github-actions bot commented Nov 3, 2024

✨DONE✨ db: MySQL8.0 redis: 5 mongo: 6.0 passed.

Copy link

github-actions bot commented Nov 3, 2024

✨DONE✨ db: MySQL5.7 redis: 6 mongo: 6.0 passed.

Copy link

github-actions bot commented Nov 3, 2024

✨DONE✨ db: SQLite3 redis: 4 mongo: 6.0 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.

1 participant