Closed korydraughn closed 3 years ago
When configuring the plugin, it will throw an exception when the user attempts to set the missing JSON config on the zone collection. This happens when the plugin is installed before setting the JSON config on the zone collection. The following line is the reason for the exception. https://github.com/irods/irods_rule_engine_plugin_metadata_guard/blob/cef1f69436070834f319cf40a7e9c687610f7ced/src/main.cpp#L86
The plugin should return RULE_ENGINE_CONTINUE if the JSON config is not set and allow the next REP to handle the PEP. The plugin should not throw an exception in this case.
[x] 4-2-stable
Bug Report
When configuring the plugin, it will throw an exception when the user attempts to set the missing JSON config on the zone collection. This happens when the plugin is installed before setting the JSON config on the zone collection. The following line is the reason for the exception. https://github.com/irods/irods_rule_engine_plugin_metadata_guard/blob/cef1f69436070834f319cf40a7e9c687610f7ced/src/main.cpp#L86
Solution
The plugin should return RULE_ENGINE_CONTINUE if the JSON config is not set and allow the next REP to handle the PEP. The plugin should not throw an exception in this case.