doors: Fix race condition in registration of mover creation and termination

The race condition caused srmCopy transfers to hang randomly.

Target: trunk
Require-notes: yes
Require-book: no
Request: 2.6
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: http://rb.dcache.org/r/6178/
(cherry picked from commit 9f63e72d05e275456295171c021bd61155c4d582)
libs: use buxfix jpnfs-0.5.8

    * [968bdd3] core: limit number of states owned by client
    * [9f9863a] vfs: use inodeToBytes to generate file handle for chimera

exclude h2 dependency

Target: 2.6
Require-book: no
Require-notes: no
Merge pull request #258 from kofemann/jpnfs-0.5.8-for-2.6

libs: use buxfix jpnfs-0.5.8
(2.6) webadmin: fix regressions in PoolList and ActiveTransfers blocking command submission

This patch combines the fixes from patches 6061 and 6062, adapted to these pages which do not have auto-refresh.

See http://rb.dcache.org/r/6161 and http://rb.dcache.org/r/6162 for details.

Target: 2.6
Require-notes: yes
Require-book: no

Testing done:

As with the patches for master.
(2.6) webadmin: add select-all and deselect-all to PoolList and ActiveTransfer tables

Equivalent of http://rb.dcache.org/r/6164 for 2.6. Depends on pull request for fix/2.6/webadmin-submit-bug.

Target: 2.6
Require-notes: yes
Require-book: no
Feature-req: http://rt.dcache.org/Ticket/Display.html?id=8047

RELEASE NOTES:

Adds select/deselect all on lists on the Pool Usage and Active Transfer pages (when in authorized admin mode).
dcache-xrootd: Fix stat, fix return codes

Addresses protocol compliance issues in the xrootd implementation:

- Return kXR_NotFound if file is not found (affects stat, open, rm,
  rmdir, mv, list

- Implement kXR_offline, and kXR_poscpend in stat response. A file
  is offline if not on a read pool (ie it requires staging from tape,
  pool to pool, or that pools come online). A file is poscpend if
  currently being uploaded.

- Change kXR_writable, kXR_readable, kXR_xset of stat such that these
  are interpreted wrt the current subject, rather than just returning
  the world permissions.

- The stat changes also apply to statx.

- Change kXR_open to return kXR_FileLocked if file is currently being
  uploaded.

Target: trunk
Require-book: no
Require-notes: yes
Request: 2.6
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: http://rb.dcache.org/r/5817/
(cherry picked from commit daa9c9d57c40ff23e5148a344c76919f1dbe2b97)
chimera: fix sql exception if file name too long

in some cases (at least during testing) we see names longer that
256 symbols. This results into naasty exceptions which is fixed
by this patch.

Patch: http://rb.dcache.org/r/5490
Target: trunk
Request: 2.6
Require-book: no
Require-notes: no
Merge pull request #257 from gbehrmann/fix/2.6/rb6178

doors: Fix race condition in registration of mover creation and terminat...
Merge pull request #259 from alrossi/fix/2.6/webadmin-submit-bug

(2.6) webadmin: fix regressions in PoolList and ActiveTransfers blocking...
Merge pull request #260 from alrossi/feature/2.6/add-checkall-to-tables

Feature/2.6/add checkall to tables
Merge pull request #261 from gbehrmann/fix/2.6/rb5817

dcache-xrootd: Fix stat, fix return codes
Merge pull request #262 from paulmillar/fix/2.6/long-filename

chimera: fix sql exception if file name too long
gplazma: Avoid multiple primary FQANs

Addresses a bug that can cause multiple primary FQANs to be created,
thus resulting in failures in billing and spacemanager.

The vorolemap plugin may cause multiple primary FQANs to be created.
This results in SrmSpaceManager failures, eg:

06 Nov 2013 08:51:38 (SRM-gonzo) [130.235.149.204:59894 ZR0:11817:srm2:prepareToPut:-2060713576:-2060713574] Failed to mark space as being used space: Marking Space as Being Used failed
=>Subject has multiple primary FQANs

This is a regression introduced in dCache 2.6 when we altered the
gPlazma plugin interface. Before, only the FQAN for which we
generated a mapping was included as a primary FQAN.

In the fix I decided to only include the actual primary FQAN and
not add "fake" primary FQAN based on mappings that exist. This is
a change compared to pre-2.6 semantics, but I believe this is the
correct thing to do and is also more stable when multiple mapping
plugins are used.

Target: trunk
Request: 2.6
Require-book: no
Require-notes: yes
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: http://rb.dcache.org/r/6198/
(cherry picked from commit bc88df103b80b342be23515b8cfeeac0846ca2ce)
dcache-xrootd: Upgrade to xrootd4j 1.2.1

Target: trunk
Request: 2.6
Require-notes: no
Require-book: no
Acked-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Patch: http://rb.dcache.org/r/6192/
(cherry picked from commit d36ae0cc58c6a2cb99aa1ada3b4a04a62f07d1cc)

Conflicts:
	pom.xml
gplazma: Fix unit tests for vorolemap plugin

Target: trunk
Require-notes: no
Require-book: no
Request: 2.6
Acked-by: Karsten Schwank <karsten.schwank@desy.de>
Patch: http://rb.dcache.org/r/6202/
(cherry picked from commit 2992721bf542ebd6aca61bccc5f89b24f1284865)
Merge pull request #263 from gbehrmann/fix/2.6/rb6198

gplazma: Avoid multiple primary FQANs
Merge pull request #264 from gbehrmann/fix/2.6/rb6192

dcache-xrootd: Upgrade to xrootd4j 1.2.1
[maven-release-plugin] prepare release 2.6.12
[maven-release-plugin] prepare for next development iteration
libs: update jglobus library

updated library contains fix which changes a way how
CA and it's signing_policy file are processed.

Changelog for v2.0.6-rc3.d..v2.0.6-rc4.d
    * [b3dd9f1] Make input streams buffered and close them after use
    * [c3bfef4] issue102: fix - index caches against domain name rather than hash of encodings

GGUS: https://ggus.eu/ws/ticket_info.php?ticket=98570
Acked-by: Albert Rossi
Acked-by: Gerd Behrmann
Acked-by: Paul Millar
Target: master, 2.6, 2.7
Require-book: no
Require-notes: yes
(cherry picked from commit 01f06295dfa37fd648c3df4366401b9feafb0b61)
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>