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

Fix web service crash(issue:#4398) #4405

Merged
merged 1 commit into from
Jul 13, 2022

Conversation

Milittle
Copy link
Contributor

@Milittle Milittle commented Jul 12, 2022

What type of PR is this?

  • bug

What problem(s) does this PR solve?

Issue(s) number: #4398

Description:

  • when we use flags put interface, but we does not specify the body.
  • The service will be crashed.
    For example:
    curl -X PUT xxx.xxx.xxx.xxxx:19559/flags

How do you solve it?

Checking for body_, if we got nullptr, Ignore this request.

Special notes for your reviewer, ex. impact of this fix, design document, etc:

Checklist:

Tests:

  • N/A

Affects:

  • N/A

Release notes:

Please confirm whether to be reflected in release notes and how to describe:

ex. Fixed the bug of service when we use put flags interface, but we does not specify body.

@CLAassistant
Copy link

CLAassistant commented Jul 12, 2022

CLA assistant check
All committers have signed the CLA.

* when we use flags put interface, but we does not specify the body.
* The service will be crashed.
For example:
curl -X PUT xxx.xxx.xxx.xxxx:19559/flags
@Sophie-Xie Sophie-Xie added ready-for-testing PR: ready for the CI test cherry-pick-v3.2 PR: need cherry-pick to this version labels Jul 12, 2022
Copy link
Contributor

@dutor dutor left a comment

Choose a reason for hiding this comment

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

lgtm

@critical27 critical27 merged commit 7ce81ee into vesoft-inc:master Jul 13, 2022
Sophie-Xie pushed a commit that referenced this pull request Jul 13, 2022
* when we use flags put interface, but we does not specify the body.
* The service will be crashed.
For example:
curl -X PUT xxx.xxx.xxx.xxxx:19559/flags
critical27 pushed a commit that referenced this pull request Jul 13, 2022
* Fix web service crash(issue:#4398) (#4405)

* when we use flags put interface, but we does not specify the body.
* The service will be crashed.
For example:
curl -X PUT xxx.xxx.xxx.xxxx:19559/flags

* Fix delete vertex or edge, the storage crashed.(#4397) (#4406)

* When our space has tag index or edge index.
* When delete vertex or edge, we specify one vid more than our defined
  in space.
* The sotrage will be crashed.

Solution:
1. Add vid valid verfication.

Co-authored-by: Sophie <[email protected]>

* Release with separate debug info in ELF format (#4400)

Co-authored-by: Milittle <[email protected]>
Co-authored-by: dutor <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick-v3.2 PR: need cherry-pick to this version ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants