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

Vendor name containing a special char #805

Closed
2 tasks done
vemore opened this issue Sep 25, 2024 · 1 comment
Closed
2 tasks done

Vendor name containing a special char #805

vemore opened this issue Sep 25, 2024 · 1 comment
Labels
bug 🐛 Something isn't working next release/in dev image🚀 This is coming in the next release or was already released if the issue is Closed.

Comments

@vemore
Copy link

vemore commented Sep 25, 2024

Is there an existing issue for this?

Current Behavior

I have a device which Vendor name is "Micro-Star INT'L CO., LTD".

The char "'" cause an error when the device is newly detected.

netalertx | Traceback (most recent call last):
netalertx | File "", line 198, in _run_module_as_main
netalertx | File "", line 88, in _run_code
netalertx | File "/app/server/main.py", line 209, in
netalertx | sys.exit(main())
netalertx | ^^^^^^
netalertx | File "/app/server/main.py", line 139, in main
netalertx | process_scan(db)
netalertx | File "/app/server/networkscan.py", line 37, in process_scan
netalertx | create_new_devices (db)
netalertx | File "/app/server/device.py", line 252, in create_new_devices
netalertx | sql.execute(sqlQuery, (startTime, startTime))

An error occurred: near "L": syntax error

Expected Behavior

The device Vendor Name does not cause any error

Steps To Reproduce

No response

app.conf

No response

docker-compose.yml

No response

What branch are you running?

Production

app.log

No response

Debug enabled

  • I have read and followed the steps in the wiki link above and provided the required debug logs and the log section covers the time when the issue occurs.
@vemore vemore added the bug 🐛 Something isn't working label Sep 25, 2024
jokob-sk pushed a commit that referenced this issue Sep 25, 2024
@jokob-sk jokob-sk added the next release/in dev image🚀 This is coming in the next release or was already released if the issue is Closed. label Sep 25, 2024
jokob-sk pushed a commit that referenced this issue Sep 25, 2024
@jokob-sk
Copy link
Owner

Thanks for the report @vemore - this should be fixed in the latest release in ~15 min from now -> Closing

@stanelie stanelie mentioned this issue Oct 15, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working next release/in dev image🚀 This is coming in the next release or was already released if the issue is Closed.
Projects
None yet
Development

No branches or pull requests

2 participants