Path alias export fails if bundle is chosen

Created on 23 February 2022, over 3 years ago
Updated 26 September 2024, 8 months ago

Problem/Motivation

Export of path alias entites fails if bundle is chosen.
However, they can be exported if the bundle is left "-None-".

Steps to reproduce

  1. Install Drupal 9
  2. Install Path module
  3. Create a node with a path alias
  4. Go to /admin/config/development/dcd/export
  5. Leave default mode "Content of the entity type"
  6. Chose URL alias as entity type
  7. Chose URL alias as a bundle
  8. Click "Export content"
  9. Observe an error

Error:
Drupal\Core\Entity\Query\QueryException: '' not found in Drupal\Core\Entity\Query\Sql\Tables->ensureEntityTable() (line 369 of core/lib/Drupal/Core/Entity/Query/Sql/Tables.php).

Trace:
Drupal\Core\Entity\Query\Sql\Tables->addField('', 'INNER', NULL) (Line: 51)
Drupal\Core\Entity\Query\Sql\Condition->compile(Object) (Line: 176)
Drupal\Core\Entity\Query\Sql\Query->compile() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 468)
Drupal\default_content_deploy\Exporter->getEntityIdsForExport() (Line: 369)
Drupal\default_content_deploy\Exporter->prepareToExport() (Line: 342)
Drupal\default_content_deploy\Exporter->export() (Line: 288)
Drupal\default_content_deploy\Form\ExportForm->submitForm(Array, Object)

🐛 Bug report
Status

Needs review

Version

2.1

Component

Code

Created by

🇹🇷Turkey linichalexey

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024