Bug 46908 - User import fails. schoolimport/schools: ServerError
User import fails. schoolimport/schools: ServerError
Status: RESOLVED DUPLICATE of bug 47236
Product: UCS@school
Classification: Unclassified
Component: Import scripts
UCS@school 4.4
Other Linux
: P5 normal (vote)
: UCS@school 4.4 v5-errata
Assigned To: Daniel Tröder
Sönke Schwardt-Krummrich
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-04-27 16:35 CEST by Johannes Keiser
Modified: 2021-11-19 17:09 CET (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.086
Enterprise Customer affected?: Yes
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2018041621000141, 2018041621000131, 2018041621000337, 2020072221000824, 2020012021000928, 2019072121000267
Bug group (optional): Error handling, External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Keiser univentionstaff 2018-04-27 16:35:15 CEST
Version: 4.2-3 errata246 (Lesum) - UCS@school 4.2 v6

Remark: Aufruf Benutzerimport

Die Ausführung des Kommandos schoolimport/schools ist fehlgeschlagen:


Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 250, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 636, in _decorated
    return function(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 318, in _response
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 192, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/schoolimport/__init__.py", line 75, in schools
    schools = [dict(id=school.name, label=school.displayName) for school in self.client.school.list()]
  File "%PY2.7%/ucsschool/http_api/client.py", line 464, in list
    return self._to_python(self._list_resource(**params))
  File "%PY2.7%/ucsschool/http_api/client.py", line 424, in _list_resource
    return self._resource_from_url(self.resource_url, **params)
  File "%PY2.7%/ucsschool/http_api/client.py", line 417, in _resource_from_url
    return self.client.call_api('get', url, params=params)
  File "%PY2.7%/ucsschool/http_api/client.py", line 398, in call_api
    raise exc(msg, status_code=response.status_code)
ServerError: Received status_code=500 with reason='INTERNAL SERVER ERROR' for requests.get(**files=None, url=u'https://***/api/v1/schools/', auth=('Administrator',
u'*******************'), headers={u'Accept': u'application/json'}, params={}, data=None).


Role: domaincontroller_master
Comment 1 Johannes Keiser univentionstaff 2018-05-03 14:44:40 CEST
Reported again: Version: 4.2-3 errata323 (Lesum) - UCS@school 4.2 v8
Comment 2 Daniel Tröder univentionstaff 2018-07-04 15:02:45 CEST

*** This bug has been marked as a duplicate of bug 47236 ***
Comment 3 Johannes Keiser univentionstaff 2018-08-01 16:54:39 CEST
External feedback: UCS Version: 4.2-3 errata323 (Lesum)
Traceback: same as Comment #0

Remark:
1) Schritte, um den Fehler zu reproduzieren
- Anmelden am Master
- öffenen des Moduls "Schul-Administration" - Benutzerimport

2) erwartetes Ergebnis
- Schulauswahl zum Benutzerimport

3) beobachtetes Ergebnis
- Fehlermeldung --> Ein Fehler ist aufgetreten: Die Anfrage konnte nicht ausgeführt werden. Fehlernachricht des Servers: Keine Berechtigung zum Starten eines Imports für eine Benutzerrolle.
- Bestätigung mit OK
- Tracebackmeldung (siehe unten)
Comment 4 Daniel Tröder univentionstaff 2018-08-02 08:29:41 CEST
(In reply to Johannes Keiser from comment #3)
> - Tracebackmeldung (siehe unten)
Fehlt.

> - Fehlermeldung --> Ein Fehler ist aufgetreten: Die Anfrage konnte nicht
> ausgeführt werden. Fehlernachricht des Servers: Keine Berechtigung zum
> Starten eines Imports für eine Benutzerrolle.
Dies ist ein anderer Fehler, als der im Bug #47236. Dies ist ein Anwenderfehler: der eingeloggt Benutzer ist in keiner Import-Berechtigungs-Gruppe.
Doku: https://billy.knut.univention.de/~dtroeder/http-api-doc/import-permissions.html
Comment 5 Christian Castens univentionstaff 2020-08-07 13:37:08 CEST
Version: 4.4-5 errata652 (Blumenthal) - UCS@school 4.4 v5

Remark: Ich Versuche derzeit Benutzer zu Importieren leider habe ich bisher immer den Fehler erhalten, dass ich keine Berechtigungen dafür habe.

Error:
Interner Server-Fehler in "schoolimport/schools".
Request: schoolimport/schools

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 359, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "%PY2.7%/univention/management/console/base.py", line 262, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 641, in _decorated
    return function(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 321, in _response
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 443, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 289, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/schoolimport/__init__.py", line 84, in schools
    schools = [dict(id=school.name, label=school.displayName) for school in self.client.school.list()]
  File "%PY2.7%/ucsschool/http_api/client.py", line 538, in list
    return self._to_python(self._list_resource(**params))
  File "%PY2.7%/ucsschool/http_api/client.py", line 493, in _list_resource
    return self._resource_from_url(resource_url, **params)
  File "%PY2.7%/ucsschool/http_api/client.py", line 485, in _resource_from_url
    return self.client.call_api('get', url, params=params)
  File "%PY2.7%/ucsschool/http_api/client.py", line 466, in call_api
    raise exc(msg, status_code=response.status_code)
ServerError: Received status_code=500 with reason='Internal Server Error' for requests.get(**files=None, url=u'***/api/v1/schools/',
auth=(u'Administrator', u'**********'), headers={u'Accept': u'application/json'}, params={}, data=None).

Role: domaincontroller_master

Errno: 533883f1f73b84494892123f46b8772a
Comment 6 Christian Castens univentionstaff 2020-08-07 13:38:00 CEST
Version: 4.4-3 errata423 (Blumenthal) - UCS@school 4.4 v4

Traceback(533883f1f73b84494892123f46b8772a):
Internal server error during "schoolimport/schools".
Request: schoolimport/schools


Role: domaincontroller_master
Comment 7 Christian Castens univentionstaff 2020-08-07 13:38:39 CEST
Version: 4.4-1 errata186 (Blumenthal) - UCS@school 4.4 v2

Traceback(533883f1f73b84494892123f46b8772a):
Internal server error during "schoolimport/schools".
Request: schoolimport/schools


Role: domaincontroller_master
Comment 8 Daniel Tröder univentionstaff 2020-08-10 08:51:30 CEST
Have you read https://billy.knut.univention.de/~dtroeder/http-api-doc/import-permissions.html ?