-
Notifications
You must be signed in to change notification settings - Fork 1k
JavaScript Snippet Injection #7650
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
7fdfcdb
JavaScript snippet injection
siyuniu-ms 25c2af1
Avoid dependency on globals for unit tests
trask 8f9813d
Update Servlet3OutputStreamWriteBytesAndOffsetAdvice.java
siyuniu-ms d2af9ca
update comments
siyuniu-ms 95a6714
Update instrumentation/servlet/servlet-3.0/javaagent/src/main/java/io…
siyuniu-ms 6a5329a
Update instrumentation/servlet/servlet-3.0/javaagent/src/main/java/io…
siyuniu-ms 85c43e1
Update instrumentation/servlet/servlet-3.0/javaagent/src/main/java/io…
siyuniu-ms 6d422bf
Update instrumentation/servlet/servlet-3.0/javaagent/src/main/java/io…
siyuniu-ms f597144
Update SnippetInjectingResponseWrapper.java
siyuniu-ms 9fc8899
Update Servlet3Singletons.java
siyuniu-ms 1919eb0
JavaScript snippet injection
siyuniu-ms 26b55c5
Avoid dependency on globals for unit tests
trask 72563d2
Update Servlet3OutputStreamWriteBytesAndOffsetAdvice.java
siyuniu-ms bd024bc
update comments
siyuniu-ms 3bd615e
Update instrumentation/servlet/servlet-3.0/javaagent/src/main/java/io…
siyuniu-ms 79b2ed5
Update instrumentation/servlet/servlet-3.0/javaagent/src/main/java/io…
siyuniu-ms c1b5da5
Update instrumentation/servlet/servlet-3.0/javaagent/src/main/java/io…
siyuniu-ms f0715a1
Update instrumentation/servlet/servlet-3.0/javaagent/src/main/java/io…
siyuniu-ms 7554774
Update SnippetInjectingResponseWrapper.java
siyuniu-ms 2097d0b
Update Servlet3Singletons.java
siyuniu-ms e64c3c5
Merge branch 'pr/6381' of https://github.com/siyuniu-ms/opentelemetry…
siyuniu-ms bf171da
Merge remote-tracking branch 'upstream/main' into pr/6381
siyuniu-ms 1008aef
refactor, rename
siyuniu-ms ca7eb61
Merge remote-tracking branch 'upstream/main' into pr/6381
trask b46cbff
Some refactoring of the unit tests
trask db6dcaa
Update instrumentation/servlet/servlet-3.0/javaagent/src/test/groovy/…
trask 0aa85b0
Update instrumentation/servlet/servlet-3.0/javaagent/src/main/java/io…
siyuniu-ms 175c2f4
change naming and util test
siyuniu-ms df43675
optimization on PrintWriter
siyuniu-ms 4a35251
change based on comments
siyuniu-ms 6aaf18b
update for atomicity
siyuniu-ms eff7aba
Update ExperimentalSnippetHolder.java
siyuniu-ms 5f33dca
initial value change to empty string
siyuniu-ms 4d269b8
remove unnecessary print
siyuniu-ms cdc0cd4
Merge branch 'main' into pr/6381
siyuniu-ms 390bf48
Update ExperimentalSnippetHolder.java
siyuniu-ms be5d10a
Update ExperimentalSnippetHolder.java
siyuniu-ms e775627
Merge remote-tracking branch 'upstream/main' into pr/6381
siyuniu-ms 06dcd94
change based on new serverEndpoint
siyuniu-ms b47fbd1
solve the import error
siyuniu-ms c184c86
Update ServerEndpoint.java
siyuniu-ms 672e8a7
Update AbstractServlet3Test.groovy
siyuniu-ms File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
instrumentation/servlet/servlet-3.0/javaagent-unit-tests/build.gradle.kts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| plugins { | ||
| id("otel.java-conventions") | ||
| } | ||
|
|
||
| dependencies { | ||
| testImplementation("javax.servlet:javax.servlet-api:3.0.1") | ||
| testImplementation(project(":instrumentation:servlet:servlet-common:bootstrap")) | ||
| testImplementation(project(":instrumentation:servlet:servlet-3.0:javaagent")) | ||
| } | ||
184 changes: 184 additions & 0 deletions
184
...t/java/io/opentelemetry/javaagent/instrumentation/servlet/v3_0/snippet/InjectionTest.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,184 @@ | ||
| /* | ||
| * Copyright The OpenTelemetry Authors | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
|
|
||
| package io.opentelemetry.javaagent.instrumentation.servlet.v3_0.snippet; | ||
|
|
||
| import static io.opentelemetry.javaagent.instrumentation.servlet.v3_0.snippet.TestUtil.readFile; | ||
| import static org.assertj.core.api.AssertionsForClassTypes.assertThat; | ||
| import static org.mockito.Mockito.mock; | ||
| import static org.mockito.Mockito.when; | ||
|
|
||
| import io.opentelemetry.javaagent.bootstrap.servlet.ExperimentalSnippetHolder; | ||
| import java.io.IOException; | ||
| import java.io.StringWriter; | ||
| import java.nio.charset.StandardCharsets; | ||
| import javax.servlet.ServletOutputStream; | ||
| import org.junit.jupiter.api.Disabled; | ||
| import org.junit.jupiter.api.Test; | ||
|
|
||
| class InjectionTest { | ||
siyuniu-ms marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| @Test | ||
| void testInjectionForStringContainHeadTag() throws IOException { | ||
| String testSnippet = "\n <script type=\"text/javascript\"> Test </script>"; | ||
| ExperimentalSnippetHolder.setSnippet(testSnippet); | ||
trask marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| // read the originalFile | ||
| String original = readFile("staticHtmlOrigin.html"); | ||
| // read the correct answer | ||
| String correct = readFile("staticHtmlAfter.html"); | ||
| byte[] originalBytes = original.getBytes(StandardCharsets.UTF_8); | ||
| SnippetInjectingResponseWrapper response = mock(SnippetInjectingResponseWrapper.class); | ||
| when(response.isCommitted()).thenReturn(false); | ||
| when(response.getCharacterEncoding()).thenReturn(StandardCharsets.UTF_8.name()); | ||
| InjectionState obj = new InjectionState(response); | ||
|
|
||
| StringWriter writer = new StringWriter(); | ||
|
|
||
| ServletOutputStream sp = | ||
| new ServletOutputStream() { | ||
| @Override | ||
| public void write(int b) throws IOException { | ||
| writer.write(b); | ||
| } | ||
| }; | ||
| boolean injected = | ||
| ServletOutputStreamInjectionHelper.handleWrite( | ||
| originalBytes, 0, originalBytes.length, obj, sp); | ||
| assertThat(obj.getHeadTagBytesSeen()).isEqualTo(-1); | ||
| assertThat(injected).isEqualTo(true); | ||
| writer.flush(); | ||
|
|
||
| String result = writer.toString(); | ||
| writer.close(); | ||
| assertThat(result).isEqualTo(correct); | ||
| } | ||
|
|
||
| @Test | ||
| @Disabled | ||
| void testInjectionForChinese() throws IOException { | ||
| String testSnippet = "\n <script type=\"text/javascript\"> Test </script>"; | ||
| ExperimentalSnippetHolder.setSnippet(testSnippet); | ||
| // read the originalFile | ||
| String original = readFile("staticHtmlChineseOrigin.html"); | ||
| // read the correct answer | ||
| String correct = readFile("staticHtmlChineseAfter.html"); | ||
| byte[] originalBytes = original.getBytes(StandardCharsets.UTF_8); | ||
| SnippetInjectingResponseWrapper response = mock(SnippetInjectingResponseWrapper.class); | ||
| when(response.isCommitted()).thenReturn(false); | ||
| when(response.getCharacterEncoding()).thenReturn(StandardCharsets.UTF_8.name()); | ||
| InjectionState obj = new InjectionState(response); | ||
|
|
||
| StringWriter writer = new StringWriter(); | ||
|
|
||
| ServletOutputStream sp = | ||
| new ServletOutputStream() { | ||
| @Override | ||
| public void write(int b) throws IOException { | ||
| writer.write(b); | ||
| } | ||
| }; | ||
| boolean injected = | ||
| ServletOutputStreamInjectionHelper.handleWrite( | ||
| originalBytes, 0, originalBytes.length, obj, sp); | ||
| assertThat(obj.getHeadTagBytesSeen()).isEqualTo(-1); | ||
| assertThat(injected).isEqualTo(true); | ||
| writer.flush(); | ||
|
|
||
| String result = writer.toString(); | ||
| writer.close(); | ||
| assertThat(result).isEqualTo(correct); | ||
| } | ||
|
|
||
| @Test | ||
| void testInjectionForStringWithoutHeadTag() throws IOException { | ||
| String testSnippet = "\n <script type=\"text/javascript\"> Test </script>"; | ||
| ExperimentalSnippetHolder.setSnippet(testSnippet); | ||
siyuniu-ms marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| // read the originalFile | ||
| String original = readFile("htmlWithoutHeadTag.html"); | ||
|
|
||
| byte[] originalBytes = original.getBytes(StandardCharsets.UTF_8); | ||
| SnippetInjectingResponseWrapper response = mock(SnippetInjectingResponseWrapper.class); | ||
| when(response.isCommitted()).thenReturn(false); | ||
| when(response.getCharacterEncoding()).thenReturn(StandardCharsets.UTF_8.name()); | ||
| InjectionState obj = new InjectionState(response); | ||
| StringWriter writer = new StringWriter(); | ||
|
|
||
| ServletOutputStream sp = | ||
| new ServletOutputStream() { | ||
| @Override | ||
| public void write(int b) throws IOException { | ||
| writer.write(b); | ||
| } | ||
| }; | ||
| boolean injected = | ||
| ServletOutputStreamInjectionHelper.handleWrite( | ||
| originalBytes, 0, originalBytes.length, obj, sp); | ||
| assertThat(obj.getHeadTagBytesSeen()).isEqualTo(0); | ||
| assertThat(injected).isEqualTo(false); | ||
| writer.flush(); | ||
| String result = writer.toString(); | ||
| writer.close(); | ||
| assertThat(result).isEqualTo(""); | ||
| } | ||
|
|
||
| @Test | ||
| void testHalfHeadTag() throws IOException { | ||
siyuniu-ms marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| String testSnippet = "\n <script type=\"text/javascript\"> Test </script>"; | ||
| ExperimentalSnippetHolder.setSnippet(testSnippet); | ||
| // read the original string | ||
| String originalFirstPart = "<!DOCTYPE html>\n" + "<html lang=\"en\">\n" + "<he"; | ||
| byte[] originalFirstPartBytes = originalFirstPart.getBytes(StandardCharsets.UTF_8); | ||
| SnippetInjectingResponseWrapper response = mock(SnippetInjectingResponseWrapper.class); | ||
| when(response.isCommitted()).thenReturn(false); | ||
| when(response.getCharacterEncoding()).thenReturn(StandardCharsets.UTF_8.name()); | ||
| InjectionState obj = new InjectionState(response); | ||
| StringWriter writer = new StringWriter(); | ||
|
|
||
| ServletOutputStream sp = | ||
| new ServletOutputStream() { | ||
| @Override | ||
| public void write(int b) throws IOException { | ||
| writer.write(b); | ||
| } | ||
| }; | ||
| boolean injected = | ||
| ServletOutputStreamInjectionHelper.handleWrite( | ||
| originalFirstPartBytes, 0, originalFirstPartBytes.length, obj, sp); | ||
|
|
||
| writer.flush(); | ||
| String result = writer.toString(); | ||
| assertThat(obj.getHeadTagBytesSeen()).isEqualTo(3); | ||
| assertThat(result).isEqualTo(""); | ||
| assertThat(injected).isEqualTo(false); | ||
| String originalSecondPart = | ||
| "ad>\n" | ||
| + " <meta charset=\"UTF-8\">\n" | ||
| + " <title>Title</title>\n" | ||
| + "</head>\n" | ||
| + "<body>\n" | ||
| + "\n" | ||
| + "</body>\n" | ||
| + "</html>"; | ||
| byte[] originalSecondPartBytes = originalSecondPart.getBytes(StandardCharsets.UTF_8); | ||
| injected = | ||
| ServletOutputStreamInjectionHelper.handleWrite( | ||
| originalSecondPartBytes, 0, originalSecondPartBytes.length, obj, sp); | ||
| assertThat(obj.getHeadTagBytesSeen()).isEqualTo(-1); | ||
| assertThat(injected).isEqualTo(true); | ||
| String correctSecondPart = | ||
| "ad>\n" | ||
| + " <script type=\"text/javascript\"> Test </script>\n" | ||
| + " <meta charset=\"UTF-8\">\n" | ||
| + " <title>Title</title>\n" | ||
| + "</head>\n" | ||
| + "<body>\n" | ||
| + "\n" | ||
| + "</body>\n" | ||
| + "</html>"; | ||
| writer.flush(); | ||
| result = writer.toString(); | ||
| assertThat(result).isEqualTo(correctSecondPart); | ||
| } | ||
| } | ||
189 changes: 189 additions & 0 deletions
189
...y/javaagent/instrumentation/servlet/v3_0/snippet/SnippetInjectingResponseWrapperTest.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,189 @@ | ||
| /* | ||
| * Copyright The OpenTelemetry Authors | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
|
|
||
| package io.opentelemetry.javaagent.instrumentation.servlet.v3_0.snippet; | ||
|
|
||
| import static io.opentelemetry.javaagent.instrumentation.servlet.v3_0.snippet.TestUtil.readFile; | ||
| import static org.assertj.core.api.AssertionsForClassTypes.assertThat; | ||
| import static org.mockito.Mockito.mock; | ||
| import static org.mockito.Mockito.when; | ||
|
|
||
| import io.opentelemetry.javaagent.bootstrap.servlet.ExperimentalSnippetHolder; | ||
| import java.io.IOException; | ||
| import java.io.PrintWriter; | ||
| import java.io.StringWriter; | ||
| import java.nio.charset.Charset; | ||
| import javax.servlet.http.HttpServletResponse; | ||
| import org.junit.jupiter.api.Disabled; | ||
| import org.junit.jupiter.api.Test; | ||
|
|
||
| class SnippetInjectingResponseWrapperTest { | ||
|
|
||
| @Test | ||
| void testInjectToTextHtml() throws IOException { | ||
|
|
||
| // read the originalFile | ||
| String original = readFile("staticHtmlOrigin.html"); | ||
| String correct = readFile("staticHtmlAfter.html"); | ||
| HttpServletResponse response = mock(HttpServletResponse.class); | ||
| when(response.getContentType()).thenReturn("text/html"); | ||
| when(response.getStatus()).thenReturn(200); | ||
| when(response.containsHeader("content-type")).thenReturn(true); | ||
| StringWriter writer = new StringWriter(); | ||
| when(response.getWriter()).thenReturn(new PrintWriter(writer)); | ||
| ExperimentalSnippetHolder.setSnippet("\n <script type=\"text/javascript\"> Test </script>"); | ||
| SnippetInjectingResponseWrapper responseWrapper = new SnippetInjectingResponseWrapper(response); | ||
| responseWrapper.getWriter().write(original); | ||
| responseWrapper.getWriter().flush(); | ||
| responseWrapper.getWriter().close(); | ||
|
|
||
| // read file get result | ||
| String result = writer.toString(); | ||
| writer.close(); | ||
| // check whether new response == correct answer | ||
siyuniu-ms marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| assertThat(result).isEqualTo(correct); | ||
| } | ||
|
|
||
| @Test | ||
| @Disabled | ||
| void testInjectToChineseTextHtml() throws IOException { | ||
|
|
||
| // read the originalFile | ||
| String original = readFile("staticHtmlChineseOrigin.html"); | ||
| String correct = readFile("staticHtmlChineseAfter.html"); | ||
| HttpServletResponse response = mock(HttpServletResponse.class); | ||
| when(response.getContentType()).thenReturn("text/html"); | ||
|
|
||
| StringWriter writer = new StringWriter(); | ||
| when(response.getWriter()).thenReturn(new PrintWriter(writer)); | ||
| ExperimentalSnippetHolder.setSnippet("\n <script type=\"text/javascript\"> Test </script>"); | ||
| SnippetInjectingResponseWrapper responseWrapper = new SnippetInjectingResponseWrapper(response); | ||
| responseWrapper.getWriter().write(original); | ||
| responseWrapper.getWriter().flush(); | ||
| responseWrapper.getWriter().close(); | ||
|
|
||
| // read file get result | ||
| String result = writer.toString(); | ||
| writer.close(); | ||
| // check whether new response == correct answer | ||
| assertThat(result).isEqualTo(correct); | ||
| } | ||
|
|
||
| @Test | ||
| void shouldNotInjectToTextHtml() throws IOException { | ||
|
|
||
| // read the originalFile | ||
| String original = readFile("staticHtmlOrigin.html"); | ||
|
|
||
| StringWriter writer = new StringWriter(); | ||
| HttpServletResponse response = mock(HttpServletResponse.class); | ||
| when(response.getContentType()).thenReturn("not/text"); | ||
| when(response.getStatus()).thenReturn(200); | ||
| when(response.containsHeader("content-type")).thenReturn(true); | ||
|
|
||
| when(response.getWriter()).thenReturn(new PrintWriter(writer, true)); | ||
| ExperimentalSnippetHolder.setSnippet("\n <script type=\"text/javascript\"> Test </script>"); | ||
|
|
||
| SnippetInjectingResponseWrapper responseWrapper = new SnippetInjectingResponseWrapper(response); | ||
| responseWrapper.getWriter().write(original); | ||
| responseWrapper.getWriter().flush(); | ||
| responseWrapper.getWriter().close(); | ||
|
|
||
| // read file get result | ||
| String result = writer.toString(); | ||
| writer.close(); | ||
| // check whether new response == correct answer | ||
| assertThat(result).isEqualTo(original); | ||
| } | ||
|
|
||
| @Test | ||
| void testWriteInt() throws IOException { | ||
|
|
||
| // read the originalFile | ||
| String original = readFile("staticHtmlOrigin.html"); | ||
| String correct = readFile("staticHtmlAfter.html"); | ||
| HttpServletResponse response = mock(HttpServletResponse.class); | ||
| when(response.getContentType()).thenReturn("text/html"); | ||
|
|
||
| StringWriter writer = new StringWriter(); | ||
| // StringWriter correctWriter = new StringWriter(); | ||
siyuniu-ms marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| when(response.getWriter()).thenReturn(new PrintWriter(writer)); | ||
| ExperimentalSnippetHolder.setSnippet("\n <script type=\"text/javascript\"> Test </script>"); | ||
| SnippetInjectingResponseWrapper responseWrapper = new SnippetInjectingResponseWrapper(response); | ||
| byte[] originalBytes = original.getBytes(Charset.defaultCharset().name()); | ||
| // byte[] correctBytes = correct.getBytes(UTF_8); | ||
| // PrintWriter correctPw = new PrintWriter(correctWriter); | ||
siyuniu-ms marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| for (int i = 0; i < originalBytes.length; i++) { | ||
| responseWrapper.getWriter().write(originalBytes[i]); | ||
| } | ||
|
|
||
| responseWrapper.getWriter().flush(); | ||
| responseWrapper.getWriter().close(); | ||
|
|
||
| // read file get result | ||
| String result = writer.toString(); | ||
| writer.close(); | ||
| // check whether new response == correct answer | ||
| assertThat(result).isEqualTo(correct); | ||
| } | ||
|
|
||
| @Test | ||
| void testWriteCharArray() throws IOException { | ||
|
|
||
| // read the originalFile | ||
| String original = readFile("staticHtmlChineseOrigin.html"); | ||
| String correct = readFile("staticHtmlChineseAfter.html"); | ||
| HttpServletResponse response = mock(HttpServletResponse.class); | ||
| when(response.getContentType()).thenReturn("text/html"); | ||
| when(response.getStatus()).thenReturn(200); | ||
| when(response.containsHeader("content-type")).thenReturn(true); | ||
|
|
||
| StringWriter writer = new StringWriter(); | ||
| when(response.getWriter()).thenReturn(new PrintWriter(writer)); | ||
| ExperimentalSnippetHolder.setSnippet("\n <script type=\"text/javascript\"> Test </script>"); | ||
| SnippetInjectingResponseWrapper responseWrapper = new SnippetInjectingResponseWrapper(response); | ||
| char[] originalChars = original.toCharArray(); | ||
| responseWrapper.getWriter().write(originalChars, 0, originalChars.length); | ||
| responseWrapper.getWriter().flush(); | ||
| responseWrapper.getWriter().close(); | ||
|
|
||
| // read file get result | ||
| String result = writer.toString(); | ||
| writer.close(); | ||
| // check whether new response == correct answer | ||
| assertThat(result).isEqualTo(correct); | ||
| } | ||
|
|
||
| @Test | ||
| void testWriteWithOffset() throws IOException { | ||
|
|
||
| // read the originalFile | ||
| String original = readFile("staticHtmlChineseOrigin.html"); | ||
| String correct = readFile("staticHtmlChineseAfter.html"); | ||
| String extraBuffer = "this buffer should not be print out"; | ||
| original = extraBuffer + original; | ||
| HttpServletResponse response = mock(HttpServletResponse.class); | ||
| when(response.getContentType()).thenReturn("text/html"); | ||
| when(response.getStatus()).thenReturn(200); | ||
| when(response.containsHeader("content-type")).thenReturn(true); | ||
|
|
||
| StringWriter writer = new StringWriter(); | ||
| when(response.getWriter()).thenReturn(new PrintWriter(writer)); | ||
| ExperimentalSnippetHolder.setSnippet("\n <script type=\"text/javascript\"> Test </script>"); | ||
| SnippetInjectingResponseWrapper responseWrapper = new SnippetInjectingResponseWrapper(response); | ||
|
|
||
| responseWrapper | ||
| .getWriter() | ||
| .write(original, extraBuffer.length(), original.length() - extraBuffer.length()); | ||
| responseWrapper.getWriter().flush(); | ||
| responseWrapper.getWriter().close(); | ||
|
|
||
| // read file get result | ||
| String result = writer.toString(); | ||
| writer.close(); | ||
| // check whether new response == correct answer | ||
| assertThat(result).isEqualTo(correct); | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.