未验证 提交 ec03cca3 编写于 作者: K kezhenxu94 提交者: GitHub

Bump up commons-compress version and polish LAL debug error message (#7668)

上级 96d3c1e5
......@@ -255,7 +255,7 @@ The text of each license is the standard Apache 2.0 license.
Apache: commons-collections 3.2.2: https://github.com/apache/commons-collections, Apache 2.0
Apache: commons-configuration 1.8: https://github.com/apache/commons-configuration, Apache 2.0
Apache: commons-io 2.4: https://github.com/apache/commons-io, Apache 2.0
Apache: commons-compress 1.20: https://github.com/apache/commons-compress, Apache 2.0
Apache: commons-compress 1.21: https://github.com/apache/commons-compress, Apache 2.0
Apache: commons-collections4 4.4: https://mvnrepository.com/artifact/org.apache.commons/commons-collections4, Apache 2.0
Apache: freemarker 2.3.28: https://github.com/apache/freemarker, Apache 2.0
netty 4.1.65: https://github.com/netty/netty/blob/4.1/LICENSE.txt, Apache 2.0
......
......@@ -76,6 +76,7 @@
<armeria.version>1.11.0</armeria.version>
<awaitility.version>3.0.0</awaitility.version>
<httpcore.version>4.4.13</httpcore.version>
<commons-compress.version>1.21</commons-compress.version>
</properties>
<dependencyManagement>
......@@ -533,6 +534,11 @@
<version>${awaitility.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>${commons-compress.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
</project>
......@@ -53,7 +53,9 @@ public class LogTestQuery implements GraphQLQueryResolver {
public LogTestResponse test(LogTestRequest request) throws Exception {
if (!config.isEnableLogTestTool()) {
throw new IllegalAccessException("LAL debug tool is not enabled");
throw new IllegalAccessException(
"LAL debug tool is not enabled. To enable, please set SW_QUERY_GRAPHQL_ENABLE_LOG_TEST_TOOL=true," +
"for more details, refer to https://skywalking.apache.org/docs/main/latest/en/setup/backend/configuration-vocabulary/");
}
requireNonNull(request, "request");
......
......@@ -86,7 +86,7 @@ public class LogTestQueryTest extends TestCase {
fail();
} catch (Exception e) {
assertTrue(e instanceof IllegalAccessException);
assertEquals("LAL debug tool is not enabled", e.getMessage());
assertTrue(e.getMessage().contains("LAL debug tool is not enabled"));
}
}
......
......@@ -21,7 +21,7 @@ client-java-proto-13.0.0.jar
commons-beanutils-1.9.4.jar
commons-codec-1.11.jar
commons-collections4-4.4.jar
commons-compress-1.20.jar
commons-compress-1.21.jar
commons-dbcp-1.4.jar
commons-io-2.6.jar
commons-lang3-3.12.0.jar
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册