Also, Bugzilla::Token::_create_token() should probably automatically shift to dbh_main before generating the token.
Created attachment 8561219 [details] [diff] [review] 1128853_1.patch - automatically switch to the shadow db when creating a token - adds "generate_api_token" param to global/header - sets generate_api_token to 1 where required - most of these are due to user auto-completion - no longer generating a token on search results
Assignee: webservice → glob
Status: NEW → ASSIGNED
Attachment #8561219 - Flags: review?(dkl)
Summary: Searching when using a shadow_db results in "The MySQL server is running with the --read-only option" error → Bugzilla shouldn't try to write API tokens into the shadow DB
Comment on attachment 8561219 [details] [diff] [review] 1128853_1.patch Review of attachment 8561219 [details] [diff] [review]: ----------------------------------------------------------------- r=dkl
Attachment #8561219 - Flags: review?(dkl) → review+
To ssh://email@example.com/bugzilla/bugzilla.git f6686ca..b7147b7 master -> master To ssh://firstname.lastname@example.org/bugzilla/bugzilla.git dbc7a21..c1fa559 5.0 -> 5.0
Status: ASSIGNED → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
Do not forget to a+ your patch too. ;)
You need to log in before you can comment on or make changes to this bug.