correcting IoMode check for SEEK_AND_WRITE
ssh2: fix int overflow with timeout

As mina sshd used int as timeout value, max long
converted into negative number and ignored.

Acked-by: Paul Millar
Target: master
Require-book: no
Require-notes: no
(cherry picked from commit 8608b98be3206351acda3a8e4389b072f2df089e)
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Merge pull request #297 from kofemann/ssh-overflow

ssh2: fix int overflow with timeout
Merge pull request #296 from daniel-meister/2.7

correcting IoMode check for SEEK_AND_WRITE
info-provider: Fix regression in publishing GlueServiceEndpoint

Target: trunk
Request: 2.7
Require-notes: yes
Require-book: no
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: http://rb.dcache.org/r/6246/
(cherry picked from commit fb55fb8498c16a7353d1e3a6169d5ac31058ca7f)
Merge pull request #298 from gbehrmann/fix/2.7/rb6246

info-provider: Fix regression in publishing GlueServiceEndpoint
Merge pull request #293 from alrossi/fix/2.7/remove-autorefresh

(2.7) dcache-webadmin: remove autorefresh on pages with ListViews
srm-client: fix building of tagged RPMs

The master and 2.7 branches contain code to build the srm-client RPMs when
dCache has a "-SNAPSHOT" in the version (e.g., "2.7.0-SNAPSHOT").  The "-"
is illegal in the RPM name and the build-helper maven plugin is used to
remove it (to "2.7.0SNAPSHOT").

Tagged versions of dCache code do not contain the "-SNAPSHOT", so
the regexp in the build-helper maven plugin has nothing to replace.
Unfortunately, a failure to match results in the build process failing.

This patch fixes the problem by making the replacement optional.

Target: master
Request: 2.7
Requires-notes: no
Requires-book: no
Patch: http://rb.dcache.org/r/6242/
Acked-by: Gerd Behrmann
Merge pull request #299 from paulmillar/fix/2.7/tagged-srm-client

srm-client: fix building of tagged RPMs
pool: Fix -sticky option in migration module

Addresses a regression that causes the -sticky option when
used without a value to not match any files.

The issue was that the empty value of a multi-valued option
was translated to an array with the empty string rather than
the empty array.

Target: trunk
Request: 2.7
Request: 2.6
Ticket: http://rt.dcache.org/Ticket/Display.html?id=8108
Require-notes: yes
Require-book: no
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: http://rb.dcache.org/r/6247/
(cherry picked from commit 7c34310cd369f602258757318ce4dffb970fdb71)
billing: Add shebang header to indexer cronjob

Addresses an issue with the billing indexer cronjob, that
prevented it from being executed.

Target: trunk
Request: 2.7
Require-notes: yes
Require-book: no
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: http://rb.dcache.org/r/6249/
(cherry picked from commit d73114fca0cf47942b68a275de296e3b6d5fc3c3)
Merge pull request #302 from gbehrmann/fix/2.7/rb6249

billing: Add shebang header to indexer cronjob
Merge pull request #300 from gbehrmann/fix/2.7/rb6247

pool: Fix -sticky option in migration module
[maven-release-plugin] prepare release 2.7.1
[maven-release-plugin] prepare for next development iteration
dcap: separate protocol name and client ip in DCapProtocolInfo#toString()

from
   DCap-3.0141.34.224.41:20009
to
   DCap-3.0,141.34.224.41:20009

Acked-by: Paul Millar
Target: master, 2.6, 2.7
Require-book: no
Require-notes: no
(cherry picked from commit 63ff338551f77e709f43fd3ea38a5fee1cf7a87c)
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
chimera: compact hadles passed to NFS server

The chimera IDs on the wire presented as:

0:TAG:0000DA875B38D9E0461F9ADFEA7C7422A956:OSMTemplate

This change introduses a binary form with backward compatibility,
e.q. new version can understand and decode old forms.

The new form:

<byte 1> : fsid
<byte 2> : inode type
<byte 3> : len of the id
<byte 4:id len> id of the file
<byte ~22> : len of inode specific data
<byte 24:opque len> specific data.

For example above, ithe old encoding: will produce 68 byte nfs file handle,
with new scheme - 47.

Ticket: #7927
Acked-by: Paul Millar
Target: master
Require-book: no
Require-notes: no
(cherry picked from commit 6aa5a402b63af49e12c280a9bc264b6a44c1d434)
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
ldap: fix filter property

Acked-by: Karsten Schwank
Target: master, 2.6, 2,7
Require-book: no
Require-notes: no
(cherry picked from commit 635005642d016254f449a81a72cdc739465cfa62)
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
srm: Supress stack trace on EofException in Axis 1

Axis 1 logs a full stack trace on a benign EofException. There is
no easy way to alter the behaviour of the Axis 1 code. This patch
instead uses an aspect to advice Axis 1 to log a simpler message.

I had to change the Java agent from Spring's AspectJ wrapper to
AspectJ. Spring's agent is used when you have many class loaders
and want to weave independently in each. That's a use case we
don't have, and using Spring's wrapper causes problems when you
have multiple adviced dCache services.

Target: trunk
Request: 2.7
Require-notes: yes
Require-book: no
Acked-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Patch: http://rb.dcache.org/r/6256/
(cherry picked from commit 6217cee927398f411696cae89e6831acae173e57)
srm: Supress stack trace on EofException in Axis 1

Forgot to include this file in the previous commit.

Require-notes: no
Require-book: no
(cherry picked from commit fd74e03a8cbb8a26e7c21497e5aa776f1dc29137)