Closed (fixed)
Project:
URLs queuer
Version:
8.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 May 2016 at 13:46 UTC
Updated:
8 Aug 2016 at 15:24 UTC
Jump to comment: Most recent
When I create a new field on an entity (via the UI), I get this error:
The website encountered an unexpected error. Please try again later.
Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'url' at row 1: INSERT INTO {purge_queuer_url} (url, tag_ids) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1); Array ( [:db_insert_placeholder_0] => https://example.com/admin/structure/page/2_column/fields/page.2_column.field_description/storage?destinations%5B0%5D%5Broute_name%5D=entity.field_config.page_field_edit_form&destinations%5B0%5D%5Broute_parameters%5D%5Bfield_config%5D=page.2_column.field_description&destinations%5B0%5D%5Broute_parameters%5D%5Bpage_type%5D=2_column&destinations%5B1%5D%5Broute_name%5D=entity.page.field_ui_fields&destinations%5B1%5D%5Broute_parameters%5D%5Bfield_config%5D=page.2_column.field_description&destinations%5B1%5D%5Broute_parameters%5D%5Bpage_type%5D=2_column&destinations%5B2%5D=%2Fadmin%2Fstructure%2Fpage%2F2_column%2Ffields%2Fadd-field [:db_insert_placeholder_1] => ;529325;529326;529327;529328;529329;529330;529331;529332;529333;529334;529339;529340;529341;529400;529402;529492 ) in Drupal\purge_queuer_url\StackMiddleware\TrafficRegistry->add() (line 57 of modules/contrib/purge_queuer_url/src/StackMiddleware/TrafficRegistry.php).
Drupal\purge_queuer_url\StackMiddleware\TrafficRegistry->add('https://example.com/admin/structure/page/2_column/fields/page.2_column.field_description/storage?destinations%5B0%5D%5Broute_name%5D=entity.field_config.page_field_edit_form&destinations%5B0%5D%5Broute_parameters%5D%5Bfield_config%5D=page.2_column.field_description&destinations%5B0%5D%5Broute_parameters%5D%5Bpage_type%5D=2_column&destinations%5B1%5D%5Broute_name%5D=entity.page.field_ui_fields&destinations%5B1%5D%5Broute_parameters%5D%5Bfield_config%5D=page.2_column.field_description&destinations%5B1%5D%5Broute_parameters%5D%5Bpage_type%5D=2_column&destinations%5B2%5D=%2Fadmin%2Fstructure%2Fpage%2F2_column%2Ffields%2Fadd-field', Array) (Line: 147)
Drupal\purge_queuer_url\StackMiddleware\UrlRegistration->set(Object, Object) (Line: 95)
Drupal\purge_queuer_url\StackMiddleware\UrlRegistration->handle(Object, 1, 1) (Line: 62)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 53)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 55)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 31)
Drupal\gc_api\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 637)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Either
None.
None.
None.
Comments
Comment #3
nielsvm commentedI've written and tested this:
So that means that these horribly URLs will be dropped instead of stored, I think this should be considered a tiny inconvenience in practice. Given that this module is a "fall back" solution for providers that don't (yet) have tag-based invalidation, the fact that some URLs with long redirection or queries/hex data embedded in them won't get cleared... might even be a not-so-bad thing.
Will release this shortly so it can be tested.
Comment #4
nielsvm commentedNot perfectly following process but highly sure that its fixed, feel free to put back when the next release might not yet catch everything.