minor fixes
This commit is contained in:
parent
50e6daebff
commit
abfb0704e0
2 changed files with 4 additions and 2 deletions
|
|
@ -103,6 +103,7 @@ public class DataRestService {
|
|||
String baseURI = servletRequest.getRequestURL().toString();
|
||||
|
||||
baseURI = baseURI.substring(0, baseURI.indexOf("/data/report/" + name));
|
||||
baseURI = baseURI.replace("http://", "https://");
|
||||
logger.info("Base URL=" + baseURI);
|
||||
Client client = createClient(baseURI, token);
|
||||
|
||||
|
|
@ -155,12 +156,13 @@ public class DataRestService {
|
|||
String url = client.getBaseURI() + "documents/";
|
||||
WebTarget target = rsClient.target(url);
|
||||
Response response = target.request().get();
|
||||
if (response.getStatus() == 200) {
|
||||
if (response.getStatus() == 200 || response.getStatus() == 308) {
|
||||
String result = response.readEntity(String.class);
|
||||
if (result.contains("j_password")) {
|
||||
logger.info("Request failed - login failed");
|
||||
return null;
|
||||
}
|
||||
logger.info("login successful");
|
||||
} else {
|
||||
logger.info("Request failed with status code: " + response.getStatus());
|
||||
return null;
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
<h:panelGroup layout="block" styleClass="imixs-form-section" id="oplist-table" binding="#{opListContainer}">
|
||||
|
||||
<h:selectOneRadio value="#{opListController.currencyFilter}" style="float:right;" rendered="#{!readonly}">
|
||||
<f:selectItem itemLabel="#{message['form.all']}" itemValue="-" />
|
||||
<f:selectItem itemLabel="#{custom['form.all']}" itemValue="-" />
|
||||
<f:selectItems value="#{aglConfigController.getSelectItems('currency.out')}" />
|
||||
<f:ajax render="oplist-table" />
|
||||
</h:selectOneRadio>
|
||||
|
|
|
|||
Loading…
Reference in a new issue