Skip to content

BUG: Hidden nodes become visible after copying a node from dimension A to B #5595

@crydotsnake

Description

@crydotsnake

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Problem one

When I copy a hidden document node with content nodes from dimension A to dimension B, the hidden document is visible afterwards. In the backend, as well as in the frontend. However, this should not happen. Hidden nodes should remain hidden. Regardless of whether they are document nodes or content nodes.

Problem two

When i copy a document node that is visible but has hidden content nodes on it, the hidden content nodes are visible after i copied the document node to another dimension.

Expected Behavior

Hidden nodes should stay hidden

Steps To Reproduce

Probleme one

  1. Setup two content dimensions:
Neos:
  Neos:
    sites:
      '*':
        contentDimensions:
          defaultDimensionSpacePoint:
            language: de
          resolver:
            factoryClassName: Neos\Neos\FrontendRouting\DimensionResolution\Resolver\UriPathResolverFactory
            options:
              segments:
                -
                  dimensionIdentifier: language
                  dimensionValueMapping:
                    de: de
                    en_US: en
  ContentRepositoryRegistry:
    contentRepositories:
      default:
        contentDimensions:
          language:
            label: Language
            icon: icon-language
            values:
              'de':
                label: DE
              'en_US':
                label: EN
  1. Create a hidden document in dimension de with content nodes on it
  2. publish it
  3. create and copy the document to the en_US dimension.
  4. You should see that your hidden document node from dimension de is visible and not hidden anymore.

Problem two

  1. Setup two content dimensions:
Neos:
  Neos:
    sites:
      '*':
        contentDimensions:
          defaultDimensionSpacePoint:
            language: de
          resolver:
            factoryClassName: Neos\Neos\FrontendRouting\DimensionResolution\Resolver\UriPathResolverFactory
            options:
              segments:
                -
                  dimensionIdentifier: language
                  dimensionValueMapping:
                    de: de
                    en_US: en
  ContentRepositoryRegistry:
    contentRepositories:
      default:
        contentDimensions:
          language:
            label: Language
            icon: icon-language
            values:
              'de':
                label: DE
              'en_US':
                label: EN
  1. Create a document in dimension de with a few hidden content nodes on it
  2. publish it
  3. create and copy the document to the en_US dimension.
  4. You should see that your hidden content nodes from dimension de is visible and not hidden anymore.

Environment

- Flow: 9.0.2
- Neos: 9.0.4
- PHP: 8.2.28

Anything else?

You can reproduce this behavior i described above also on demo.neos.io

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions