Internal Server Error upon Edit of Intel Req
After pressing "Submit" button on the intel req editing module, I am redirected to Internal Server Error code 500.
I'll check this out on my end and see if I can replicate. If not, may need to check your logs.
Also getting the same issue when posting to the database on form submission from the requirements page:
threatnote_1 | sqlalchemy.exc.InvalidRequestError: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (sqlite3.IntegrityError) UNIQUE constraint failed: requirements.friendly_id
EDIT:
Reloading the Docker container seemed to fix things. The newly added requirement appears, but not sure why it had the error in the first place. Perhaps this has an answer: https://stackoverflow.com/questions/8870217/why-do-i-get-sqlalchemy-nested-rollback-error
The reason I think is because you tried to create a report with the same friendly ID UNIQUE constraint failed: requirements.friendly_id, and it didn't like that, I'll need to add some logic in there to popup something saying you can't have the same ID. Thanks for reporting this, glad it worked though!