Skip to content

Instantly share code, notes, and snippets.

Michal Gajdos mgajdos

Block or report user

Report or block mgajdos

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
@mgajdos
mgajdos / patch#1
Last active Aug 29, 2015
PR #143 Patch
View patch#1
diff --git a/media/multipart/src/main/java/org/glassfish/jersey/media/multipart/internal/MultiPartReaderClientSide.java b/media/multipart/src/main/java/org/glassfish/jersey/media/multipart/internal/MultiPartReaderClientSide.java
index 49fa175..e91d4d0 100644
--- a/media/multipart/src/main/java/org/glassfish/jersey/media/multipart/internal/MultiPartReaderClientSide.java
+++ b/media/multipart/src/main/java/org/glassfish/jersey/media/multipart/internal/MultiPartReaderClientSide.java
@@ -137,6 +137,7 @@ public class MultiPartReaderClientSide implements MessageBodyReader<MultiPart> {
if (properties.getBufferThreshold() != MultiPartProperties.BUFFER_THRESHOLD_MEMORY_ONLY) {
// Validate - this checks whether it's possible to create temp files in currently set temp directory.
try {
+ //noinspection ResultOfMethodCallIgnored
File.createTempFile("MIME", null, tempDir != null ? new File(tempDir) : null).delete();
@mgajdos
mgajdos / InvalidRequestUriITCase
Created Feb 3, 2015
Test-case for Jersey 2.x PR #114
View InvalidRequestUriITCase
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2015 Oracle and/or its affiliates. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution License("CDDL") (collectively, the "License"). You
* may not use this file except in compliance with the License. You can
* obtain a copy of the License at
@mgajdos
mgajdos / restore-jersey-in-gf.sh
Created Jan 20, 2014
Restore old Jersey in GlassFish 4.0.1
View restore-jersey-in-gf.sh
#!/bin/bash
MODULES_DIR=`pwd`/modules
OSGI_CACHE_DIR=`pwd`/domains/domain1/osgi-cache/felix
processArtifact() {
# Restore artifact
if [ -f ${MODULES_DIR}/$1.bak ]; then
echo "Restoring $1 ..."
mv ${MODULES_DIR}/$1.bak ${MODULES_DIR}/$1
@mgajdos
mgajdos / update-jersey-in-gf.sh
Last active Jun 17, 2017
Update Jersey in GlassFish 4.0.1
View update-jersey-in-gf.sh
#!/bin/bash
JERSEY_VERSION=2.5.1
HK2_VERSION=2.2.0-b26
JAVASSIST_VERSION=3.18.1-GA
MODULES_DIR=`pwd`/modules
OSGI_CACHE_DIR=`pwd`/domains/domain1/osgi-cache/felix
processArtifact() {
You can’t perform that action at this time.