Bad hotspot username?

A username was recently added to my hotspot (setup where the users and passes are stored on the Mikrotik itself) that had some funnny characters and now any print or export command in the /ip hotspot user conext locks up the console session and pegs the CPU to 100%. Tried rebooting, no change. Everything else in all of the other configuration contexts works fine. When I do a /export for the whole config, it locks right after the last known good user that was added. I think the “bad” username that was added is “\0//”.

Any ideas on how to get rid of this username and solve the problem?

Is ‘ip hotspot user remove’ working ?

Yes, but only for usernames added prior to the bad one. I can add remove old users but not newly added ones (nor the bad one itself). Running /ip hotspot user print locks up at the last good username and doesn’t show any new users that are added but the new users do appear in winbox. The “bad” user doesn’t appear in winbox or the print/export. What happened is that someone was testing a web interface I made to adding new users and they wanted to see what the longest username was that they could produce. So I just found out that the problem username is very likely a long stream of h’s.

I do have a backup of the users, is there something I can do that will remove all the hotspot users at once?
/ip hotspot user remove [find] locks up as well and as I mentioned the bad user doesn’t show in winbox so I can’t delete it through there.
Will disabling the hotspot package remove all the users? Will they still be gone when I re-enable it?
I’m trying to avoid doing a full config reset.

I was able to repeat the condition on another test hotspot. Disabled and re-enabling the hostpot package and also uninstall/reinstalling it does not remove the user list.

I believe you have upgraded from 2.9 to 3.0, isn’t it ?

No, this is 2.9.46.

Tests on another device show that a /sytem reset will fix the problem but I’m looking for a way to avoid that.

So what I’m looking for is something that (like system reset) will erase that portion of the configuration without reading/processing it. Anything that reads/processes the bad user portion of the config (like print or export or remove) causes it to freeze.

Currently I see only one way, it is configuration export of most important parts (that will be hard to reconfigure).
for example ‘ip firewall filter export file=filter’.
Configuration will be saved to the file, that is available on FTP for download.
Then you may import this file for new router.

How do you managed to configure this user ?

if you can somehow add this username again, please tell us how to do it.
also a supout.rif file with this user could be helpful

The username that messed it up was just very long. Like several pages of the letter “h” if I remember correctly.