ssh2: Honor admin.colors.enable

    Ssh2 admin interface did not honor admin.colors.enable, this patch resolve this problem.

    Ticket: http://rt.dcache.org/Ticket/Display.html?id=7820
    Acked-by: Gerd
    Target: master
    Require-book: no
    Require-notes: no

Squashed commit of the following:

commit 8e3db9a3f6cd0c9b8ce6f340f67eb3ecf3651163
Merge: 3887dc4 3e02f94
Author: Christian Bernardt <christian.bernardt@desy.de>
Date:   Mon Jul 15 18:33:45 2013 +0200

    Merge color fix branch with current master because not all changes got committed with the last push.

    Sorry.

    ssh2: Honor admin.colors.enable
    Ssh2 admin interface did not honor admin.colors.enable, this patch resolve this problem.

    Ticket: http://rt.dcache.org/Ticket/Display.html?id=7820
    Acked-by: Gerd
    Target: master
    Require-book: no
    Require-notes: no

commit 3887dc446e7d388659ffb651e5a0a9e1db67f868
Author: Christian Bernardt <christian.bernardt@desy.de>
Date:   Mon Jul 15 14:15:39 2013 +0200

    ssh2: Honor admin.colors.enable

    Ssh2 admin interface did not honor admin.colors.enable, this patch resolve this problem.

    Ticket: http://rt.dcache.org/Ticket/Display.html?id=7820
    Acked-by: Gerd
    Target: master
    Require-book: no
    Require-notes: no

commit 3e02f94eebb02bddf81441a9dd7ac41344577e74
Author: Christian Bernardt <christian.bernardt@desy.de>
Date:   Mon Jul 15 14:15:39 2013 +0200

    Change parameter to no type definition and switch line to above cell related properties

commit 89bd221adafba600ce35c5f103f65a6736c408e6
Author: Christian Bernardt <christian.bernardt@desy.de>
Date:   Mon Jul 15 12:22:09 2013 +0200

    Remove line that sets colors from environment param and not from within dCache

commit 0def3e296a3018c173062457b7256a4ac207ef30
Author: Christian Bernardt <christian.bernardt@desy.de>
Date:   Mon Jul 15 11:41:13 2013 +0200

    ssh2: Honor admin.colors.enable

    Ssh2 admin interface did not honor admin.colors.enable, this patch resolve this problem.

    Ticket: http://rt.dcache.org/Ticket/Display.html?id=7820
    Acked-by:
    Target: trunk
    Require-book: no
    Require-notes: no
Merge branch 'master' of github.com:dCache/dcache
Merge branch 'master' of github.com:dCache/dcache
pool: update nfs mover to fit into current design

after last mover code restructuring, NFS mover was adopted
not in the optimal way. This change makes NFS mover to naturally
fit into new design.

Acked-by: Paul Millar
Target: master
Require-book: no
Require-notes: no
Patch: http://rb.dcache.org/r/5893/
spacemanager: Fix forwarding when disabled and add fast forward path

Addresses a bug in which PoolIoFileMessage was not forwarded to pool
manager when spacemanager was disabled.

Addresses a performance issue in which spacemanager congestion caused
by heavy write activity slows down read requests, even though read
requests are simply forwarded by pool manager. The issue is that the
forwarding of messages related to a read request happens on a thread
pool (manager by ThreadManager) that is also used by write requests.
This patch addresses the problem by forwarding such message immediately
rather than scheduling them on a different thread pool.

Note that read requests may still suffer from write congestion as
DoorTransferFinished must be intercepted by space manager and we
cannot distinguish between read and write requests without a
database lookup.

Target: trunk
Request: 2.6
Request: 2.2
Require-notes: yes
Require-book: no
Ticket: http://rt.dcache.org/Ticket/Display.html?id=7902
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: http://rb.dcache.org/r/5886/
srm: fix file ownership queries

Currently, the SRM relies on down-casting the supplied SRMUser object to an
AuthorizationRecord to discover the uid and gid of this user.  This is used either
when querying whether a file is owned by some user or the user is a member of the
group that owns this file.

Since we recently moved away from AuthorizationRecord and used DcacheUser as the
concrete class that provides SRMUser, the ability to discover uid and gid of a user
was lost.

This patch fixes the problem by downcasting to the correct class.

A problem not fixed by this patch is that group-ownership is checked only against
the user's primary gid (all groups should be checked).  A future patch will fix
this.

Target: master
Requires-notes: no
Requires-book: no
Patch: http://rb.dcache.org/r/5905
Acked-by: Dmitry Litvintsev
Acked-by: Gerd Behrmann
*dcap, *ftp, ssh1: fix error handling

LoginManager is agnostic to the underlying protocol and delegates
this responsibility to some StreamEngine.  The StreamEngine is
instantated via reflection, which may result in an
InvocationTargetException being thrown, which wraps the underlying
cause of the problem.

There are two problems with the current code: first, if the underlying
problem is an Error (e.g. OutOfMemoryError) then this is not
propagated and dCache will try to continue in this ill-defined state;
second, the error message logged is that of the ITE, which does
not include a description of the underlying problem.

This patch fixes these two problems.

Target: master
Request: 2.6
Request: 2.2
Patch: http://rb.dcache.org/r/5906
Acked-by: Tigran Mkrtchyan
dcap: drop READV io log level from info to debug

Ticket: #7980
Acked-by: Paul Millar
Target: master, 2.6
Require-book: no
Require-notes: yes
IPv6: Improve address handling by Subnet (was 4639)

In some cases class Subnet handles converted IPv6 to IPv4 addresses in
an incorrect way: It accepts some invalid addresses and in some cases it
converts the address without adjusting the netmask.
This patch fixes these problems by adding special handling for special
addresses.

Acked-by: Tigran
Target: master
Require-book: no
Require-notes: no
gplazma-ldap: make DN search string configurable

added a new property to specify DN search criteria:

gplazma.ldap.userfilter

The default value is 'uid', which is used in posix
schema.

This is a very lite filter version. Can be changed if needed.

Acked-by: Paul Millar
Target: master,2.6
Require-book: yes
Require-notes: yes
Patch: http://rb.dcache.org/r/5922/
startup: fix logging multiple stacktraces on RuntimeException

When dCache fails to start up a service because a cell throws
a RuntimeException then the same stack-trace is logged three times:
once by AbstractCell's doInit and twice within Bootload.

This patch reduces this to just once.  It also fixes the problem
that multiple RuntimeExceptions have null as their message, so
toString is used instead.

Note that there is still a RuntimeException that wraps the previous
RuntimeException and adds the context information (which line and file
triggered the problem), therefore the stack-trace includes two
exceptions.

Target: master
Requires-book: no
Requires-notes: no
Patch: http://rb.dcache.org/r/5919
Acked-by: Tigran Mkrtchyan
poolmanager: provide reasonable error message if partition type is unknown

If the admin has saved a partition type 'classic' in their
poolmanager.conf then dCache will fail to start with a meaningless
error message and a stack-trace.

This patch provides a meaningful error message.  Due to a
hack/work-around for another problem, the message is wrapped in a
RuntimeException, which triggers reporting the problem as a bug (with
a stack-trace).

Target: master
Requires-notes: no
Requires-book: no
Patch: http://rb.dcache.org/r/5920/
Acked-by: Karsten Schwank
pom: yet another fix to datanucleus dependency

use the same plugin across components

Acked-by: Paul Millar
Acked-by: Karsten Schwank
Target: master
Require-book: no
Require-notes: no
Patch: http://rb.dcache.org/r/5923/
[maven-release-plugin] prepare branch 2.7
[maven-release-plugin] prepare for next development iteration
dcache: yet another fix to datanucleus dependency

Use the release version, not the old pre-release beta with the
old name.

Target: trunk
Request: 2.7
Require-book: no
Require-notes: no
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: http://rb.dcache.org/r/5925/
system-test: Fix authzdb generation when htpasswd is not installed

Otherwise gPlazma will fail due to the missing configuration file.

Target: trunk
Request: 2.7
Require-notes: no
Require-book: no
Acked-by: Karsten Schwank <karsten.schwank@desy.de>
Acked-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Patch: http://rb.dcache.org/r/5927/
webadmin: fix jquery and Co. with new wicket

wicket 6.9.x comes with own jquery library.
remove the old version. Update pages to use
included version. Update page rendering to
include required scripts.

This change fixes regressions introduced by
migrating to wicket 6.9.1 [55f703e].

Acked-by: Albert Rossi
Target: master, 2.7
Require-book: no
Require-notes: no
webadmin: sort domain entries on CellAdmin page

On a installation with 600 domains it's hard to find
required Domain/Cell.

Acked-by: Paul Millar
Target: master, 2.7
Require-book: no
Require-notes: yes
libs: update jpnfs library

update to a bugfix relase of NFS code:

this fixes enforce security flavor in the export file.

Example entry in export file:

/some/export/path *(rw,sec=krb5)

Changelog for jpnfs-0.5.2..jpnfs-0.5.5
    * [178bddd] nfs: added support for sec flavor in export file
    * [91f4cba] vfs: check security flavor used by client
    * [2cd3029] nfsv3: reply correct auth flavor of mount
    * [ca91195] nfs: ignore and log export entries with unsupported options
    * [be6ff36] junit: refactor v4 test to reduce code duplication
    * [485b6a4] nfsv41: fix open stateid leak

Acked-by: Paul Millar
Target: master, 2.7, 2.6
Require-book: yes
Require-notes: yes