Marton Szasz created MINIFICPP-1116:
---------------------------------------
Summary: Segfault when trying to use non-existent C2 protocol class
Key: MINIFICPP-1116
URL: https://issues.apache.org/jira/browse/MINIFICPP-1116
Project: Apache NiFi MiNiFi C++
Issue Type: Bug
Affects Versions: master
Environment: Ubuntu 18.04.3 LTS
Reporter: Marton Szasz
Steps to reproduce:
# Compile minifi-cpp with no CoAP support
# Configure C2 with {{nifi.c2.agent.protocol.class=CoapProtocol}}
# Start MiNiFi C++
Expected behavior:
Print an error message to stderr, produce a log message with log level of at
least error and exit. Alternatively, produce a log message with log level of at
least warning and continue execution without C2.
Actual behavior:
No output on stderr.
Error message logged with log level info.
Segmentation fault in {{C2Agent.cpp:329}}, trying to dereference
{{C2Agent::protocol_}}, but it's null.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)