Fix fix Already have 1 record(s) with pnfsPath= ...
    (commit 635a05a78debe247c717b6fd27c18067af676ccb to master)
spacemanager: Fix authorization bug in space reservation for non-srm transfers

Target: trunk
Request: 2.6
Request: 2.2
Acked-by: Dmitry Litvintsev <litvinse@fnal.gov>
Patch: http://rb.dcache.org/dashboard/
(cherry picked from commit cce04b2f52fda78e6385230cc844c88241d3fa2c)
(2.6) hsqldb-plugin: fix transposed varchar settings

The longer varchar (8000) should appear on errormessage but was erroneously given to a different field in a few of the tables.

Target: 2.6
Require-notes: no
Require-book: no
Acked-by: Gerd
Acked-by: Paul
Committed: c8c4807e2dc2475a47fff94a87eba08bc9ba0651
(2.6) javatunnel: add certificate chain to subject

Failing XACML authentication through the gsidcap door.

The issue is that XACML, being both an auth and map plugin, requires the full certificate chain to be in the Subject.  The gsi tunnel was only adding a GlobusPrincipal and an FQANPrincipal to the subject.

The tunnel now extracts the chain from the GSSCredential object and places it in the public credentials set of the subject.

Testing:

Before the patch, the XACML plugin would fail because it had incomplete information and which it processed in a faulty manner.  The error resulted from a mapping like the following:

[DCap-gsi-00-fndca4a-/DC=com/DC=DigiCert-Grid/O=Open Science
Grid/OU=People/CN=Kenneth Herner 1385-133 Login AUTH xacml] mapping
service
https://gums.fnal.gov:8443/gums/services/GUMSXACMLAuthorizationServicePort
returned localId LocalId[] for VomsExtensions[X509Subject='/fermilab',
X509SubjectIssuer='null', fqan='null', primary=false, VO='null',
VOMSSubject='null', VOMSSubjectIssuer='null']

After the patch, the dccp operation succeeds.

Target: 2.6
Patch: http://rb.dcache.org/r/6112/
Require-book: no
Require-notes: yes
Acked-by: Tigran
Committed: 43d81f7b167ddfeec311f6eb24283e1251e6d0b5

RELEASE NOTES:
Fixes a bug whereby a combination of gsidcap with a VOMS cert and XACML authentication/mapping failed to authorize the user.
allow relocation of srmclient scripts

many of the srm scripts point to the generic srm script in
/usr/sbin/srm without using considering $SRM_PATH. This causes
problems if the scripts are installed in different locations than the
ones defined in the RPM.

This patch changes the default location of the generic srm script from
/usr/sbin/srm to ${SRM_PATH}/sbin which is /usr/share/srm/sbin by
default and changes all other scripts to use "${SRM_PATH}/sbin/srm",
thus allowing relocation of the scripts.

Ticket: http://rt.dcache.org/Ticket/Display.html?id=7989
Acked-by:
Target: trunk
Require-book: no
Require-notes: yes
(2.6) dcache, webadmin: fix exception handling

This commit covers two patches:

    http://rb.dcache.org/r/6032/
    http://rb.dcache.org/r/6033/

BILLING:

A number of checked exceptions which were wrapping unchecked exceptions have been eliminated.  In general RuntimeExceptions are propagated. Two exceptions:  when generating JAIDA plots, and wit

CORE, XACML, WEBADMIN:

Code in several places is not handling exceptions correctly; in particular, RuntimeExceptions masked by Exception are occasionally being caught and not propagated.

Where it is possible, catch(Exception) has been eliminated; where not possible, catch(RuntimeException) is called first so that this exception can be rethrown.

In several cases, a RuntimeException (such as the JDOExceptions from DataNucleus) are not propagated, as they cannot reasonably be handled elsewhere, and they should not be fatal to the JVM in

A separate set of patches have been reviewed for 2.6.

Testing:

Junit tests rerun.  Deployed and checked.

Target: 2.6
Acked-by: Karsten
Require-notes: no
Require-book: no
chimera: use ArrayList instead of LinedList

NFS listing is heavy with List#get operations, which
is the weakest point for LinkedList. This change improves
listing of jumbo directories ( ~100k files ) by factor of 10.

RELEASE NOTES:
speedup directory listing of large directories

Acked-by: Paul Millar
Target: master, 2.6
Require-book: no
Require-notes: yes
(cherry picked from commit 8529a07133b827cf407cb3da370b8698b34aa735)
Merge pull request #224 from DmitryLitvintsev/2.6

(2.6) Fix fix Already have 1 record(s) with pnfsPath= ...
Merge pull request #225 from gbehrmann/fix/2.6/rb6099

spacemanager: Fix authorization bug in space reservation for non-srm tra...
Merge pull request #228 from alrossi/fix/2.6/hsqldb-varchar

(2.6) hsqldb-plugin: fix transposed varchar settings
Merge pull request #233 from alrossi/fix/2.6/gsi-tunnel-x509-chain

(2.6) javatunnel: add certificate chain to subject
Merge pull request #240 from dCache/fix/2.6/relocatable-srmclient2

allow relocation of srmclient scripts
Merge pull request #243 from alrossi/fix/2.6/exception-handling

(2.6) dcache, webadmin: fix exception handling
Merge pull request #244 from kofemann/fix-readdir-performace-2.6

chimera: use ArrayList instead of LinedList
Merge remote-tracking branch 'upstream/2.6' into 2.6-cloud