https://bugs.gpodder.org/show_bug.cgi?id=804
Summary: Device Edit must not allow "UID" to be duplicated
Product: my.gPodder.org
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: major
Priority: low
Component: Website
AssignedTo: [email protected]
ReportedBy: [email protected]
Steps to reproduce:
1. Create two different devices (e.g. by uploading using the simple API)
2. Edit the first device and set its UID to "legacy"
3. Edit the second device and set its UID to "legacy"
4. Do a upload using the legacy API
Problem:
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.5/django/core/handlers/base.py", line 92, in
get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/srv/mygpo/mygpo/api/legacy.py", line 45, in upload
defaults = {'type': 'unknown', 'name': LEGACY_DEVICE_NAME})
File "/usr/lib/pymodules/python2.5/django/db/models/manager.py", line 123, in
get_or_create
return self.get_query_set().get_or_create(**kwargs)
File "/usr/lib/pymodules/python2.5/django/db/models/query.py", line 328, in
get_or_create
return self.get(**kwargs), False
File "/usr/lib/pymodules/python2.5/django/db/models/query.py", line 307, in
get
% (self.model._meta.object_name, num, kwargs))
MultipleObjectsReturned: get() returned more than one Device -- it returned 4!
Lookup parameters were {'user': <User: someuser>, 'uid': 'legacy'}
--
Configure bugmail: https://bugs.gpodder.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
_______________________________________________
gPodder-Bugs mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/gpodder-bugs