Setting database password fails if MySQL and PostgreSQL database with same name exist #2

Open
opened 2018-12-26 15:01:37 +01:00 by jan · 0 comments
Owner

An internal server error is returned if a customer has both a MySQL and a PostgreSQL database assigned and tries to set the password for one of the databases.

Internal Server Error: /database/1/usr01db01/setpassword
Traceback (most recent call last):
  File "/home/gva/.virtualenvs/gnuviechadmin/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/gva/.virtualenvs/gnuviechadmin/local/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
    return self.dispatch(request, *args, **kwargs)
  File "./gvacommon/viewmixins.py", line 26, in dispatch
    request, *args, **kwargs
  File "/home/gva/.virtualenvs/gnuviechadmin/local/lib/python2.7/site-packages/braces/views/_access.py", line 64, in dispatch
    request, *args, **kwargs)
  File "/home/gva/.virtualenvs/gnuviechadmin/local/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
    return handler(request, *args, **kwargs)
  File "/home/gva/.virtualenvs/gnuviechadmin/local/lib/python2.7/site-packages/django/views/generic/edit.py", line 225, in get
    self.object = self.get_object()
  File "/home/gva/.virtualenvs/gnuviechadmin/local/lib/python2.7/site-packages/django/views/generic/detail.py", line 52, in get_object
    obj = queryset.get()
  File "/home/gva/.virtualenvs/gnuviechadmin/local/lib/python2.7/site-packages/django/db/models/query.py", line 361, in get
    num if num <= MAX_GET_RESULTS else 'more than %s' % MAX_GET_RESULTS
MultipleObjectsReturned: get() returned more than one DatabaseUser -- it returned 2!

An internal server error is returned if a customer has both a MySQL and a PostgreSQL database assigned and tries to set the password for one of the databases. ``` Internal Server Error: /database/1/usr01db01/setpassword Traceback (most recent call last): File "/home/gva/.virtualenvs/gnuviechadmin/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/home/gva/.virtualenvs/gnuviechadmin/local/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "./gvacommon/viewmixins.py", line 26, in dispatch request, *args, **kwargs File "/home/gva/.virtualenvs/gnuviechadmin/local/lib/python2.7/site-packages/braces/views/_access.py", line 64, in dispatch request, *args, **kwargs) File "/home/gva/.virtualenvs/gnuviechadmin/local/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/home/gva/.virtualenvs/gnuviechadmin/local/lib/python2.7/site-packages/django/views/generic/edit.py", line 225, in get self.object = self.get_object() File "/home/gva/.virtualenvs/gnuviechadmin/local/lib/python2.7/site-packages/django/views/generic/detail.py", line 52, in get_object obj = queryset.get() File "/home/gva/.virtualenvs/gnuviechadmin/local/lib/python2.7/site-packages/django/db/models/query.py", line 361, in get num if num <= MAX_GET_RESULTS else 'more than %s' % MAX_GET_RESULTS MultipleObjectsReturned: get() returned more than one DatabaseUser -- it returned 2! ```
jan self-assigned this 2018-12-26 15:01:47 +01:00
jan added the
bug
label 2019-07-05 08:58:22 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: gnuviech/gva#2
No description provided.