Skip to content

Instantly share code, notes, and snippets.

kind: Pod
apiVersion: v1
metadata:
generateName: reactive-messaging-qs-7df768d8c4-
annotations:
k8s.v1.cni.cncf.io/network-status: |-
[{
"name": "",
"interface": "eth0",
"ips": [
@kabir
kabir / Errors.md
Last active February 21, 2020 11:14
MP F2F 2020 Context Propagatio errors

====== "RestEasy" ======

2020-02-21 10:23:46,561 ERROR [org.jboss.resteasy.resteasy_jaxrs.i18n] (pool-11-thread-1) RESTEASY002005: Failed executing GET /context/resteasy: org.jboss.resteasy.spi.LoggableFailure: RESTEASY003880: Unable to find contextual data of type: javax.ws.rs.core.UriInfo
        at org.jboss.resteasy.core.ContextParameterInjector$GenericDelegatingProxy.invoke(ContextParameterInjector.java:77)
        at com.sun.proxy.$Proxy66.getAbsolutePath(Unknown Source)
        at org.wildfly.test.integration.microprofile.context.propagation.rest.ContextPropagationEndpoint.lambda$resteasyTest$1(ContextPropagationEndpoint.java:75)
        at io.smallrye.context.SmallRyeThreadContext$ContextualFunction.apply(SmallRyeThreadContext.java:76)
        at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:602)
        at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577)
        at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.j
@kabir
kabir / diff 7.2.3-GA-trimmed-patch-names.txt trimmed-patch-names.txt
Last active February 17, 2020 13:57
Patch contents 7.2.0.GA->7.2.4.GA vs 7.3.0.GA->7.2.4.GA
$diff 7.2.3-GA-trimmed-patch-names.txt trimmed-patch-names.txt
6a7
> name="com.sun.istack" hash
7a9
> name="ibm.jdk" hash
9a12
> name="io.undertow.jsp" hash
11a15,18
> name="javax.api" hash
> name="javax.el.api" hash
@kabir
kabir / patch.zip output
Created February 14, 2020 10:48
Files in patch
$unzip -l target/classes/patch.zip | grep .jar
11517 02-14-2020 11:46 microprofile-layer-eap-microprofile-expansion-pack/modules/org/eclipse/microprofile/jwt/auth/api/main/microprofile-jwt-auth-api-1.1.1.jar
100038 02-14-2020 11:46 microprofile-layer-eap-microprofile-expansion-pack/modules/org/eclipse/microprofile/openapi/api/main/microprofile-openapi-api-1.1.2.jar
18125 02-14-2020 11:46 microprofile-layer-eap-microprofile-expansion-pack/modules/org/eclipse/microprofile/fault-tolerance/api/main/microprofile-fault-tolerance-api-2.0.3.jar
29186 02-14-2020 11:46 microprofile-layer-eap-microprofile-expansion-pack/modules/org/wildfly/extension/microprofile/fault-tolerance-smallrye/main/wildfly-microprofile-fault-tolerance-smallrye-extension-7.3.0.GA-redhat-SNAPSHOT.jar
20134 02-14-2020 11:46 microprofile-layer-eap-microprofile-expansion-pack/modules/org/wildfly/extension/microprofile/jwt-smallrye/main/wildfly-microprofile-jwt-smallrye-7.3.0.GA-redhat-SNAPSHOT.jar
36854 02-14-
$git diff
diff --git a/undertow/src/main/java/org/wildfly/extension/undertow/ServletContainerAdd.java b/undertow/src/main/java/org/wildfly/extension/undertow/ServletContainerAdd.java
index b643a6928cf..9a880bb5dd3 100644
--- a/undertow/src/main/java/org/wildfly/extension/undertow/ServletContainerAdd.java
+++ b/undertow/src/main/java/org/wildfly/extension/undertow/ServletContainerAdd.java
@@ -92,8 +92,7 @@ final class ServletContainerAdd extends AbstractBoottimeAddStepHandler {
final ModelNode fileCacheTtlNode = ServletContainerDefinition.FILE_CACHE_TIME_TO_LIVE.resolveModelAttribute(context, model);
final Integer fileCacheTimeToLive = fileCacheTtlNode.isDefined() ? fileCacheTtlNode.asInt() : null;
final int defaultCookieVersion = ServletContainerDefinition.DEFAULT_COOKIE_VERSION.resolveModelAttribute(context, model).asInt();
- final ModelNode preservePathOnForwardNode = ServletContainerDefinition.PRESERVE_PATH_ON_FORWARD.resolveModelAttribute(context, model);
<!--- Needed for the dependency tool on Team City --->
<settings xmlns="http://maven.apache.org/settings/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>/store/repository</localRepository>
<interactiveMode>false</interactiveMode>
package org.overbaard.review.tool._temp;
import java.util.ArrayList;
import java.util.List;
import javax.json.bind.JsonbBuilder;
import javax.json.bind.JsonbConfig;
import javax.json.bind.annotation.JsonbTypeSerializer;
import javax.json.bind.serializer.JsonbSerializer;
import javax.json.bind.serializer.SerializationContext;
@JsonbTypeSerializer(Organisation.MySerializer.class)
public class Organisation {
private String name;
private List<Admin> admins = new ArrayList<>();
private List<Admin> siteAdmins = new ArrayList<>();
public Organisation() {
@kabir
kabir / script.md
Created March 14, 2019 10:13
PR script

Add to ~/.profile:

# git pull request processing
pull() {
  if [ "x$1" = "x" ]; then 
    echo No branch or PRs specified
    echo either:
    echo pull branch-name 111 222 333
    echo or:
    echo pull 111 222 333
@kabir
kabir / Generated Core Matrix
Created May 14, 2018 15:59
Component matrices
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.jboss</groupId>
<artifactId>jboss-parent</artifactId>
<version>26</version>
</parent>
<groupId>org.wildfly.core</groupId>