Skip to content

Null Pointer Exception when push publishing a folder after rename #35260

@gortiz-dotcms

Description

@gortiz-dotcms

Problem Statement

When trying to push publish a recently renamed folder that has content inside of it it fails with java.lang.NullPointerException: Cannot invoke "com.dotmarketing.portlets.folders.model.Folder.getPath()" because "folder" is null

Steps to Reproduce

1 - Set up a push publish env
2 - Create a folder and push publish it, check that it is present on the destination env.
3 - Rename the same folder and push publish it, check that the new folder is published on dest env
4 - Now create a page inside the folder, push publish the folder again and check on dest env
5 - Rename the folder again, and push publish it. Here we should see the error

Acceptance Criteria

The publish process should be successful and it should publish the folder with all its content

dotCMS Version

latest

Severity

High - Major functionality broken

Links

https://helpdesk.dotcms.com/a/tickets/35811

Metadata

Metadata

Assignees

Type

Projects

Status

In Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions