You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2020/06/28 11:28:56 UTC
[shardingsphere-elasticjob-lite] branch master updated: Minor
updates (#855) (#856)
This is an automated email from the ASF dual-hosted git repository.
zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere-elasticjob-lite.git
The following commit(s) were added to refs/heads/master by this push:
new ab8ed32 Minor updates (#855) (#856)
ab8ed32 is described below
commit ab8ed329379b47dbc1c901d6a7f36105c2e82c22
Author: Tboy <gu...@immomo.com>
AuthorDate: Sun Jun 28 19:28:46 2020 +0800
Minor updates (#855) (#856)
---
.../elasticjob/lite/lifecycle/security/WwwAuthFilter.java | 2 +-
.../shardingsphere/elasticjob/lite/tracing/event/JobExecutionEvent.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/elastic-job-lite-lifecycle/src/main/java/org/apache/shardingsphere/elasticjob/lite/lifecycle/security/WwwAuthFilter.java b/elastic-job-lite-lifecycle/src/main/java/org/apache/shardingsphere/elasticjob/lite/lifecycle/security/WwwAuthFilter.java
index 0568c85..19d96f4 100644
--- a/elastic-job-lite-lifecycle/src/main/java/org/apache/shardingsphere/elasticjob/lite/lifecycle/security/WwwAuthFilter.java
+++ b/elastic-job-lite-lifecycle/src/main/java/org/apache/shardingsphere/elasticjob/lite/lifecycle/security/WwwAuthFilter.java
@@ -88,7 +88,7 @@ public final class WwwAuthFilter implements Filter {
HttpServletResponse httpResponse = (HttpServletResponse) response;
String authorization = httpRequest.getHeader("authorization");
if (null != authorization && authorization.length() > AUTH_PREFIX.length()) {
- authorization = authorization.substring(AUTH_PREFIX.length(), authorization.length());
+ authorization = authorization.substring(AUTH_PREFIX.length());
if ((rootUsername + ":" + rootPassword).equals(new String(Base64.decodeBase64(authorization)))) {
authenticateSuccess(httpResponse, false);
chain.doFilter(httpRequest, httpResponse);
diff --git a/elastic-job-lite-tracing/elastic-job-lite-tracing-api/src/main/java/org/apache/shardingsphere/elasticjob/lite/tracing/event/JobExecutionEvent.java b/elastic-job-lite-tracing/elastic-job-lite-tracing-api/src/main/java/org/apache/shardingsphere/elasticjob/lite/tracing/event/JobExecutionEvent.java
index e83263d..50eb831 100644
--- a/elastic-job-lite-tracing/elastic-job-lite-tracing-api/src/main/java/org/apache/shardingsphere/elasticjob/lite/tracing/event/JobExecutionEvent.java
+++ b/elastic-job-lite-tracing/elastic-job-lite-tracing-api/src/main/java/org/apache/shardingsphere/elasticjob/lite/tracing/event/JobExecutionEvent.java
@@ -71,7 +71,7 @@ public final class JobExecutionEvent implements JobEvent {
}
/**
- * execution failure.
+ * Execution failure.
*
* @param failureCause failure cause
* @return job execution event