microlith57 / boop

A library scanner for computers
ISC License
2 stars 0 forks source link

Barcode Edit Error #48

Open kahn-spotswoodcollege opened 2 years ago

kahn-spotswoodcollege commented 2 years ago

Hello, I am a new technician part of Spotswood college.

There is an error in the boop program when creating a new device. When inputting a barcode in the "Creating Device" menu, every now and again after selecting "Create Device" the barcode will disappear and upon editing the device to add in the barcode again and error message pops up "We're Sorry, but something went wrong."

I can recreate this error by inputting a barcode and clicking "Create Device" very fast.

Just thought I'd submit this issue and bring it to your attention.

microlith57 commented 2 years ago

I will try to reproduce this; in the meantime, would it be possible for you to send the relevant log file & some screenshots?

Thanks!

microlith57 commented 2 years ago

@kahn-spotswoodcollege I'm confused as to what could produce the behaviour you describe, as it shouldn't be possible for a device to be with a blank/absent barcode. The "We're sorry, but something went wrong." text is only displayed in a 500 error, so there must have been some error in the application code. I haven't been able to reproduce this behaviour, so logs would be very helpful.

kahn-spotswoodcollege commented 2 years ago

Hello,

Could you tell me how I can provide you a log.

On a site note, the device search feature does not work when it contains capital letters.

As well as I've also mass imported a bunch of devices through a CSV that seem to exist but don't function almost like a ghost. They exist in the Device page, but cannot be searched for.

microlith57 commented 2 years ago

Logs are stored in the boop/log folder; there should be a production.log file. The ghost devices are interesting; I'd appreciate if you could provide me with a database dump (https://www.postgresql.org/docs/9.1/backup-dump.html) to help with debugging.

Thanks!

microlith57 commented 2 years ago

With regard to the device search not working, do you mean capital letters in the device's name, its code, or its barcode? The code field shouldn't have capital letters in it, and the validation should catch this.

Screenshot 2022-01-21 at 10-45-06 Boop