Remove setActive, add cache lookups to transaction

Removing the invasive setActive() method from transaction,
and its uses from FileServices and DFUUtil, and adding
a re-entrant cache parameter to control caching of files
when transaction is not active.
Fix gh-2629 Configmgr - save as button
- Add a 'Save Environment As' button to toolbar.
- 'Save Environment As' can only be used in read-only mode
- 'Save Environment As' loads the saved environment file

Signed-off-by: Gleb Aronsky <gleb.aronsky@lexisnexis.com>
Fix gh-2629 Configmr - Save As Button

  - Add a 'Save Envrionment As' button to toolbar
  - 'Save Environment As' can be used in read-only or write-mode
    - In write-mode 'Save Environment As' will save in memory/volatile
      configuration to target file.
  - 'Save Environment As' in read-only mode will load the target
    file after save
  - 'Save Environment As...' from Navigator context menu (Hardware)
    will behave identically to the 'Save Envrionment As' button

Signed-off-by: Gleb Aronsky <gleb.aronsky@lexisnexis.com>
Minor spacing change based on feedback.

Signed-off-by: Gleb Aronsky <gleb.aronsky@lexisnexis.com>
Fix gh-3070 superfile deleted when removing its subfiles

In existing EclWatch, removing all subfiles from a superfile
will delete the superfile itself.  This fix adds a checkbox
on Removing Subfiles page before a user deletes subfiles.
The checkbox will be enabled when a user is selected to
delete all of the subfiles. The user may choose to delete
(or not delete) the superfile using the checkbox.

Signed-off-by: Kevin Wang <kevin.wang@lexisnexis.com>
Fix gh-3007 Configmgr-should check for dafilsrv + ftslave for s

Signed-off-by: Gleb Aronsky <gleb.aronsky@lexisnexis.com>
Fix gh-3081 Thor slave not shown when group name not set

The preflight does not see slave node after resizing/renaming
cluster. The problem also happens on Cluster Process page
(before the preflight page). It was due to empty group name
read from getClusterGroupName(). This fix checks the attribute
'nodeGroup', If it is emoty, use the attribute 'name' as group
name.

Signed-off-by: Kevin Wang <kevin.wang@lexisnexis.com>
Fix ESP allowing JSON and XML responses to be redirected

Redirects direct the browser to another page and should not be allowed
when ESP methods are accessed as webservice APIs.

Fixes gh-3058.

Signed-off-by: Anthony Fishbeck <Anthony.Fishbeck@lexisnexis.com>
gh-3098 Misleading git tag displayed on internal builds

The git tags on internal developer builds can be misleading, because
of the way the upmerges are being done. When on a branch that is not
a specific closedown branch for a tagged build, the git tag is liable
to find the most recently-tagged release version that has been upmerged
to the current branch, and describe the current revision based on that,
which isn't really very helpful.

Add the expected version number to the filter when looking up git tags,
so that the tag will only be used in the cases where it will be helpful.

Fixes gh-3098

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Add dictionary support to ECL

Initial work on adding dictionary support to ECL. Grammar changes to
support syntax checks of simple dictionary constructs.

ecl regression suite passes (no changes to existing parse structures).

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Fixed issues from code review

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
WIP: DICTIONARY support - lookup support

Call rtl helper function to lookup values in a dictionary.
Add _linkcounted_ support on row parameters, and use it to pass
default row to hash lookup function.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
WIP: DICTIONARY support

Added x IN dictionary
Added support for COUNT(DICTIONARY) without having to go via dataset
(counts the number of non-NULL entries in the table).

Also fixed some issues with empty dictionaries.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
WIP: DICTIONARY support - check => consistency

Check the consistency of => in dictionary initializers.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
WIP: DICTIONARY support

Add DICTIONARY(dataset, record) support.
Relax the record matching in several places to ignore payload
attribute, so that rows can be linked rather than copied more often.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
WIP: DICTIONARY support - add test cases

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
WIP: DICTIONARY support - support output from workunit

Add support in fileview for outputting stored dictionary values.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
WIP: DICTIONARY support

Add type_dictionary to type-tracing code.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
WIP: Dictionary support

Various code cleanup in response to code review.
Added proper type checks for ROW IN dict.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
WIP: DICTIONARY support

Remove test from ecl regression suite that uses (defunct) PAYLOAD
attribute.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>