Title: [Bug Report]: User creation done but reported as failed to the user · Issue #3174 · BookStackApp/BookStack · GitHub
Open Graph Title: [Bug Report]: User creation done but reported as failed to the user · Issue #3174 · BookStackApp/BookStack
X Title: [Bug Report]: User creation done but reported as failed to the user · Issue #3174 · BookStackApp/BookStack
Description: Describe the Bug When creating a user and selecting the option to send an invitation by email, I got an error like 'An unknown error occured'. Checking the logs, I have this : [2022-01-17 16:54:45] production.ERROR: Expected response cod...
Open Graph Description: Describe the Bug When creating a user and selecting the option to send an invitation by email, I got an error like 'An unknown error occured'. Checking the logs, I have this : [2022-01-17 16:54:45]...
X Description: Describe the Bug When creating a user and selecting the option to send an invitation by email, I got an error like 'An unknown error occured'. Checking the logs, I have this : [2022-01-17 1...
Opengraph URL: https://github.com/BookStackApp/BookStack/issues/3174
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug Report]: User creation done but reported as failed to the user","articleBody":"### Describe the Bug\n\nWhen creating a user and selecting the option to send an invitation by email, I got an error like 'An unknown error occured'.\r\nChecking the logs, I have this : \r\n```\r\n[2022-01-17 16:54:45] production.ERROR: Expected response code 220 but got an empty response {\"userId\":5,\"exception\":\"[object] (Swift_TransportException(code: 0): Expected response code 220 but got an empty response at /srv/bookstack.santepros.com/BookStack/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php:447)\r\n[stacktrace]\r\n#0 .........\r\n```\r\n\r\nSo I think my email configuration is broken right ?\r\nBut the problem is that the user was created anyway, without the assigned role/roles and without the 'user_create' log.\r\nMaybe we could wrap this in a transaction, wdyt ?\n\n### Steps to Reproduce\n\n- Break your bookstack email sending config\r\n- Create a user with email invitation\r\n- Normally you will get an error but the user is created if you look at the user list\n\n### Expected Behaviour\n\nI think the user creation should fail entirely and maybe report a log entry with a high severity like : 'email sending failed' ?\n\n### Screenshots or Additional Context\n\n_No response_\n\n### Exact BookStack Version\n\n21.12\n\n### PHP Version\n\n7.4\n\n### Hosting Environment\n\nUbuntu 20.04","author":{"url":"https://github.com/bourdaisj","@type":"Person","name":"bourdaisj"},"datePublished":"2022-01-17T17:18:41Z","url":"https://github.com/BookStackApp/BookStack/issues/3174"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d4d78895-f0c8-0eb4-3385-b88cab24d72c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ABA8:1DAE0F:2E41B:404E4:6AFD7957 |
| html-safe-nonce | 26d0c7a4f30073c3cd796539adc0d1c729e08dcd6c05e7b4de594cf2119f145e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkE4OjFEQUUwRjoyRTQxQjo0MDRFNDo2QUZENzk1NyIsInZpc2l0b3JfaWQiOiI4Njk4MjY3MzE4NDA2MTgzMjU1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fba94d0e5b3bd660a5e542579a1daa4e8d472e8a7a2de25b26e55934fd5be9f6 |
| hovercard-subject-tag | issue:1106101777 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/BookStackApp/BookStack/3174/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8e6e96ea6d54d5d890f27f75ca9d49930b16d98b70945befda016c59c6585dd3/BookStackApp/BookStack/issues/3174 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8e6e96ea6d54d5d890f27f75ca9d49930b16d98b70945befda016c59c6585dd3/BookStackApp/BookStack/issues/3174 |
| og:image:alt | Describe the Bug When creating a user and selecting the option to send an invitation by email, I got an error like 'An unknown error occured'. Checking the logs, I have this : [2022-01-17 16:54:45]... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bourdaisj |
| hostname | github.com |
| expected-hostname | github.com |
| None | 544ff6b59bd215c4609120f6e334dbd0b00d34fb6f8bc03a476f72256998887e |
| turbo-cache-control | no-preview |
| go-import | github.com/BookStackApp/BookStack git https://github.com/BookStackApp/BookStack.git |
| octolytics-dimension-user_id | 20912696 |
| octolytics-dimension-user_login | BookStackApp |
| octolytics-dimension-repository_id | 41589337 |
| octolytics-dimension-repository_nwo | BookStackApp/BookStack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 41589337 |
| octolytics-dimension-repository_network_root_nwo | BookStackApp/BookStack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 71c92f8b27ec5e9aa6f6477b4e067a4727fc9edb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width