Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUGFIX: Make sure nodes that are to be discarded are actually publishable #1711

Merged
merged 1 commit into from Dec 13, 2017

Conversation

grebaldi
Copy link
Contributor

@grebaldi grebaldi commented Sep 23, 2017

TYPO3\Neos\Service\PublishingService traverses all children of a node to discard that node recursively. Not all those nodes are actually publishable though, so the following batch discard operation fails with the Exception #1395841899: Nodes in a in a workspace without a base workspace cannot be discarded.

So, I added a filter to TYPO3\Neos\Service\PublishingService::discardNode that removes all nodes from the to-be-discarded list, that are in a different workspace than the given node.

Resolves: #1710

@aertmann
Copy link
Contributor

a test for this would be helpful, either behat or functional

@dimaip
Copy link
Contributor

dimaip commented Nov 28, 2017

@grebaldi says it's hard for him to get into behat testing right now. Could we merge this now and add an issue to update tests later, as right now this is pretty critical and does not wait?

@dimaip
Copy link
Contributor

dimaip commented Dec 13, 2017

Can we merge this, please

Copy link
Member

@kitsunet kitsunet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense.

@kitsunet kitsunet merged commit 3a5fd5c into neos:2.3 Dec 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants