Overview
The WXM_CONFIG_RESOLVER plugin toolkit provides a set of tools to analyze the configuration. It can be accessed via the plugin's URL page:
Main menu
The main menu looks like this:
Configuration debug
This page allows you to analyze the configuration for a mapping in order to know the reason for each property, possible errors, redefinitions, location of files, processors involved, etc.
Select here the mapping;
Click this button to launch the calculation of the configuration of the mapping selected in (1);
Click this button to set up the configuration calculation and the information to be obtained;
Click this button to paste the result of an invocation of API /config/explain (only results without node selection are supported at this time);
Click this button to access a form with an edit field for pasting a result, possibly editing it, etc;
The ℹ️ icon displays the detailed information for a property;
The line number (from 0 to n-1) is displayed at the head of the line;
Fold or unfold JSON objects or arrays with the »… / « icon
Click to fold or unfold the element
Ctrl+click to fold or unfold the element and all its children
Alt+click to fold or unfold the sibling elements
Shift-click shows the JSON in another window in raw mode
Ctrl+Shift+click copies the JSON to clipboard
The configuration JSON appears here.
The areas marked in yellow are the redefined areas.
The path of the properties in error is in red
Deleted properties (with a delete extension file) are indicated in yellow by the following icon:
Configuration Layers
This page allows you to see the configuration by layer.
Select here the mapping
Select here the user (for processors)
Select the type of view
View by layers
Simple view
Check this checkbox to activate “auto refresh”
If this checkbox is not checked, changing mapping or user selection will not reload data until you click on the refresh button (5)Click this button refresh configuration
JSON view options
Raw JSON
Display JSON indented and copiable as valid JSONFoldable JSON
Display JSON with the ability to fold or unfold objects, arrays or long stringsColored JSON
Check to enable syntax colorizationShow line numbers
Check to activate the display of line numbers (from 1 to n)
Container filters
After loading the configuration, displays the list of configuration containers involved. This list allows you to select the containers you want to see (by default, they are all selected).Layer filters
After loading the configuration, displays the list of configuration layerss involved. This list allows you to select the layers you want to see (by default, they are all selected).View
The configuration is displayed here according to the type of view selected. A contextual menu on the view allows to copy the configuration to the clipboard
Simple view
In this mode, we see the final configuration corresponding to the containers and layers selected in the filters (7) and (8).
View by layers
In this mode, the layers are separated and we see the configuration produced by each of them.
Check to display layers that do not physically exist (unfilterable)
Check to see deleted or replaced properties (with delete extension files)
Check to see the properties in error.
Each layer is displayed separately with a title bar showing its name, location and counters for deleted, replaced or error properties
Click this button to fold or unfold this layer
Files
This page shows the tree of files and folders involved in the configuration.
Select the configuration container
Reload selected container data
Unfold all folders
Fold all folders
If you delete files, it is necessary to flush the cache to update it
The view displays 6 columns, from left to right:
The tree, with
folders (6)
empty folders (7)
files (8)
The type
base
layer
file
directory
unknown:
The plugin where the file is located (unless it is a client configuration file)
The date and time of the file (lastModified)
The size
Information and possible actions
actions
“prohibited sign” for ignored
“exclamation” for error
“eye” for action to display the content of a file
“trash can” for action to delete
informations
for the bases, we see the mappings that use these bases
we see the name of the final JSON property
the JSON type, or the error, if any
click to see the full physical path of the file
Cache manager
This page allows to see the cache entries, to check their validity and eventually to flush the cache.
In this area, a general description of the state of the cache
ID
A uniq ID of cache. Each time a cache is dropped, a new ID is generatedType
This information indicates which trigger generated this cache.type I: it is a cache loaded at plugin startup from a previous runtime session;
type II: it is a cache generated when the plugin starts;
type III: it is a cache generated after a flush.
Status
The status of the cache (If you see any of the conditions marked with an asterisk, please report it with a ticket providing environment description, engine/plugin version, and logs)UP_TO_DATE means that the last cache generation request has been completed.
LOADING means that we have a type I cache being loaded
UPDATING means that we have a cache other than type I under construction
OBSOLETE means that we are accessing an old version of the cache which is being regenerated (we should not have this state displayed in this page*)
RENEW means that a type III cache generation is started (this state should not be displayed, it lasts for a very short time, and then normally go to state UPDATING*)
RESTART means that a type II cache generation is started (this state should not be displayed, it lasts for a very short time, and then normally go to state UPDATING*)
INITIALIZING means that a type I cache generation is started (this state should not be displayed, it lasts for a very short time, and then normally go to state LOADING*)
NO_CACHE means that the cache is not disabled, but that there is no instance*
UNKNOWN means that the state of the cache cannot be determined*
DISABLED means that the cache is disabled
stamp
An integer incremented each time a new cache is generated. Can be considered as the number of caches generated since the start of the plugin.date (init)
The start date of the generation of this cachetime
The time it took to generate this cacheentries
The number of entries in this cachelast flush
The date of the last flush request, and an icon indicating that this request succeed or failed*
In this area, the action buttons
refresh: to refresh this page
flush cache: to flush the cache
reset cache: flush the cache only on this cluster node (same action as flush cache if we are on an environment without cluster except that "last flush" will not be updated)
In this area, the list of current cache entries
We have for each input the following data, from left to right:index
This index is just an incremental number. It is preceded by an icon indicating the validity of this entry. When this page is refreshed, the cache is recalculated and compared to its current state. If there is no difference, it means that this cache entry is up to date and a green dot (check) is displayed. If there is a difference, a red dot (exclamation) is displayed and that there has been a change in configuration and that the cache has not been flushed (no request, or failed request*)mapping
The name of the mappingdate
The start date of the generation of this entrypaths
The folder paths used as key for this entryentry ID
Entry IDETag
Associated ETag. It is preceded by an icon indicating the validity of this ETag. When this page is refreshed, the ETag is recalculated and compared to its current value. If there is no difference, it means that this cache entry is the ETag is correct and a green dot (check) is displayed. If there is a difference, a red dot (exclamation) is displayed and the ETag is not correct*
Customer Configurations Manager
This page allows you to temporarily save the client configuration or to restore it.
Click this button to refresh the list
Click this button to save customer configuration files to a new version
Click this button to import (upload) a version file from file system
Click this button to export (dowload) a selected version to file system
Click this button to restore customer configuration files from selected version file
Click this button to delete selected version files
Check this checkbox to select or unselect all version files
Check the checkbox to select or unselect the corresponding version file
Each line displays a saved version with the following columns
a version selection checkbox
a file name possibly preceded by a badge (9) indicating that the version file has been validated
a save date
the customer name (the "Company Name" property of the server on which the backup was made)
the type of server environment on which the backup was made
DEV
STAGING
PROD
UNKNOWN
or NA
the engine version of the server on which the backup was made
a distinctive index for automatically named files
the size of the file
the date of the file (last modified)
buttons (see 10,11,12,13)
Click this button to export (download) this version file
Click this button to restore customer configuration files from this version file
Click this button to delete this version file
Click this button to compare this version file
to another selected single version
to customer storage folder otherwise
Comparing
The comparison display window shows on the left the reference (the version for which you clicked the compare button) and on the right the version to compare. In the center, the differences are shown.
Plugin Configuration
This page allows you to see how the configuration of the WXM_RESOLVER plugin is determined:
where the configurations are loaded
which plugins are contributing
if there are any errors when loading the configuration
etc.
The page has several tabs:
Configuration loading logs
Contributions
Configuration extensions
Processors
Mappings
Configuration loading logs
This tab displays the logs of the loading of the WXM_CONFIG_RESOLVER plugin configuration. The logs for the last ten days are kept.
Click this button to refresh list of logs
Click this button to delete all logs except the one from the last startup
The list displays for each log 3 columns
The name of the log file
The date of the log file
The size of the log file
The log of the last startup is shown in bold
Click this button to remove this log
Click this button to view this log
Contributions
The contributions are all external configurations, which are not configured in the config_setting
parameter of the WXM_CONFIG_RESOLVER plugin.
We can contribute to different types of configuration entities:
mappings
configuration containers
base locations
processors
Click this button to refresh data
Filters allow you to show or hide contributions (see https://crossmedia.atlassian.net/wiki/spaces/WD/pages/edit-v2/2597158925?draftShareId=8316a759-5887-433e-a888-4a2ad12d7df8#Behavior-of-toggle-filter-button-sets )
The list displays the following columns for each contribution:
type of contribution
Base location
Configuration, i.e. configuration containers
Mapping
Processor
preceded by status icon
OK: the contribution is loaded
Ignored: the contribution is ignored (see column info to know why)
Warn: a non-blocking problem has been detected. Possibly an incorrect value replaced by a default value.
Error: an error has occured and the contribution is ignored
Initialized: the contribution was loaded without error, but an error occurred during processing and the contributed components are not activated
Path: the relative path of the contribution definition file
Plugin: the contribution plugin
Overriden: if true, the configuration of the contribution component is overridden by the configuration of the WXM_CONFIG_RESOLVER plugin (in
config_settings
)Time (loading): The date and time the contribution was loaded
Time (file): the date (last modified) of the contribution definition file
Size (file): the size of the contribution file
Info: additional information
when the status is OK, the number of associated entries in the configuration loading log and the number of entities involved
in case of error or alert, contextual information
Buttons:
Click on the view button to see the details
Other buttons may be present depending on the context
Configuration extensions
This tab displays all extensions that contribute configuration containers.
Click this button to refresh data
By default, only activated containers are visible. Use this button to display the deactivated containers
Filters allow you to show or hide containers (see https://crossmedia.atlassian.net/wiki/spaces/WD/pages/edit-v2/2597158925?draftShareId=8316a759-5887-433e-a888-4a2ad12d7df8#Behavior-of-toggle-filter-button-sets )
The list displays the following columns for each container:
Activated or deactivated
The identifier of the configuration container, preceded by the icon of the status
OK
Warn
Error
The plugin
Order (if any configured)
Location: the path of the configuration folder, followed by a pink astetisk if it is the default path (not configured explicitly)
Source: where the configuration of this container comes from
Configuration: means parameter
config_settings
of the plugin WXM_CONFIG_RESOLVERContribution
Info: additional information
Buttons:
Click on the view button to see the details
Other buttons may be present depending on the context
Processors
This tab displays all processors
Click this button to refresh data
Filters allow you to show or hide containers (see https://crossmedia.atlassian.net/wiki/spaces/WD/pages/edit-v2/2597158925?draftShareId=8316a759-5887-433e-a888-4a2ad12d7df8#Behavior-of-toggle-filter-button-sets )
The list displays the following columns for each processor:
The name of the processor
Source: where the configuration of this container comes from
Configuration: means parameter
config_settings
of the plugin WXM_CONFIG_RESOLVERContribution
Type
java
groovy
Plugin
The definition
could be a classname
a path (to a groovy file)
Info: additional information
Buttons:
Click on the view button to see the details
Other buttons may be present depending on the context
Mappings
This tab displays all mappings
Click this button to refresh data
The list displays the following columns for each mapping:
Name of mapping
Source: where the configuration of this container comes from
Configuration: means parameter
config_settings
of the plugin WXM_CONFIG_RESOLVERContribution
Path: the path of the mapping
Plugin
Info: additional information
Behavior of toggle filter button sets
The filter buttons are two-state buttons:
The filter is enabled: corresponding value is visible | |
The filter is disabled: corresponding value is hidden |
When you click on a button, all the others are deactivated and you only see the elements that have the value corresponding to the filter
Control and click toggles the clicked button
Alt, shift and click resets all buttons to enabled: all elements are visible
Administration services
List of API end point accessible with a "tomcat" authentication, with their rights and a direct access to their API documentation
The list displays the following columns for each end point:
Methode: the HTTP method
Path: the URI path
Click this icon to see ReDoc API documentation of the end point
Service name: the service name
Action: the action name
Operation ID: the OAS operation ID
Authorized role(s): the list of roles allowed to invoke this end point
API Documentation
Access to API documentation (ReDoc)
Services
List of API end point accessible with a "user" authentication, with their rights and a direct access to their API documentation
The list displays the following columns for each end point:
Methode: the HTTP method
Path: the URI path
Click this icon to see ReDoc API documentation of the end point
Service name: the service name
Action: the action name
Operation ID: the OAS operation ID
The command ID for the command API
Type of rights: the name of the security rule of the domain ConfigResolver tested when this end point is invoked
Debug Tookit
Tools to support the development of the plugin and the testing of these developments