[ 
https://issues.apache.org/jira/browse/CAMEL-27923?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-27923:
--------------------------------
    Description: 
Found while improving the option descriptions of camel-snmp for CAMEL-23832 
(commit 
https://github.com/apache/camel/commit/5f542b6878233d6013e30e1f58158711a5c8e283,
 pull request https://github.com/apache/camel/pull/31180).
These are separate problems of the component; the descriptions change only 
documents the current behavior.

h4. 1. treeList walk without the SNMPv3 context
{{SnmpOIDPoller.poll}} with treeList=true walks with new DefaultPDUFactory(), 
so the walk requests do not carry snmpContextName and snmpContextEngineId; only 
the GET that follows has them.
Proposed change: use a PDU factory with the context.

h4. 2. Smaller issues
privacyProtocol is marked secret but is not a secret, and has no enums (DES, 
TRIDES, AES128, AES192, AES256); authenticationProtocol and privacyProtocol are 
String fields although SnmpAuthProtocolType and SnmpPrivacyProtocolType exist. 
securityName is marked secret. host and port are required, but doInit falls 
back to 127.0.0.1 and 162/161. The trap headers securityName and peerAddress 
are not declared, so the catalog lists no headers. snmpContextEngineId cannot 
be given in hex. SnmpOIDPoller never closes snmp on stop.


_Claude Code on behalf of davsclaus_

  was:
Found while improving the option descriptions of camel-snmp for CAMEL-23832 
(pull request https://github.com/apache/camel/pull/31180).
These are separate problems of the component; the descriptions change only 
documents the current behavior.

h4. 1. treeList walk without the SNMPv3 context
{{SnmpOIDPoller.poll}} with treeList=true walks with new DefaultPDUFactory(), 
so the walk requests do not carry snmpContextName and snmpContextEngineId; only 
the GET that follows has them.
Proposed change: use a PDU factory with the context.

h4. 2. Smaller issues
privacyProtocol is marked secret but is not a secret, and has no enums (DES, 
TRIDES, AES128, AES192, AES256); authenticationProtocol and privacyProtocol are 
String fields although SnmpAuthProtocolType and SnmpPrivacyProtocolType exist. 
securityName is marked secret. host and port are required, but doInit falls 
back to 127.0.0.1 and 162/161. The trap headers securityName and peerAddress 
are not declared, so the catalog lists no headers. snmpContextEngineId cannot 
be given in hex. SnmpOIDPoller never closes snmp on stop.


_Claude Code on behalf of davsclaus_


> camel-snmp: the treeList walk sends no SNMPv3 context, and the protocol 
> options are not typed
> ---------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-27923
>                 URL: https://issues.apache.org/jira/browse/CAMEL-27923
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-snmp
>            Reporter: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.25.0
>
>
> Found while improving the option descriptions of camel-snmp for CAMEL-23832 
> (commit 
> https://github.com/apache/camel/commit/5f542b6878233d6013e30e1f58158711a5c8e283,
>  pull request https://github.com/apache/camel/pull/31180).
> These are separate problems of the component; the descriptions change only 
> documents the current behavior.
> h4. 1. treeList walk without the SNMPv3 context
> {{SnmpOIDPoller.poll}} with treeList=true walks with new DefaultPDUFactory(), 
> so the walk requests do not carry snmpContextName and snmpContextEngineId; 
> only the GET that follows has them.
> Proposed change: use a PDU factory with the context.
> h4. 2. Smaller issues
> privacyProtocol is marked secret but is not a secret, and has no enums (DES, 
> TRIDES, AES128, AES192, AES256); authenticationProtocol and privacyProtocol 
> are String fields although SnmpAuthProtocolType and SnmpPrivacyProtocolType 
> exist. securityName is marked secret. host and port are required, but doInit 
> falls back to 127.0.0.1 and 162/161. The trap headers securityName and 
> peerAddress are not declared, so the catalog lists no headers. 
> snmpContextEngineId cannot be given in hex. SnmpOIDPoller never closes snmp 
> on stop.
> _Claude Code on behalf of davsclaus_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to