-
Notifications
You must be signed in to change notification settings - Fork 238
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
telemetry(amazonq): invalid zip event #5265
Conversation
@@ -177,6 +177,21 @@ | |||
"reloaded" | |||
], | |||
"description": "Toolkit run state." | |||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this be added to common?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can follow up with a separate PR after this
...ws/toolkits/jetbrains/services/codewhisperer/codescan/sessionconfig/CodeScanSessionConfig.kt
Outdated
Show resolved
Hide resolved
@@ -195,6 +196,9 @@ class CodeScanSessionConfig( | |||
files.forEach { file -> | |||
try { | |||
val relativePath = "${project.name}/${file.relativeTo(projectRoot.toNioPath())}" | |||
if (relativePath.contains("../") || relativePath.contains("..\\")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will follow up
* telemetry(amazonq): invalid zip event * check windows path
Types of changes
Description
Service is receiving invalid zip files which are created with invalid entry path. This change adds a telemetry metric to capture more data when this happens.
Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.