This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/master by this push:
new dc3199c Supporting YAML in BinaryTextPreviewer
dc3199c is described below
commit dc3199cbf170a2acd78eed7379d66f3f3f054bf9
Author: Francesco Chicchiriccò <[email protected]>
AuthorDate: Thu May 20 06:17:51 2021 +0200
Supporting YAML in BinaryTextPreviewer
---
...ctMIMETypesLoader.java => MIMETypesLoader.java} | 10 +-
.../html/form/preview/BinaryTextPreviewer.java | 28 +-
.../src/main/resources/MIMETypes.json | 3 +
.../html/form/preview/BinaryTextPreviewer.html | 5 +-
.../client/console/SyncopeConsoleApplication.java | 2 +-
.../client/console/init/MIMETypesLoader.java | 31 -
.../client/console/panels/PlainSchemaDetails.java | 2 +-
.../markup/html/form/BinaryFieldDownload.java | 2 +-
.../syncope/client/console/AbstractTest.java | 4 +-
.../client/enduser/SyncopeEnduserApplication.java | 2 +-
.../client/enduser/init/MIMETypesLoader.java | 31 -
.../enduser/markup/html/form/AjaxDownload.java | 2 +-
.../enduser/src/main/resources/MIMETypes.json | 1289 --------------------
.../syncope/fit/console/AbstractConsoleITCase.java | 2 +-
.../syncope/fit/enduser/AbstractEnduserITCase.java | 2 +-
15 files changed, 38 insertions(+), 1377 deletions(-)
diff --git
a/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/AbstractMIMETypesLoader.java
b/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/MIMETypesLoader.java
similarity index 90%
rename from
client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/AbstractMIMETypesLoader.java
rename to
client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/MIMETypesLoader.java
index 2ca0a67..34d1df5 100644
---
a/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/AbstractMIMETypesLoader.java
+++
b/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/MIMETypesLoader.java
@@ -20,18 +20,18 @@ package org.apache.syncope.client.ui.commons;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
-import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import org.apache.wicket.util.io.IOUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-public abstract class AbstractMIMETypesLoader {
+public class MIMETypesLoader {
- protected static final Logger LOG =
LoggerFactory.getLogger(AbstractMIMETypesLoader.class);
+ protected static final Logger LOG =
LoggerFactory.getLogger(MIMETypesLoader.class);
protected static final ObjectMapper MAPPER = new ObjectMapper();
@@ -42,7 +42,7 @@ public abstract class AbstractMIMETypesLoader {
public void load() {
mimeTypesMap = new HashMap<>();
try {
- JsonNode jsonNode = MAPPER.readTree(getMimeTypesFile());
+ JsonNode jsonNode =
MAPPER.readTree(IOUtils.toString(getClass().getResourceAsStream("/MIMETypes.json")));
for (JsonNode node : jsonNode) {
JsonNode type = node.path("name");
JsonNode ext = node.path("extension");
@@ -62,8 +62,6 @@ public abstract class AbstractMIMETypesLoader {
}
}
- protected abstract String getMimeTypesFile() throws IOException;
-
public List<String> getMimeTypes() {
return mimeTypes;
}
diff --git
a/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/markup/html/form/preview/BinaryTextPreviewer.java
b/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/markup/html/form/preview/BinaryTextPreviewer.java
index 5632cea..c424bca 100644
---
a/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/markup/html/form/preview/BinaryTextPreviewer.java
+++
b/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/markup/html/form/preview/BinaryTextPreviewer.java
@@ -23,6 +23,7 @@ import java.io.IOException;
import java.io.InputStream;
import javax.ws.rs.core.MediaType;
import org.apache.syncope.client.ui.commons.annotations.BinaryPreview;
+import org.apache.syncope.common.rest.api.RESTHeaders;
import org.apache.wicket.Component;
import org.apache.wicket.markup.head.IHeaderResponse;
import org.apache.wicket.markup.head.OnLoadHeaderItem;
@@ -32,12 +33,13 @@ import org.apache.wicket.markup.html.panel.Fragment;
import org.apache.wicket.model.Model;
import org.apache.wicket.util.io.IOUtils;
-@BinaryPreview(mimeTypes = { "application/json", "application/xml" })
+@BinaryPreview(mimeTypes = { MediaType.APPLICATION_JSON,
MediaType.APPLICATION_XML,
+ RESTHeaders.APPLICATION_YAML, "application/x-yaml", "text/x-yaml",
"text/yaml" })
public class BinaryTextPreviewer extends BinaryPreviewer {
private static final long serialVersionUID = 3808379310090668773L;
- private String jsonEditorInfoId;
+ private String previewerId;
public BinaryTextPreviewer(final String id, final String mimeType) {
super(id, mimeType);
@@ -51,11 +53,10 @@ public class BinaryTextPreviewer extends BinaryPreviewer {
try {
fragment = new Fragment("preview", "previewFragment", this);
InputStream stream = new ByteArrayInputStream(uploadedBytes);
- TextArea<String> jsonEditor =
- new TextArea<>("jsonEditorInfo", new
Model<>(IOUtils.toString(stream)));
- jsonEditor.setOutputMarkupPlaceholderTag(true);
- jsonEditorInfoId = jsonEditor.getMarkupId();
- fragment.add(jsonEditor);
+ TextArea<String> previewer = new TextArea<>("previewer",
Model.of(IOUtils.toString(stream)));
+ previewer.setOutputMarkupPlaceholderTag(true);
+ previewerId = previewer.getMarkupId();
+ fragment.add(previewer);
} catch (IOException e) {
LOG.error("Error evaluating text file", e);
}
@@ -76,21 +77,30 @@ public class BinaryTextPreviewer extends BinaryPreviewer {
case MediaType.APPLICATION_JSON:
options = "matchBrackets: true, autoCloseBrackets: true,";
break;
+
case MediaType.APPLICATION_XML:
options = "autoCloseTags: true, mode: 'text/html',";
break;
+
+ case RESTHeaders.APPLICATION_YAML:
+ case "application/x-yaml":
+ case "text/x-yaml":
+ case "text/yaml":
+ options = "mode: 'yaml',";
+ break;
+
default:
options = "mode: 'text/html',";
}
response.render(OnLoadHeaderItem.forScript(
- "var editor =
CodeMirror.fromTextArea(document.getElementById('" + jsonEditorInfoId + "'), {"
+ "var editor =
CodeMirror.fromTextArea(document.getElementById('" + previewerId + "'), {"
+ " readOnly: true, "
+ " lineNumbers: true, "
+ " lineWrapping: false, "
+ options
+ " autoRefresh: true"
+ "});"
- + "editor.setSize('500', 100)"));
+ + "editor.setSize('900', 250)"));
}
}
diff --git a/client/idrepo/console/src/main/resources/MIMETypes.json
b/client/idrepo/common-ui/src/main/resources/MIMETypes.json
similarity index 99%
rename from client/idrepo/console/src/main/resources/MIMETypes.json
rename to client/idrepo/common-ui/src/main/resources/MIMETypes.json
index b49ceca..f49a5a1 100644
--- a/client/idrepo/console/src/main/resources/MIMETypes.json
+++ b/client/idrepo/common-ui/src/main/resources/MIMETypes.json
@@ -691,6 +691,9 @@
"name": "application/x-zip-compressed"
},
{
+ "name": "application/yaml"
+ },
+ {
"name": "application/zip"
},
{
diff --git
a/client/idrepo/common-ui/src/main/resources/org/apache/syncope/client/ui/commons/markup/html/form/preview/BinaryTextPreviewer.html
b/client/idrepo/common-ui/src/main/resources/org/apache/syncope/client/ui/commons/markup/html/form/preview/BinaryTextPreviewer.html
index aa730cf..0a75022 100644
---
a/client/idrepo/common-ui/src/main/resources/org/apache/syncope/client/ui/commons/markup/html/form/preview/BinaryTextPreviewer.html
+++
b/client/idrepo/common-ui/src/main/resources/org/apache/syncope/client/ui/commons/markup/html/form/preview/BinaryTextPreviewer.html
@@ -21,6 +21,7 @@ under the License.
<link rel="stylesheet" type="text/css"
href="webjars/codemirror/${codemirror.version}/lib/codemirror.css"/>
<script type="text/javascript"
src="webjars/codemirror/${codemirror.version}/lib/codemirror.js"></script>
<script type="text/javascript"
src="webjars/codemirror/${codemirror.version}/mode/javascript/javascript.js"></script>
+ <script type="text/javascript"
src="webjars/codemirror/${codemirror.version}/mode/yaml/yaml.js"></script>
<script type="text/javascript"
src="webjars/codemirror/${codemirror.version}/addon/display/autorefresh.js"></script>
<script type="text/javascript"
src="webjars/codemirror/${codemirror.version}/addon/search/search.js"></script>
<script type="text/javascript"
src="webjars/codemirror/${codemirror.version}/addon/search/searchcursor.js"></script>
@@ -41,8 +42,8 @@ under the License.
<span wicket:id="preview"/>
</div>
<wicket:fragment wicket:id="previewFragment">
- <div style="w_content_3">
- <textarea wicket:id="jsonEditorInfo" name="jsonEditorInfo" ></textarea>
+ <div class="w_content_3">
+ <textarea wicket:id="previewer" name="previewer"></textarea>
</div>
</wicket:fragment>
<wicket:fragment wicket:id="noPreviewFragment">
diff --git
a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/SyncopeConsoleApplication.java
b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/SyncopeConsoleApplication.java
index fc0e993..f0fb80f 100644
---
a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/SyncopeConsoleApplication.java
+++
b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/SyncopeConsoleApplication.java
@@ -40,9 +40,9 @@ import
org.apache.syncope.client.console.commons.StatusProvider;
import org.apache.syncope.client.console.commons.VirSchemaDetailsPanelProvider;
import
org.apache.syncope.client.console.init.ClassPathScanImplementationContributor;
import
org.apache.syncope.client.console.init.ClassPathScanImplementationLookup;
-import org.apache.syncope.client.console.init.MIMETypesLoader;
import org.apache.syncope.client.console.wizards.any.UserFormFinalizerUtils;
import org.apache.syncope.client.ui.commons.ApplicationContextProvider;
+import org.apache.syncope.client.ui.commons.MIMETypesLoader;
import org.apache.syncope.common.keymaster.client.api.model.NetworkService;
import org.apache.syncope.common.keymaster.client.api.startstop.KeymasterStart;
import org.apache.syncope.common.keymaster.client.api.startstop.KeymasterStop;
diff --git
a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/init/MIMETypesLoader.java
b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/init/MIMETypesLoader.java
deleted file mode 100644
index 54197345..0000000
---
a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/init/MIMETypesLoader.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.client.console.init;
-
-import java.io.IOException;
-import org.apache.syncope.client.ui.commons.AbstractMIMETypesLoader;
-import org.apache.wicket.util.io.IOUtils;
-
-public class MIMETypesLoader extends AbstractMIMETypesLoader {
-
- @Override
- protected String getMimeTypesFile() throws IOException {
- return
IOUtils.toString(MIMETypesLoader.class.getResourceAsStream("/MIMETypes.json"));
- }
-}
diff --git
a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/PlainSchemaDetails.java
b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/PlainSchemaDetails.java
index 7491521..6b677ad 100644
---
a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/PlainSchemaDetails.java
+++
b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/PlainSchemaDetails.java
@@ -27,9 +27,9 @@ import org.apache.commons.lang3.BooleanUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.syncope.client.ui.commons.Constants;
import org.apache.syncope.client.console.commons.PropertyList;
-import org.apache.syncope.client.console.init.MIMETypesLoader;
import org.apache.syncope.client.console.rest.ImplementationRestClient;
import
org.apache.syncope.client.console.wicket.markup.html.form.MultiFieldPanel;
+import org.apache.syncope.client.ui.commons.MIMETypesLoader;
import
org.apache.syncope.client.ui.commons.ajax.form.IndicatorAjaxFormComponentUpdatingBehavior;
import org.apache.syncope.client.ui.commons.markup.html.form.AjaxCheckBoxPanel;
import
org.apache.syncope.client.ui.commons.markup.html.form.AjaxDropDownChoicePanel;
diff --git
a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/BinaryFieldDownload.java
b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/BinaryFieldDownload.java
index 9c5fec0..65b0c03 100644
---
a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/BinaryFieldDownload.java
+++
b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/BinaryFieldDownload.java
@@ -20,8 +20,8 @@ package
org.apache.syncope.client.console.wicket.markup.html.form;
import java.time.Duration;
import org.apache.commons.lang3.StringUtils;
-import org.apache.syncope.client.console.init.MIMETypesLoader;
import org.apache.syncope.client.ui.commons.HttpResourceStream;
+import org.apache.syncope.client.ui.commons.MIMETypesLoader;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.behavior.AbstractAjaxBehavior;
import org.apache.wicket.request.handler.resource.ResourceStreamRequestHandler;
diff --git
a/client/idrepo/console/src/test/java/org/apache/syncope/client/console/AbstractTest.java
b/client/idrepo/console/src/test/java/org/apache/syncope/client/console/AbstractTest.java
index 0dca195..b28d761 100644
---
a/client/idrepo/console/src/test/java/org/apache/syncope/client/console/AbstractTest.java
+++
b/client/idrepo/console/src/test/java/org/apache/syncope/client/console/AbstractTest.java
@@ -56,11 +56,11 @@ import
org.apache.syncope.client.console.commons.PreviewUtils;
import org.apache.syncope.client.console.commons.StatusProvider;
import org.apache.syncope.client.console.commons.VirSchemaDetailsPanelProvider;
import
org.apache.syncope.client.console.init.ClassPathScanImplementationLookup;
-import org.apache.syncope.client.console.init.MIMETypesLoader;
import org.apache.syncope.client.console.wizards.any.UserFormFinalizerUtils;
import org.apache.syncope.client.lib.AuthenticationHandler;
import org.apache.syncope.client.lib.SyncopeClient;
import org.apache.syncope.client.lib.SyncopeClientFactoryBean;
+import org.apache.syncope.client.ui.commons.MIMETypesLoader;
import org.apache.syncope.common.keymaster.client.api.DomainOps;
import org.apache.syncope.common.keymaster.client.api.ServiceOps;
import org.apache.syncope.common.keymaster.client.api.model.Domain;
@@ -281,7 +281,7 @@ public abstract class AbstractTest {
@BeforeAll
public static void loadProps() throws IOException {
PROPS = new Properties();
- try (InputStream is =
AbstractTest.class.getResourceAsStream("/console.properties")) {
+ try ( InputStream is =
AbstractTest.class.getResourceAsStream("/console.properties")) {
PROPS.load(is);
}
}
diff --git
a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/SyncopeEnduserApplication.java
b/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/SyncopeEnduserApplication.java
index f6b13a2..9760fe7 100644
---
a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/SyncopeEnduserApplication.java
+++
b/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/SyncopeEnduserApplication.java
@@ -21,8 +21,8 @@ package org.apache.syncope.client.enduser;
import
com.giffing.wicket.spring.boot.starter.web.config.WicketWebInitializerAutoConfig.WebSocketWicketWebInitializerAutoConfiguration;
import org.apache.syncope.client.enduser.commons.PreviewUtils;
import
org.apache.syncope.client.enduser.init.ClassPathScanImplementationLookup;
-import org.apache.syncope.client.enduser.init.MIMETypesLoader;
import org.apache.syncope.client.ui.commons.ApplicationContextProvider;
+import org.apache.syncope.client.ui.commons.MIMETypesLoader;
import org.apache.syncope.common.keymaster.client.api.model.NetworkService;
import org.apache.syncope.common.keymaster.client.api.startstop.KeymasterStart;
import org.apache.syncope.common.keymaster.client.api.startstop.KeymasterStop;
diff --git
a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/init/MIMETypesLoader.java
b/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/init/MIMETypesLoader.java
deleted file mode 100644
index f5122e1..0000000
---
a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/init/MIMETypesLoader.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.client.enduser.init;
-
-import java.io.IOException;
-import org.apache.syncope.client.ui.commons.AbstractMIMETypesLoader;
-import org.apache.wicket.util.io.IOUtils;
-
-public class MIMETypesLoader extends AbstractMIMETypesLoader {
-
- @Override
- protected String getMimeTypesFile() throws IOException {
- return
IOUtils.toString(MIMETypesLoader.class.getResourceAsStream("/MIMETypes.json"));
- }
-}
diff --git
a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/markup/html/form/AjaxDownload.java
b/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/markup/html/form/AjaxDownload.java
index f3f29a1..8e1367a 100644
---
a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/markup/html/form/AjaxDownload.java
+++
b/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/markup/html/form/AjaxDownload.java
@@ -20,8 +20,8 @@ package org.apache.syncope.client.enduser.markup.html.form;
import java.time.Duration;
import org.apache.commons.lang3.StringUtils;
-import org.apache.syncope.client.enduser.init.MIMETypesLoader;
import org.apache.syncope.client.ui.commons.HttpResourceStream;
+import org.apache.syncope.client.ui.commons.MIMETypesLoader;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.behavior.AbstractAjaxBehavior;
import org.apache.wicket.request.handler.resource.ResourceStreamRequestHandler;
diff --git a/client/idrepo/enduser/src/main/resources/MIMETypes.json
b/client/idrepo/enduser/src/main/resources/MIMETypes.json
deleted file mode 100644
index b49ceca..0000000
--- a/client/idrepo/enduser/src/main/resources/MIMETypes.json
+++ /dev/null
@@ -1,1289 +0,0 @@
-[
- {
- "name": "application/acad"
- },
- {
- "name": "application/arj"
- },
- {
- "name": "application/json",
- "extension": "json"
- },
- {
- "name": "application/base64"
- },
- {
- "name": "application/binhex"
- },
- {
- "name": "application/binhex4"
- },
- {
- "name": "application/book"
- },
- {
- "name": "application/cdf"
- },
- {
- "name": "application/clariscad"
- },
- {
- "name": "application/commonground"
- },
- {
- "name": "application/drafting"
- },
- {
- "name": "application/dsptype"
- },
- {
- "name": "application/dxf"
- },
- {
- "name": "application/ecmascript"
- },
- {
- "name": "application/envoy"
- },
- {
- "name": "application/excel"
- },
- {
- "name": "application/fractals"
- },
- {
- "name": "application/freeloader"
- },
- {
- "name": "application/futuresplash"
- },
- {
- "name": "application/gnutar"
- },
- {
- "name": "application/groupwise"
- },
- {
- "name": "application/hlp"
- },
- {
- "name": "application/hta"
- },
- {
- "name": "application/i-deas"
- },
- {
- "name": "application/iges"
- },
- {
- "name": "application/inf"
- },
- {
- "name": "application/java"
- },
- {
- "name": "application/java-byte-code"
- },
- {
- "name": "application/javascript"
- },
- {
- "name": "application/lha"
- },
- {
- "name": "application/lzx"
- },
- {
- "name": "application/macbinary"
- },
- {
- "name": "application/mac-binary"
- },
- {
- "name": "application/mac-binhex"
- },
- {
- "name": "application/mac-binhex40"
- },
- {
- "name": "application/mac-compactpro"
- },
- {
- "name": "application/marc"
- },
- {
- "name": "application/mbedlet"
- },
- {
- "name": "application/mcad"
- },
- {
- "name": "application/mime"
- },
- {
- "name": "application/mspowerpoint"
- },
- {
- "name": "application/msword"
- },
- {
- "name": "application/mswrite"
- },
- {
- "name": "application/netmc"
- },
- {
- "name": "application/octet-stream"
- },
- {
- "name": "application/oda"
- },
- {
- "name": "application/pdf"
- },
- {
- "name": "application/pkcs10"
- },
- {
- "name": "application/pkcs-12"
- },
- {
- "name": "application/pkcs7-mime"
- },
- {
- "name": "application/pkcs7-signature"
- },
- {
- "name": "application/pkcs-crl"
- },
- {
- "name": "application/pkix-cert"
- },
- {
- "name": "application/pkix-crl"
- },
- {
- "name": "application/plain"
- },
- {
- "name": "application/postscript"
- },
- {
- "name": "application/powerpoint"
- },
- {
- "name": "application/pro_eng"
- },
- {
- "name": "application/ringing-tones"
- },
- {
- "name": "application/rtf"
- },
- {
- "name": "application/sdp"
- },
- {
- "name": "application/sea"
- },
- {
- "name": "application/set"
- },
- {
- "name": "application/sla"
- },
- {
- "name": "application/smil"
- },
- {
- "name": "application/solids"
- },
- {
- "name": "application/sounder"
- },
- {
- "name": "application/step"
- },
- {
- "name": "application/streamingmedia"
- },
- {
- "name": "application/toolbook"
- },
- {
- "name": "application/vda"
- },
- {
- "name": "application/vnd.fdf"
- },
- {
- "name": "application/vnd.hp-hpgl"
- },
- {
- "name": "application/vnd.hp-pcl"
- },
- {
- "name": "application/vnd.ms-excel"
- },
- {
- "name": "application/vnd.ms-pki.certstore"
- },
- {
- "name": "application/vnd.ms-pki.pko"
- },
- {
- "name": "application/vnd.ms-pki.seccat"
- },
- {
- "name": "application/vnd.ms-pki.stl"
- },
- {
- "name": "application/vnd.ms-powerpoint"
- },
- {
- "name": "application/vnd.ms-project"
- },
- {
- "name": "application/vnd.nokia.configuration-message"
- },
- {
- "name": "application/vnd.nokia.ringing-tone"
- },
- {
- "name": "application/vnd.oasis.opendocument.chart"
- },
- {
- "name": "application/vnd.oasis.opendocument.database"
- },
- {
- "name": "application/vnd.oasis.opendocument.formula"
- },
- {
- "name": "application/vnd.oasis.opendocument.graphics"
- },
- {
- "name": "application/vnd.oasis.opendocument.image"
- },
- {
- "name": "application/vnd.oasis.opendocument.presentation"
- },
- {
- "name": "application/vnd.oasis.opendocument.spreadsheet"
- },
- {
- "name": "application/vnd.oasis.opendocument.text"
- },
- {
- "name": "application/vnd.rn-realmedia"
- },
- {
- "name": "application/vnd.rn-realplayer"
- },
- {
- "name": "application/vnd.wap.wmlc"
- },
- {
- "name": "application/vnd.wap.wmlscriptc"
- },
- {
- "name": "application/vnd.xara"
- },
- {
- "name": "application/vocaltec-media-desc"
- },
- {
- "name": "application/vocaltec-media-file"
- },
- {
- "name": "application/wordperfect"
- },
- {
- "name": "application/wordperfect6.0"
- },
- {
- "name": "application/wordperfect6.1"
- },
- {
- "name": "application/x-123"
- },
- {
- "name": "application/x-aim"
- },
- {
- "name": "application/x-authorware-bin"
- },
- {
- "name": "application/x-authorware-map"
- },
- {
- "name": "application/x-authorware-seg"
- },
- {
- "name": "application/x-bcpio"
- },
- {
- "name": "application/x-binary"
- },
- {
- "name": "application/x-binhex40"
- },
- {
- "name": "application/x-bsh"
- },
- {
- "name": "application/x-bytecode.elisp (compiled elisp)"
- },
- {
- "name": "application/x-bytecode.python"
- },
- {
- "name": "application/x-bzip"
- },
- {
- "name": "application/x-bzip2"
- },
- {
- "name": "application/x-cdf"
- },
- {
- "name": "application/x-cdlink"
- },
- {
- "name": "application/x-chat"
- },
- {
- "name": "application/x-cmu-raster"
- },
- {
- "name": "application/x-cocoa"
- },
- {
- "name": "application/x-compactpro"
- },
- {
- "name": "application/x-compress"
- },
- {
- "name": "application/x-compressed"
- },
- {
- "name": "application/x-conference"
- },
- {
- "name": "application/x-cpio"
- },
- {
- "name": "application/x-cpt"
- },
- {
- "name": "application/x-csh"
- },
- {
- "name": "application/x-deepv"
- },
- {
- "name": "application/x-director"
- },
- {
- "name": "application/x-dvi"
- },
- {
- "name": "application/x-elc"
- },
- {
- "name": "application/x-envoy"
- },
- {
- "name": "application/x-esrehber"
- },
- {
- "name": "application/x-excel"
- },
- {
- "name": "application/x-frame"
- },
- {
- "name": "application/x-freelance"
- },
- {
- "name": "application/x-gsp"
- },
- {
- "name": "application/x-gss"
- },
- {
- "name": "application/x-gtar"
- },
- {
- "name": "application/x-gzip"
- },
- {
- "name": "application/x-hdf"
- },
- {
- "name": "application/x-helpfile"
- },
- {
- "name": "application/x-httpd-imap"
- },
- {
- "name": "application/x-ima"
- },
- {
- "name": "application/x-internett-signup"
- },
- {
- "name": "application/x-inventor"
- },
- {
- "name": "application/x-ip2"
- },
- {
- "name": "application/x-java-class"
- },
- {
- "name": "application/x-java-commerce"
- },
- {
- "name": "application/x-javascript"
- },
- {
- "name": "application/x-koan"
- },
- {
- "name": "application/x-ksh"
- },
- {
- "name": "application/x-latex"
- },
- {
- "name": "application/x-lha"
- },
- {
- "name": "application/x-lisp"
- },
- {
- "name": "application/x-livescreen"
- },
- {
- "name": "application/x-lotus"
- },
- {
- "name": "application/x-lotusscreencam"
- },
- {
- "name": "application/x-lzh"
- },
- {
- "name": "application/x-lzx"
- },
- {
- "name": "application/x-macbinary"
- },
- {
- "name": "application/x-mac-binhex40"
- },
- {
- "name": "application/x-magic-cap-package-1.0"
- },
- {
- "name": "application/x-mathcad"
- },
- {
- "name": "application/x-meme"
- },
- {
- "name": "application/x-midi"
- },
- {
- "name": "application/x-mif"
- },
- {
- "name": "application/x-mix-transfer"
- },
- {
- "name": "application/xml"
- },
- {
- "name": "application/x-mplayer2"
- },
- {
- "name": "application/x-msexcel"
- },
- {
- "name": "application/x-mspowerpoint"
- },
- {
- "name": "application/x-navi-animation"
- },
- {
- "name": "application/x-navidoc"
- },
- {
- "name": "application/x-navimap"
- },
- {
- "name": "application/x-navistyle"
- },
- {
- "name": "application/x-netcdf"
- },
- {
- "name": "application/x-newton-compatible-pkg"
- },
- {
- "name": "application/x-nokia-9000-communicator-add-on-software"
- },
- {
- "name": "application/x-omc"
- },
- {
- "name": "application/x-omcdatamaker"
- },
- {
- "name": "application/x-omcregerator"
- },
- {
- "name": "application/x-pagemaker"
- },
- {
- "name": "application/x-pcl"
- },
- {
- "name": "application/x-pixclscript"
- },
- {
- "name": "application/x-pkcs10"
- },
- {
- "name": "application/x-pkcs12"
- },
- {
- "name": "application/x-pkcs7-certificates"
- },
- {
- "name": "application/x-pkcs7-certreqresp"
- },
- {
- "name": "application/x-pkcs7-mime"
- },
- {
- "name": "application/x-pkcs7-signature"
- },
- {
- "name": "application/x-pointplus"
- },
- {
- "name": "application/x-portable-anymap"
- },
- {
- "name": "application/x-project"
- },
- {
- "name": "application/x-qpro"
- },
- {
- "name": "application/x-rtf"
- },
- {
- "name": "application/x-sdp"
- },
- {
- "name": "application/x-sea"
- },
- {
- "name": "application/x-seelogo"
- },
- {
- "name": "application/x-sh"
- },
- {
- "name": "application/x-shar"
- },
- {
- "name": "application/x-shockwave-flash"
- },
- {
- "name": "application/x-sit"
- },
- {
- "name": "application/x-sprite"
- },
- {
- "name": "application/x-stuffit"
- },
- {
- "name": "application/x-sv4cpio"
- },
- {
- "name": "application/x-sv4crc"
- },
- {
- "name": "application/x-tar"
- },
- {
- "name": "application/x-tbook"
- },
- {
- "name": "application/x-tcl"
- },
- {
- "name": "application/x-tex"
- },
- {
- "name": "application/x-texinfo"
- },
- {
- "name": "application/x-troff"
- },
- {
- "name": "application/x-troff-man"
- },
- {
- "name": "application/x-troff-me"
- },
- {
- "name": "application/x-troff-ms"
- },
- {
- "name": "application/x-troff-msvideo"
- },
- {
- "name": "application/x-ustar"
- },
- {
- "name": "application/x-visio"
- },
- {
- "name": "application/x-vnd.audioexplosion.mzz"
- },
- {
- "name": "application/x-vnd.ls-xpix"
- },
- {
- "name": "application/x-vrml"
- },
- {
- "name": "application/x-wais-source"
- },
- {
- "name": "application/x-winhelp"
- },
- {
- "name": "application/x-wintalk"
- },
- {
- "name": "application/x-world"
- },
- {
- "name": "application/x-wpwin"
- },
- {
- "name": "application/x-wri"
- },
- {
- "name": "application/x-x509-ca-cert"
- },
- {
- "name": "application/x-x509-user-cert"
- },
- {
- "name": "application/x-zip-compressed"
- },
- {
- "name": "application/zip"
- },
- {
- "name": "audio/aiff"
- },
- {
- "name": "audio/basic"
- },
- {
- "name": "audio/it"
- },
- {
- "name": "audio/make"
- },
- {
- "name": "audio/make.my.funk"
- },
- {
- "name": "audio/mid"
- },
- {
- "name": "audio/midi"
- },
- {
- "name": "audio/mod"
- },
- {
- "name": "audio/mpeg"
- },
- {
- "name": "audio/mpeg3"
- },
- {
- "name": "audio/nspaudio"
- },
- {
- "name": "audio/s3m"
- },
- {
- "name": "audio/tsp-audio"
- },
- {
- "name": "audio/tsplayer"
- },
- {
- "name": "audio/vnd.qcelp"
- },
- {
- "name": "audio/voc"
- },
- {
- "name": "audio/voxware"
- },
- {
- "name": "audio/wav"
- },
- {
- "name": "audio/x-adpcm"
- },
- {
- "name": "audio/x-aiff"
- },
- {
- "name": "audio/x-au"
- },
- {
- "name": "audio/x-gsm"
- },
- {
- "name": "audio/x-jam"
- },
- {
- "name": "audio/x-liveaudio"
- },
- {
- "name": "audio/xm"
- },
- {
- "name": "audio/x-mid"
- },
- {
- "name": "audio/x-midi"
- },
- {
- "name": "audio/x-mod"
- },
- {
- "name": "audio/x-mpeg"
- },
- {
- "name": "audio/x-mpeg-3"
- },
- {
- "name": "audio/x-mpequrl"
- },
- {
- "name": "audio/x-nspaudio"
- },
- {
- "name": "audio/x-pn-realaudio"
- },
- {
- "name": "audio/x-pn-realaudio-plugin"
- },
- {
- "name": "audio/x-psid"
- },
- {
- "name": "audio/x-realaudio"
- },
- {
- "name": "audio/x-twinvq"
- },
- {
- "name": "audio/x-twinvq-plugin"
- },
- {
- "name": "audio/x-vnd.audioexplosion.mjuicemediafile"
- },
- {
- "name": "audio/x-voc"
- },
- {
- "name": "audio/x-wav",
- "extension": "wav"
- },
- {
- "name": "chemical/x-pdb"
- },
- {
- "name": "drawing/x-dwf (old)"
- },
- {
- "name": "image/bmp",
- "extension": "bmp"
- },
- {
- "name": "image/cmu-raster"
- },
- {
- "name": "image/fif"
- },
- {
- "name": "image/florian"
- },
- {
- "name": "image/g3fax"
- },
- {
- "name": "image/gif",
- "extension": "gif"
- },
- {
- "name": "image/ief",
- "extension": "ief"
- },
- {
- "name": "image/jpeg",
- "extension": "jpeg"
- },
- {
- "name": "image/jutvision"
- },
- {
- "name": "image/naplps"
- },
- {
- "name": "image/pict",
- "extension": "pict"
- },
- {
- "name": "image/pjpeg",
- "extension": "jpeg"
- },
- {
- "name": "image/png",
- "extension": "png"
- },
- {
- "name": "image/tiff",
- "extension": "tiff"
- },
- {
- "name": "image/vasa"
- },
- {
- "name": "image/vnd.dwg"
- },
- {
- "name": "image/vnd.fpx"
- },
- {
- "name": "image/vnd.net-fpx"
- },
- {
- "name": "image/vnd.rn-realflash"
- },
- {
- "name": "image/vnd.rn-realpix"
- },
- {
- "name": "image/vnd.wap.wbmp"
- },
- {
- "name": "image/vnd.xiff"
- },
- {
- "name": "image/xbm"
- },
- {
- "name": "image/x-cmu-raster"
- },
- {
- "name": "image/x-dwg"
- },
- {
- "name": "image/x-icon"
- },
- {
- "name": "image/x-jg"
- },
- {
- "name": "image/x-jps"
- },
- {
- "name": "image/x-niff"
- },
- {
- "name": "image/x-pcx"
- },
- {
- "name": "image/x-pict"
- },
- {
- "name": "image/xpm"
- },
- {
- "name": "image/x-portable-anymap"
- },
- {
- "name": "image/x-portable-bitmap"
- },
- {
- "name": "image/x-portable-graymap"
- },
- {
- "name": "image/x-portable-greymap"
- },
- {
- "name": "image/x-portable-pixmap"
- },
- {
- "name": "image/x-quicktime"
- },
- {
- "name": "image/x-rgb"
- },
- {
- "name": "image/x-tiff"
- },
- {
- "name": "image/x-windows-bmp"
- },
- {
- "name": "image/x-xbitmap"
- },
- {
- "name": "image/x-xbm"
- },
- {
- "name": "image/x-xpixmap"
- },
- {
- "name": "image/x-xwd"
- },
- {
- "name": "image/x-xwindowdump"
- },
- {
- "name": "i-world/i-vrml"
- },
- {
- "name": "message/rfc822"
- },
- {
- "name": "model/iges"
- },
- {
- "name": "model/vnd.dwf"
- },
- {
- "name": "model/vrml"
- },
- {
- "name": "model/x-pov"
- },
- {
- "name": "multipart/x-gzip"
- },
- {
- "name": "multipart/x-ustar"
- },
- {
- "name": "multipart/x-zip"
- },
- {
- "name": "music/crescendo"
- },
- {
- "name": "music/x-karaoke"
- },
- {
- "name": "paleovu/x-pv"
- },
- {
- "name": "text/asp"
- },
- {
- "name": "text/css"
- },
- {
- "name": "text/ecmascript"
- },
- {
- "name": "text/html",
- "extension": "html"
- },
- {
- "name": "text/javascript",
- "extension": "js"
- },
- {
- "name": "text/mcf"
- },
- {
- "name": "text/pascal"
- },
- {
- "name": "text/plain"
- },
- {
- "name": "text/richtext"
- },
- {
- "name": "text/scriplet"
- },
- {
- "name": "text/sgml"
- },
- {
- "name": "text/tab-separated-values"
- },
- {
- "name": "text/uri-list"
- },
- {
- "name": "text/vnd.abc"
- },
- {
- "name": "text/vnd.fmi.flexstor"
- },
- {
- "name": "text/vnd.rn-realtext"
- },
- {
- "name": "text/vnd.wap.wml"
- },
- {
- "name": "text/vnd.wap.wmlscript"
- },
- {
- "name": "text/webviewhtml"
- },
- {
- "name": "text/x-asm"
- },
- {
- "name": "text/x-audiosoft-intra"
- },
- {
- "name": "text/x-c"
- },
- {
- "name": "text/x-component"
- },
- {
- "name": "text/x-fortran"
- },
- {
- "name": "text/x-h"
- },
- {
- "name": "text/x-java-source"
- },
- {
- "name": "text/x-la-asf"
- },
- {
- "name": "text/x-m"
- },
- {
- "name": "text/xml"
- },
- {
- "name": "text/x-pascal"
- },
- {
- "name": "text/x-script"
- },
- {
- "name": "text/x-script.csh"
- },
- {
- "name": "text/x-script.elisp"
- },
- {
- "name": "text/x-script.guile"
- },
- {
- "name": "text/x-script.ksh"
- },
- {
- "name": "text/x-script.lisp"
- },
- {
- "name": "text/x-script.perl"
- },
- {
- "name": "text/x-script.perl-module"
- },
- {
- "name": "text/x-script.phyton"
- },
- {
- "name": "text/x-script.rexx"
- },
- {
- "name": "text/x-script.scheme"
- },
- {
- "name": "text/x-script.sh"
- },
- {
- "name": "text/x-script.tcl"
- },
- {
- "name": "text/x-script.tcsh"
- },
- {
- "name": "text/x-script.zsh"
- },
- {
- "name": "text/x-server-parsed-html"
- },
- {
- "name": "text/x-setext"
- },
- {
- "name": "text/x-sgml"
- },
- {
- "name": "text/x-speech"
- },
- {
- "name": "text/x-uil"
- },
- {
- "name": "text/x-uuencode"
- },
- {
- "name": "text/x-vcalendar"
- },
- {
- "name": "video/animaflex"
- },
- {
- "name": "video/avi"
- },
- {
- "name": "video/avs-video"
- },
- {
- "name": "video/dl"
- },
- {
- "name": "video/fli"
- },
- {
- "name": "video/gl"
- },
- {
- "name": "video/mpeg"
- },
- {
- "name": "video/msvideo"
- },
- {
- "name": "video/quicktime"
- },
- {
- "name": "video/vdo"
- },
- {
- "name": "video/vivo"
- },
- {
- "name": "video/vnd.rn-realvideo"
- },
- {
- "name": "video/vnd.vivo"
- },
- {
- "name": "video/vosaic"
- },
- {
- "name": "video/x-amt-demorun"
- },
- {
- "name": "video/x-amt-showrun"
- },
- {
- "name": "video/x-atomic3d-feature"
- },
- {
- "name": "video/x-dl"
- },
- {
- "name": "video/x-dv"
- },
- {
- "name": "video/x-fli"
- },
- {
- "name": "video/x-gl"
- },
- {
- "name": "video/x-isvideo"
- },
- {
- "name": "video/x-motion-jpeg"
- },
- {
- "name": "video/x-mpeg"
- },
- {
- "name": "video/x-mpeq2a"
- },
- {
- "name": "video/x-ms-asf"
- },
- {
- "name": "video/x-ms-asf-plugin"
- },
- {
- "name": "video/x-msvideo"
- },
- {
- "name": "video/x-qtc"
- },
- {
- "name": "video/x-scm"
- },
- {
- "name": "video/x-sgi-movie"
- },
- {
- "name": "windows/metafile"
- },
- {
- "name": "www/mime"
- },
- {
- "name": "x-conference/x-cooltalk"
- },
- {
- "name": "xgl/drawing"
- },
- {
- "name": "xgl/movie"
- },
- {
- "name": "x-music/x-midi"
- },
- {
- "name": "x-world/x-3dmf"
- },
- {
- "name": "x-world/x-svr"
- },
- {
- "name": "x-world/x-vrml"
- },
- {
- "name": "x-world/x-vrt"
- }
-]
diff --git
a/fit/core-reference/src/test/java/org/apache/syncope/fit/console/AbstractConsoleITCase.java
b/fit/core-reference/src/test/java/org/apache/syncope/fit/console/AbstractConsoleITCase.java
index 4d853b7..59575de 100644
---
a/fit/core-reference/src/test/java/org/apache/syncope/fit/console/AbstractConsoleITCase.java
+++
b/fit/core-reference/src/test/java/org/apache/syncope/fit/console/AbstractConsoleITCase.java
@@ -33,11 +33,11 @@ import
org.apache.syncope.client.console.commons.IdRepoPolicyTabProvider;
import org.apache.syncope.client.console.commons.PolicyTabProvider;
import org.apache.syncope.client.console.commons.PreviewUtils;
import
org.apache.syncope.client.console.init.ClassPathScanImplementationLookup;
-import org.apache.syncope.client.console.init.MIMETypesLoader;
import org.apache.syncope.client.console.pages.Login;
import org.apache.syncope.client.console.wizards.any.UserFormFinalizerUtils;
import org.apache.syncope.client.lib.SyncopeClientFactoryBean;
import org.apache.syncope.client.ui.commons.ApplicationContextProvider;
+import org.apache.syncope.client.ui.commons.MIMETypesLoader;
import
org.apache.syncope.common.keymaster.client.self.SelfKeymasterClientContext;
import
org.apache.syncope.common.keymaster.client.zookeeper.ZookeeperKeymasterClientContext;
import org.apache.syncope.common.rest.api.service.SyncopeService;
diff --git
a/fit/core-reference/src/test/java/org/apache/syncope/fit/enduser/AbstractEnduserITCase.java
b/fit/core-reference/src/test/java/org/apache/syncope/fit/enduser/AbstractEnduserITCase.java
index 9e6e672..43f8288 100644
---
a/fit/core-reference/src/test/java/org/apache/syncope/fit/enduser/AbstractEnduserITCase.java
+++
b/fit/core-reference/src/test/java/org/apache/syncope/fit/enduser/AbstractEnduserITCase.java
@@ -31,11 +31,11 @@ import org.apache.commons.lang3.time.DateFormatUtils;
import org.apache.syncope.client.enduser.SyncopeWebApplication;
import org.apache.syncope.client.enduser.commons.PreviewUtils;
import
org.apache.syncope.client.enduser.init.ClassPathScanImplementationLookup;
-import org.apache.syncope.client.enduser.init.MIMETypesLoader;
import org.apache.syncope.client.enduser.pages.Login;
import org.apache.syncope.client.lib.SyncopeClient;
import org.apache.syncope.client.lib.SyncopeClientFactoryBean;
import org.apache.syncope.client.ui.commons.ApplicationContextProvider;
+import org.apache.syncope.client.ui.commons.MIMETypesLoader;
import org.apache.syncope.common.rest.api.service.SyncopeService;
import
org.apache.syncope.common.keymaster.client.self.SelfKeymasterClientContext;
import
org.apache.syncope.common.keymaster.client.zookeeper.ZookeeperKeymasterClientContext;