Bug #71559
inspect formdata, itemfield avec source de données inconnue (AttributeError: 'StubNamedDataSource' object has no attribute 'id')
Start date:
22 November 2022
Due date:
% Done:
0%
Estimated time:
Patch proposed:
Yes
Planning:
No
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/97428/
AttributeError: 'StubNamedDataSource' object has no attribute 'id' (27 additional frame(s) were not displayed) ... File "django/template/base.py", line 858, in _resolve_lookup current = current() File "wcs/fields.py", line 736, in get_parameters_view parameter_view_value = self.get_parameter_view_value(widget, parameter) File "wcs/fields.py", line 752, in get_parameter_view_value return getattr(self, 'get_%s_parameter_view_value' % parameter)(widget) File "wcs/fields.py", line 843, in get_data_source_parameter_view_value 'url': data_source.get_admin_url(), File "wcs/data_sources.py", line 716, in get_admin_url return '%s/%s/data-sources/%s/' % (base_url, section, self.id)
Files
Associated revisions
History
Updated by Lauréline Guérin 2 months ago
- Project changed from Suivi des traces to w.c.s.
- Subject changed from AttributeError: 'StubNamedDataSource' object has no attribute 'id' to inspect formdata, itemfield avec source de données inconnue (AttributeError: 'StubNamedDataSource' object has no attribute 'id')
Updated by Frédéric Péters 2 months ago
- File 0001-misc-do-not-crash-form-inspect-on-invalid-data-sourc.patch 0001-misc-do-not-crash-form-inspect-on-invalid-data-sourc.patch added
- Status changed from Nouveau to Solution proposée
- Patch proposed changed from No to Yes
Updated by Lauréline Guérin 2 months ago
- Status changed from Solution proposée to Solution validée
Updated by Frédéric Péters 2 months ago
- Status changed from Solution validée to Résolu (à déployer)
commit 3432c4d74e0b453d95d3b21c73e9692fab6057a1 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Tue Nov 22 10:26:14 2022 +0100 misc: do not crash form inspect on invalid data source (#71559)
Updated by Transition automatique 2 months ago
- Status changed from Résolu (à déployer) to Solution déployée
misc: do not crash form inspect on invalid data source (#71559)