PL/Java is a free add-on module that brings Java™ Stored Procedures, Triggers, Functions, Aggregates, Operators, Types, etc., to the PostgreSQL™ backend.
Fix some issues identified in #425 that kept install_jar from working with an http URL.
HttpURLConnection has a getPermission method that is supposed to return the least permission needed to retrieve the resource. But it should be possible to use either a suitable SocketPermission or the newer URLPermission, and that old method only returns the first. If the policy grants a URLPermission and the permissions are intersected with the set containing just SocketPermission, an empty set results. Make sure the URLPermission is also included.
Java does not automatically use authentication info in the URL if the server sends a password authentication challenge. An Authenticator instance that will do that has to be set on the HttpURLConnection first.
Update the GitHub Actions and Appveyor CI scripts to include a test of install_jar over an authenticated http connection. (And then cherrypick, from the recent CI pull request, the changes to suppress Appveyor, because it keeps falling over for what seem to be reasons of its own.)
Node.java gets a new appendClasspathIf method, and SQLDeploymentDescriptor gets some typos fixed, in the process of adding the new tests.
Fix some issues identified in #425 that kept
install_jar
from working with an http URL.HttpURLConnection
has agetPermission
method that is supposed to return the least permission needed to retrieve the resource. But it should be possible to use either a suitableSocketPermission
or the newerURLPermission
, and that old method only returns the first. If the policy grants aURLPermission
and the permissions are intersected with the set containing justSocketPermission
, an empty set results. Make sure theURLPermission
is also included.Authenticator
instance that will do that has to be set on theHttpURLConnection
first.Update the GitHub Actions and Appveyor CI scripts to include a test of
install_jar
over an authenticated http connection. (And then cherrypick, from the recent CI pull request, the changes to suppress Appveyor, because it keeps falling over for what seem to be reasons of its own.)Node.java
gets a newappendClasspathIf
method, andSQLDeploymentDescriptor
gets some typos fixed, in the process of adding the new tests.