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

Cannot upload books with punctuation in unique attributes #3170

Open
aserrallerios opened this issue Oct 1, 2024 · 2 comments
Open

Cannot upload books with punctuation in unique attributes #3170

aserrallerios opened this issue Oct 1, 2024 · 2 comments
Labels

Comments

@aserrallerios
Copy link

If any of the unique DB attributes has a punctuation symbol AND there's another book in the DB with the same attribute WITHOUT punctuation symbol, you get the error:

Oops! Database Error: UNIQUE constraint failed: authors.name.

To reproduce:

  1. upload a book with author name José Luis Corral (it works)
  2. upload a book with author name Jose Luis Corral (it works)
  3. upload a book with author name José Luis Corral (it fails)

Internal error is:

[2024-09-04 17:28:27,960] ERROR {cps.editbooks:304} Database error: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely)
(sqlite3.IntegrityError) UNIQUE constraint failed: authors.name
[SQL: UPDATE authors SET name=?, sort=? WHERE authors.id = ?]
[parameters: ('José Luis Corral', 'Corral, José Luis', 3373)]
(Background on this error at: https://sqlalche.me/e/20/gkpj)

Tested in commit from: 9/26/24, 7:46 PM

@aserrallerios
Copy link
Author

It's a regression/case (probably) of bug fixed in #3058

@aserrallerios aserrallerios changed the title Cannot upload a book with punctuations symbols in unique attribute Cannot upload books with punctuation in unique attributes Oct 2, 2024
@aserrallerios
Copy link
Author

@OzzieIsaacs cannot reproduce?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants