srm: Fix NPE and timer thread kill when restoring jobs

Fixes the fulling bug:

07 Nov 2013 10:11:35 (SRM-gonzo) [] Uncaught exception in thread Job expiration
java.lang.NullPointerException: null
        at org.dcache.srm.request.GetRequest.stateChanged(GetRequest.java:248) ~[srm-server-2.7.0~ndgf2.jar:2.7.0~ndgf2]
        at org.dcache.srm.request.Job.setState(Job.java:361) ~[srm-server-2.7.0~ndgf2.jar:2.7.0~ndgf2]
        at org.dcache.srm.request.Job.setState(Job.java:321) ~[srm-server-2.7.0~ndgf2.jar:2.7.0~ndgf2]
        at org.dcache.srm.request.Job.checkExpiration(Job.java:815) ~[srm-server-2.7.0~ndgf2.jar:2.7.0~ndgf2]
        at org.dcache.srm.scheduler.SharedMemoryCacheJobStorage$ExpirationTask.run(SharedMemoryCacheJobStorage.java:175) ~[srm-server-2.7.0~ndgf2.jar:2.7.0~ndgf2]
        at java.util.TimerThread.mainLoop(Timer.java:555) ~[na:1.7.0_45]
        at java.util.TimerThread.run(Timer.java:505) ~[na:1.7.0_45]

The exception kills the timer thread. This is fixed by this patch. The patch
also fixes the NPE itself. It is unknown why exactly some file requests
cannot be found in the database, but I suspect that old file requests are
removed concurrently.

Target: trunk
Require-notes: no
Require-book: no
Request: 2.7
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: http://rb.dcache.org/r/6215/
doors: Allow loginbroker property to be empty

It should be possible to not register with any loginbroker.

Target: trunk
Require-notes: no
Require-book: no
Request: 2.7
Acked-by: Dmitry Litvintsev <litvinse@fnal.gov>
Patch: http://rb.dcache.org/r/6219/
deb: Include cron job for billing compression and indexing

Target: trunk
Request: 2.7
Require-notes: no
Require-book: no
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: http://rb.dcache.org/r/6216/
info-provider: Fix regression caused by info-provider using a deprecated property

Introduces the new property 'info-provider.http.port', which defines
the TCP port the info-provider will contact the httpd service on.

Sites that previously relied on redefining httpdPort will have to
set this new info-provider property.

Also fixed a bug that caused the HTTP_PORT and HTTP_HOST environment
variables to be ignored by the info-provider.

Target: trunk
Require-notes: no
Require-book: no
Request: 2.7
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: http://rb.dcache.org/r/6217/
srm: Fix regression in srmGetSpaceMetaData

The spec is not precise about what file requests level statuses should
be considered a non-success return code for the srmGetSpaceMetaData
operation itself. It seems however logical to not consider
space-lifetime-expired and exceeded-allocation as failures of the
getSpaceMetaData operation.

Atlas transfers currently fail at NDGF due to this problem.

Target: trunk
Require-notes: no
Require-book: no
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: http://rb.dcache.org/r/6218/
srm: Fix space expiration check in space query

Target: trunk
Require-notes: no
Require-book: no
Request: 2.7
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: http://rb.dcache.org/r/6220/
    chimera: fix handling of bytea data in path2inode and path2inodes stored procedures

    when migrating from 8.4 to 9.2 postgresql it was noticed that assigning of bytea data
    to varchar produced unexpected result due to bytea_output='hex' as default in postgresql 9.2
    This patch addresses it by calling encode(ifiledata,'escape') before assigning it to
    varchar variables

    Ticket: #number
    Acked-by: Paul Millar, Tigra Mkrtchyan
    Target: trunk
    Request: 2.2
    Request: 2.6
    Request: 2.7
    Require-book: no
    Require-notes: no
info-provider: Fix publishing of SRM

When srm-loginbroker was removed as a service, publishing the
srm to loginbroker was altered to publish the family name as
'srm' rather than 'SRM'. This is in line with our other doors,
but I was unaware that info-provider checks for this particular
string and that the check is case sensitive.

This patch updates info-provider to check for the lower case
string.

Target: trunk
Request: 2.7
Require-notes: no
Require-book: no
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: http://rb.dcache.org/r/6222/
srm: Improve error message on file_busy and duplication_errors

I think these messages are more to the point. The duplication error
message is taken from the SRM spec.

Target: trunk
Request: 2.7
Require-notes: no
Require-book: no
Acked-by: Paul Millar <paul.millar@desy.de>
Acked-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Patch: http://rb.dcache.org/r/6223/
libs: update to nfs4j-0.6.2

Changelog for nfs4j-0.6.1..nfs4j-0.6.2
    * [2f24baa] nfsv3: fix creation of symbolic link

Acked-by: Albert Rossi
Target: master, 2.7
Require-book: no
Require-notes: no