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

[BUG] Fix the hardcode instance of check for NettyAttribute #3911

Closed
Gaganjuneja opened this issue Jan 3, 2024 · 3 comments · Fixed by #3917
Closed

[BUG] Fix the hardcode instance of check for NettyAttribute #3911

Gaganjuneja opened this issue Jan 3, 2024 · 3 comments · Fixed by #3917
Assignees
Labels
bug Something isn't working v2.12.0 Items targeting 2.12.0 v3.0.0

Comments

@Gaganjuneja
Copy link
Contributor

What is the bug?
Fix the hardcode instance of check for NettyAttribute. It fails if the HttpChannel is wrapped during the instrumentation.

if (request.getHttpChannel() instanceof Netty4HttpChannel) {

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

What is the expected behavior?
It shouldn't fail if tracing is enabled.

What is your host/environment?

  • OS: [e.g. iOS]
  • Version [e.g. 22]
  • Plugins

Do you have any screenshots?
If applicable, add screenshots to help explain your problem.

Do you have any additional context?
Add any other context about the problem.

@Gaganjuneja Gaganjuneja added bug Something isn't working untriaged Require the attention of the repository maintainers and may need to be prioritized labels Jan 3, 2024
@Gaganjuneja
Copy link
Contributor Author

@reta, need your help in fixing this. Thanks!

@reta
Copy link
Collaborator

reta commented Jan 3, 2024

@Gaganjuneja #3514 was supposed to fix that

@Gaganjuneja
Copy link
Contributor Author

@reta, yes, this line item was with you. Since that issue is closed so opened the new issue.

#3514 (comment)

@reta reta self-assigned this Jan 4, 2024
@reta reta removed the untriaged Require the attention of the repository maintainers and may need to be prioritized label Jan 4, 2024
@reta reta added v3.0.0 v2.12.0 Items targeting 2.12.0 labels Jan 4, 2024
willyborankin pushed a commit that referenced this issue Jan 5, 2024
…PIs instead of typecasting (#3917)

### Description
This is cherry-pick from
#3514 to use the
channel properties instead of type-casting

### Issues Resolved
Closes  #3911

Is this a backport? If so, please add backport PR # and/or commits #

### Testing
The change is covered by existing test suites

### Check List
- [X] New functionality includes testing
- [X] New functionality has been documented
- [X] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and
signing off your commits, please check
[here](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin).

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
reta added a commit to reta/security that referenced this issue Jan 5, 2024
…PIs instead of typecasting (opensearch-project#3917)

This is cherry-pick from
opensearch-project#3514 to use the
channel properties instead of type-casting

Closes  opensearch-project#3911

Is this a backport? If so, please add backport PR # and/or commits #

The change is covered by existing test suites

- [X] New functionality includes testing
- [X] New functionality has been documented
- [X] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and
signing off your commits, please check
[here](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin).

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
(cherry picked from commit b038f93)
dlin2028 pushed a commit to dlin2028/security that referenced this issue May 1, 2024
…PIs instead of typecasting (opensearch-project#3917)

### Description
This is cherry-pick from
opensearch-project#3514 to use the
channel properties instead of type-casting

### Issues Resolved
Closes  opensearch-project#3911

Is this a backport? If so, please add backport PR # and/or commits #

### Testing
The change is covered by existing test suites

### Check List
- [X] New functionality includes testing
- [X] New functionality has been documented
- [X] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and
signing off your commits, please check
[here](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin).

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v2.12.0 Items targeting 2.12.0 v3.0.0
Projects
None yet
2 participants