Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERL-1196: Invalid character 'i' added through snmp_conf:register_usm_user/2 in usm.config #3950

Closed
OTP-Maintainer opened this issue Mar 17, 2020 · 3 comments
Labels
bug Issue is reported as a bug priority:medium
Milestone

Comments

@OTP-Maintainer
Copy link

Original reporter: JIRAUSER14201
Affected version: OTP-23.0
Fixed in version: OTP-23.0-rc2
Component: snmp
Migrated from: https://bugs.erlang.org/browse/ERL-1196


In the snmpm_conf module a typo (line 340) causes snmpm_conf:write_usm_user/2 to add a extra character ("í") to be added to be included in the newly added usm_entry() which makes the usm_entry() invalid. 
@OTP-Maintainer
Copy link
Author

bmk said:

{color:#000000}Hi,
{color}
 
You mean, after the third ~s: ~s\", X
Where the X is an A with a ~ ontop?
At least, that's what it looks like in my editor. Wrong anyway.
 
---
 
{code:java}
io:format(       Fd, "{\"~s\", \"~s\", \"~s\", í~w, ~w, ~w, ~w}.~n",       [EngineID, UserName, SecName, AuthP, AuthKey, PrivP, PrivKey]);{code}
 
 
/BMK

@OTP-Maintainer
Copy link
Author

JIRAUSER14201 said:

Hi, 

Yeah that's the spot
 This is what it looks like for me




{{ io:format( Fd, "\{\"~s\", \"~s\", \"~s\", í~w, ~w, ~w, ~w}.~n",}}

 

@OTP-Maintainer
Copy link
Author

bmk said:

Hi,

I have merged a fix for this into master, so I am closing this case.

Regards.,

   /BMK

 

@OTP-Maintainer OTP-Maintainer added bug Issue is reported as a bug priority:medium labels Feb 10, 2021
@OTP-Maintainer OTP-Maintainer added this to the OTP-23.0-rc2 milestone Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is reported as a bug priority:medium
Projects
None yet
Development

No branches or pull requests

1 participant