HPCC-8816 Show 'Delete Query' result and redirect to QuerySet

After a query is deleted using the Delete button on QueryDetails page,
the QueryDetails page becomes invalid which should not be displayed.
This fix redirects the page to Browse Queryset page after the query
has been deleted.

On the Query Details page, a check box is added to indicate the query
is activated or not. The check box is also used for activating and
deactivating the query.

Signed-off-by: Kevin Wang <kevin.wang@lexisnexis.com>
HPCC-8053 Superfile lock contention causing superfile corruption

Add/Remove and Swap file operations that keep the state
(list of subfiles) of the superfiles they deal with, could become
out of date, if they are blocked by other operations that hold
read locks when they try to get exclusive locks to manipulate them

The transaction mechanism temporarily releases locks to avoid
deadlock situations, when if/it regains, it must refresh state.

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
HPCC-8761 Add HTTP 304 support to HTTP requests

This fix adds HTTP 304 support to ESP HTTP requests to improve ESP
performance. When an HTTP GetFile request is received, ESP reads
the timestamp of the file. If the request does not contain an etag
which contains the timestamp, ESP will create the etag and send
the etag with the content of the file. Otherwise, ESP will not
read the file content and send an HTTP 304 'Not Modified' response
to the client. If the HTTP request contains a 'if-modified-since'
header without an etag header, ESP will only change whether the
value of 'if-modified-since' matches the file's modified time or
not. If matches, an HTTP 304 response will be sent.

Signed-off-by: Kevin Wang <kevin.wang@lexisnexis.com>
HPCC-8761 Revise based on review

Signed-off-by: Kevin Wang <kevin.wang@lexisnexis.com>
HPCC-8850 enhance package validation to check for files that aren't mapped

Package validation should list the files currently in queries in the
queryset that aren't mapped in the packagemap.  In production environments
this will allow operations to make sure all files are mapped by packages.

Also added --pmid to allow existing packagemaps to be revalidated, and
--queryid to allow validation to occur only against a given query in
the queryset.


Signed-off-by: Anthony Fishbeck <Anthony.Fishbeck@lexisnexis.com>
HPCC-9003 Check inside expression attributes for evaluation in thor.

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Merge pull request #4147 from ghalliday/issue9003

HPCC-9003 Check inside expression attributes for evaluation in thor.

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
HPCC-8539 Add configuration option to specify dali client MP port range

For clients that use the 'default' port range of 7101-7500, read it from the
environment.xml file (if found).

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-8887 Text running too close to table border in Graph window

- Fix display issue by adding margin and padding to table and cells.
- Remove unnecessary white space

Signed-off by: Miguel Vazquez <miguel.vazquez@lexisnexis.com>
HPCC-9011 Check user object before checking its password expiration

The existing code checks a user's password expiration using the
user object in ESP. If no user authentication is required, the user
object is NULL and we do not need to check user status of
authentication. This fix checks the user object before using it to
checks the password expiration.

Signed-off-by: Kevin Wang <kevin.wang@lexisnexis.com>
HPCC-9010 Check query tree branch before using it

When a query is deleted, it's tree branch is removed from the
'queryset' tree. The existing code tries to set the 'suspended'
attribute for the tree branch, which causes the core. This fix
checks the query branch before setting the 'suspended' attribute.

Signed-off-by: Kevin Wang <kevin.wang@lexisnexis.com>
Merge pull request #4151 from miguelvazq/HPCC-8887

HPCC-8887 Text running too close to table border in Graph window

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #4150 from wangkx/h9010

HPCC-9010 Check query tree branch before using it

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #4152 from wangkx/h9011

HPCC-9011 Check user object before checking its password expiration

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #4127 from jakesmith/hpcc-8053

HPCC-8053 Superfile lock contention causing superfile corruption

Reviewed-By: Gavin Halliday <gavin.halliday@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #4141 from richardkchapman/mp-ports

HPCC-8539 Add configuration option to specify dali client MP port range

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
HPCC-9000 Variable length record display issues

Records with no maxlength but with records > 16k in size may display garbage
in ECLWatch.

This fix detects such cases and displays an error instead, and at the same
time raises the limit to 64k.

A full fix will require more work.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-9016 Centos 5 build error finding R libraries

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #4146 from afishbeck/packageset_validate_supers

HPCC-8850 enhance package validation to check for unmapped files

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #4024 from wangkx/h8816

HPCC-8816 Show 'Delete Query' result and redirect to QuerySet

Reviewed-By: Gavin Halliday <gavin.halliday@lexisnexis.com>
Reviewed-By: Gordon Smith <gordon.smith@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>