- πΊπ¦Ukraine ollie-db
Is this the reason why I can not download the archive? I get 404 Not Found error in Docker container
Let's assume we have the following routing definition:
features.export_download:
path: '/admin/config/development/configuration/features/download/{uri}'
defaults:
_controller: 'Drupal\features\Controller\FeaturesController::downloadExport'
requirements:
_permission: 'export configuration'
_csrf_token: 'TRUE'
And the following code in a form submit function:
public function exportFormSubmit(array &$form, FormStateInterface $form_state) {
// Redirect to the archive file download.
$form_state->setRedirect('features.export_download', ['uri' => $this->archiveName]);
}
Result: The token has the sha1 hash, not the actual CSRF token
\Drupal\Core\Form\FormSubmitter::redirectForm
(sounds wrong)GeneratedUrl
)Needs work
9.5
Last updated
The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.
There is consensus among core maintainers that this is a major issue. Only core committers should add this tag.
It denotes an issue that prevents porting of a contributed project to the stable version of Drupal due to missing APIs, regressions, and so on.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Is this the reason why I can not download the archive? I get 404 Not Found error in Docker container