mhttpd expand_env() is broken
Issue #183
resolved
mhttpd expand_env() is broken and leaves garbage text appended it’s output. i.e. in the case “$MIDAS_DIR” env.vairable is not defined, expand_env(“$MIDAS_DIR”) returns “$MIDAS_DIR/garbage test”. This garbage text is written to midas.log, then is returned by cm_msg_retrieve2() where it breaks web page processing because web browser requires json strings to be valid UTF8. This bug showed up in the EMMA DAQ station. Both midas-2019-03 release and head of develop have this bug. I have a fix that needs to be retested and commited to both branches. K.O.
Comments (2)
-
reporter -
reporter - changed status to resolved
Fixed in bc89b06. K.O.
- Log in to comment
Fixed on latest release branch midas-2019-03. K.O.