You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hop.apache.org by "gmitter-ef (via GitHub)" <gi...@apache.org> on 2025/04/15 13:47:19 UTC

[I] [Feature Request]: Check syntax of Environment configuration files (hop)

gmitter-ef opened a new issue, #5183:
URL: https://github.com/apache/hop/issues/5183

   ### What would you like to happen?
   
   In the Hop GUI, when choosing "Select" in an Environment to add a JSON environment config file, you get no indication if the content is syntactically correct. Only after "Edit" you see if the JSON was correctly loaded.
   
   I think in case of JSON configuration files that are added via "Select", they should NOT be loaded to the environment at all when the syntax is _wrong_, and should not be kept in the list of "Configuration files" secion in the "Environment Properties" dialog.
   
   Even worse, in case it's a _valid_ JSON syntax, but the key names are wrong (e.g "valuee" instead of "value", see below), no error or warning is displayed at all, the value remains simply null / empty.
   
   E.g.:
   {
       "variables": [{
               "name": "MY_VAR",
               "valuee": "my_value",
               "description": ""
           }
       ]
   }
   
   Also the reload of the project works without error/warning.
   
   Similarly, when adding a JSON file to an environment via "--environment-config-files" of "hop-conf.sh" you see an error in the log output (in case of wrong JSON syntax), but still the JSON will be added to the environment.
   
   ![Image](https://github.com/user-attachments/assets/93abe321-4c3c-4ade-8862-89b61d8f4e58)
   
   ### Issue Priority
   
   Priority: 3
   
   ### Issue Component
   
   Component: Hop Gui, Component: Hop Config


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org