Skip to content

Instantly share code, notes, and snippets.

Marc Savy msavy

Block or report user

Report or block msavy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View console.log
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://static.halifax.co.uk/assets/css/icon-fonts/cms/Halifax/fonts/icomoon.ttf?yytztc. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://static.halifax.co.uk/assets/fonts/Agenda-Regular/agendaRegular.woff. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://static.halifax.co.uk/assets/fonts/Agenda-Bold/agendaBold.woff. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://static.halifax.co.uk/assets/fonts/Helvetica-Neue-Condensed/helveticaNeueCondensedBlack.woff. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).
Cross-Origin Request Blocked: The Same Origin Policy disallows rea
View output.json
{
"components" : {
"schemas" : {
"test.io.smallrye.openapi.runtime.scanner.entities.KitchenSink" : {
"description" : "This is the kitchen sink description!",
"required" : [ "booking", "ccList", "creditCardMap", "fooArray", "fuzzListWildcard", "seatPreference", "unsafeList" ],
"properties" : {
"array" : {
"type" : "array",
"items" : {
View example.java
/*
* (non-Javadoc)
* @see io.apiman.gateway.engine.policies.AbstractMappedPolicy#doProcessFailure(io.apiman.gateway.engine.beans.PolicyFailure, io.apiman.gateway.engine.policy.IPolicyContext, java.lang.Object, io.apiman.gateway.engine.policy.IPolicyFailureChain)
*/
@Override
protected void doProcessFailure(PolicyFailure failure, IPolicyContext context, CorsConfigBean config,
IPolicyFailureChain chain) {
System.out.println("In process failure");
failure.getHeaders().put("X-FROM-PROCESS-FAILURE", "Hello!");
View diff.patch
diff --git a/pom.xml b/pom.xml
index 2e7287d..8de48bf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -307,20 +307,21 @@
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
View gist:b37951b7956822924fafa0b7aac52807
[INFO] --- nexus-staging-maven-plugin:1.6.3:deploy (injected-nexus-deploy) @ apiman-tools-i18n ---
[INFO] Performing local staging (local stagingDirectory="/home/msavy/apiman-release/target/git-repos/apiman/target/nexus-staging/staging")...
[INFO] + Using server credentials "ossrh" from Maven settings.
[INFO] * Connected to Nexus at https://oss.sonatype.org:443/, is version 2.14.8-01 and edition "Professional"
[INFO] * Using staging profile ID "4073c4fbdd610a" (matched by Nexus).
[INFO] Installing /home/msavy/apiman-release/target/git-repos/apiman/tools/i18n/target/apiman-tools-i18n-1.4.0.Final.jar to /home/msavy/apiman-release/target/git-repos/apiman/target/nexus-staging/staging/4073c4fbdd610a/io/apiman/apiman-tools-i18n/1.4.0.Final/apiman-tools-i18n-1.4.0.Final.jar
[INFO] Installing /home/msavy/apiman-release/target/git-repos/apiman/tools/i18n/pom.xml to /home/msavy/apiman-release/target/git-repos/apiman/target/nexus-staging/staging/4073c4fbdd610a/io/apiman/apiman-tools-i18n/1.4.0.Final/apiman-tools-i18n
View gist:02aec1de26a6c1b24e15e3214155d1f1
{
"auth": {
"type": "basic",
"config": {
"username": "admin",
"password": "admin123!"
}
}
}
View headless.schema.json
{
"type": "object",
"properties": {
"apis": {
"title": "APIs",
"type": "array",
"items": {
"type": "object",
"title": "API",
"required": ["organizationId", "apiId", "version", "endpoint", "endpointType", "endpointContentType"],
View gist:972bbad26873cea63fb2eed6419488b2
java.lang.RuntimeException: Invalid elasticsearch client type: null
at io.apiman.gateway.engine.es.AbstractESComponent.createEsClientFactory(AbstractESComponent.java:74)
at io.apiman.gateway.engine.es.AbstractESComponent.createClient(AbstractESComponent.java:60)
at io.apiman.gateway.engine.es.AbstractESComponent.getClient(AbstractESComponent.java:51)
at io.apiman.gateway.engine.es.ESCacheStoreComponent.getBinary(ESCacheStoreComponent.java:160)
at io.apiman.gateway.engine.policies.CachingPolicy.doApply(CachingPolicy.java:83)
at io.apiman.gateway.engine.policies.CachingPolicy.doApply(CachingPolicy.java:46)
at io.apiman.gateway.engine.policies.AbstractMappedPolicy.apply(AbstractMappedPolicy.java:70)
at io.apiman.gateway.engine.policy.RequestChain.applyPolicy(RequestChain.java:68)
at io.apiman.gateway.engine.policy.Chain.doApply(Chain.java:148)
View gist:a1b4307fb238a543dfd6af426b42d446
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building apiman-test-common 1.2.10-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classe
View gist:5fe09f7bc2f55b02bf9f8e7e9fb7bb40
java.lang.UnsupportedClassVersionError: io/apiman/studio/fe/war/servlets/AngularServlet : Unsupported major.minor version 52.0 (unable to load class io.apiman.studio.fe.war.servlets.AngularServlet)
org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2280)
org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:811)
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1254)
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:341)
org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:783)
You can’t perform that action at this time.