Check if node is valid

Created on 17 March 2022, almost 3 years ago
Updated 29 November 2024, 3 months ago

Problem/Motivation

There should be a check if the $node is an instance of Node on the downloadAllFiles().

Steps to reproduce

Create a Url::fromRoute('download_all_files.download_path', ['nid' => NODE_ID, 'field_name' => FIELD_NAME]) where NODE_ID is not valid node id.

I’ve created a patch that solves the problem by checking the node’s validity.

πŸ› Bug report
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡·Greece karma86

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