-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed Security Exceptions For Requests Wihtout PPL Access
Signed-off-by: Vamsi Manohar <reddyvam@amazon.com>
- Loading branch information
1 parent
627189b
commit 338fc45
Showing
9 changed files
with
91 additions
and
16 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
...es/src/main/java/org/opensearch/sql/datasources/exceptions/DataSourceClientException.java
This file contains 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,19 @@ | ||
/* | ||
* | ||
* * Copyright OpenSearch Contributors | ||
* * SPDX-License-Identifier: Apache-2.0 | ||
* | ||
*/ | ||
|
||
package org.opensearch.sql.datasources.exceptions; | ||
|
||
/** | ||
* This is the base class for all DataSource Client Exceptions. All datasource connector modules | ||
* will extend this exception for their respective connection clients. | ||
*/ | ||
public class DataSourceClientException extends RuntimeException { | ||
|
||
public DataSourceClientException(String message) { | ||
super(message); | ||
} | ||
Check warning on line 18 in datasources/src/main/java/org/opensearch/sql/datasources/exceptions/DataSourceClientException.java Codecov / codecov/patchdatasources/src/main/java/org/opensearch/sql/datasources/exceptions/DataSourceClientException.java#L17-L18
|
||
} |
This file contains 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
This file contains 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
17 changes: 17 additions & 0 deletions
17
...eus/src/main/java/org/opensearch/sql/prometheus/exceptions/PrometheusClientException.java
This file contains 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,17 @@ | ||
/* | ||
* | ||
* * Copyright OpenSearch Contributors | ||
* * SPDX-License-Identifier: Apache-2.0 | ||
* | ||
*/ | ||
|
||
package org.opensearch.sql.prometheus.exceptions; | ||
|
||
import org.opensearch.sql.datasources.exceptions.DataSourceClientException; | ||
|
||
/** PrometheusClientException. */ | ||
public class PrometheusClientException extends DataSourceClientException { | ||
public PrometheusClientException(String message) { | ||
super(message); | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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 @@ | ||
fadsfadsfasdfasdfadsfasdfadsfadsf |