Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gKSUZ-00078S-Ur for pgsql-pkg-yum@arkaria.postgresql.org; Wed, 07 Nov 2018 18:23:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gKSUY-0008Ou-2J for pgsql-pkg-yum@arkaria.postgresql.org; Wed, 07 Nov 2018 18:23:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gKSUX-0008Ok-IQ; Wed, 07 Nov 2018 18:23:49 +0000 Received: from bay.acenet.us ([173.230.252.50]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gKSUU-00059f-Vq; Wed, 07 Nov 2018 18:23:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=anastigmatix.net; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=kVRpwsvZmaHZICwek4SKqpdS3icgKOEVZdbxjYejAmI=; b=WmffyJcemgveCg7ndDD88EKsUU cP7yjisWNGhJa3g6U6xnYYoy1Pt/dDUAfOcE1LXiZP1JCeR25anqoCZtUdHK0Zb/+vdfshq9a34ja RmT28dTWBSyibapUxNzbCGozauTFrwa26WuAnA1rC/hkuU0F5NB6RpZuEcYOJsrQ6CLwVrqish3Ls 4JGS1gpZp1DlCR+Yod7l259jod42Y3Afv8nqOfzME8/YRUttfHq/lmecFRQw7C0iCrLv1iSJW99m8 YcqJqOKnoUXjfmO6OJHNZYktO8433e4cVCoBwtpC+XvF633hDGaoVr3dIVElj/G/vW0DGRsxQOXjs JpLk/eAw==; Received: from [50.104.189.171] (port=34572) by bay.acenet.us with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gKSUR-006PUF-2e; Wed, 07 Nov 2018 13:23:44 -0500 Subject: Re: PL/Java 1.5.2 - fixes one regression in date conversion in 1.5.1 To: Christoph Berg , pgsql-pkg-debian@postgresql.org, pgsql-pkg-yum@postgresql.org References: <5BE08D74.2060207@anastigmatix.net> <20181106074931.GB3898@msg.df7cb.de> <5BE18B2F.9030805@anastigmatix.net> <20181106145659.GC13511@msg.df7cb.de> From: Chapman Flack X-Enigmail-Draft-Status: N1110 Message-ID: <5BE32DAE.7090508@anastigmatix.net> Date: Wed, 7 Nov 2018 13:23:42 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <20181106145659.GC13511@msg.df7cb.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-94.5 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bay.acenet.us X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - anastigmatix.net X-Get-Message-Sender-Via: bay.acenet.us: authenticated_id: chap+anastigmatix.net/only user confirmed/virtual account not confirmed X-Authenticated-Sender: bay.acenet.us: chap@anastigmatix.net X-Source: X-Source-Args: X-Source-Dir: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 11/06/18 09:56, Christoph Berg wrote: > There's still a problem, though. Jessie, 9.3, OpenJDK 7: > > ERROR: java.lang.SecurityException: read on /usr/share/javazi/Europe/Prague > STATEMENT: SELECT sqlj.install_jar('file:/usr/share/postgresql/9.3/pljava/pljava-examples-1.5.2.jar', 'examples', true) Hmm. Does that happen only on Jessie? Is there a debianism where zoneinfo files for Java are distributed in this other location instead of under $JAVA_HOME ? At present, the security manager for "trusted" PL/Java doesn't offer any easy way to configure additional filesystem locations that are ok to read from. I'm working on that for a future version, but that doesn't help here. I suspect it could be made to work by adding trust=org.postgresql.pljava.annotation.Function.Trust.UNSANDBOXED in the @Function annotation on the issue199() method in pljava-examples/src/main/java/org/postgresql/pljava/example/annotation/PreJSR310.java However, it is only a regression test, and it is probably simpler just to build with a patch to not run it (say, by removing the @SQLAction annotation at the top of that file). That's preferable to adding UNSANDBOXED willy nilly to things in the examples jar that people may casually install. This is good for me to know about, as I was thinking of changing PL/Java's behavior in a future release to set Java's timezone to match the PG session's by default. Now I know not to do that until there is a way to accommodate zoneinfo from atypical locations. -Chap