Project

General

Profile

Bug #71559

inspect formdata, itemfield avec source de données inconnue (AttributeError: 'StubNamedDataSource' object has no attribute 'id')

Added by Sentry Io 2 months ago. Updated 2 months ago.

Status:
Fermé
Priority:
Normal
Target version:
-
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

Revision 3432c4d7 (diff)
Added by Frédéric Péters 2 months ago

misc: do not crash form inspect on invalid data source (#71559)

History

#1

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')
#2

Updated by Frédéric Péters 2 months ago

  • Assignee set to Frédéric Péters
#3

Updated by Frédéric Péters 2 months ago

#4

Updated by Lauréline Guérin 2 months ago

  • Status changed from Solution proposée to Solution validée
#5

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)
#6

Updated by Transition automatique 2 months ago

  • Status changed from Résolu (à déployer) to Solution déployée
#7

Updated by Transition automatique 10 days ago

Automatic expiration

Also available in: Atom PDF