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

Can't Import Page Assets using the export file #28306

Closed
erickgonzalez opened this issue Apr 19, 2024 · 2 comments · Fixed by #28662
Closed

Can't Import Page Assets using the export file #28306

erickgonzalez opened this issue Apr 19, 2024 · 2 comments · Fixed by #28662
Assignees
Labels
OKR : Customer Support Owned by Scott Priority : 2 High QA : Approved Release : 23.01.18 Included in LTS patch release 23.01.18 Release : 23.10.24 v11 Included in LTS patch release 23.10.24 v11 Release : 24.04.24 v3 Included in LTS patch release 24.04.24 v3 Release : 24.06.06 Bug Fixing Team : Bug Fixers Type : Defect

Comments

@erickgonzalez
Copy link
Contributor

Parent Issue

No response

Problem Statement

If you try to use the export tool to export all Page Assets and import it afterward it fails with the following error message "badType: url"

Steps to Reproduce

1- Export Page Asset contentlets using the Export Tool (the one under the 3 dots on the right).
2- Try to import that CSV.
3- Get the error

Acceptance Criteria

Import should work since it's using the Export file as it is.

Slash should be stripped from the URL when validating.

dotCMS Version

All LTS versions and Master.

Proposed Objective

Core Features

Proposed Priority

Priority 2 - Important

External Links... Slack Conversations, Support Tickets, Figma Designs, etc.

https://dotcms.zendesk.com/agent/tickets/116011

Assumptions & Initiation Needs

Here is the issue:

it's appending the Slash, and it already comes in the url.

Quality Assurance Notes & Workarounds

No response

Sub-Tasks & Estimates

No response

@dsolistorres dsolistorres self-assigned this May 6, 2024
@erickgonzalez erickgonzalez linked a pull request May 28, 2024 that will close this issue
1 task
github-merge-queue bot pushed a commit that referenced this issue May 29, 2024
### Proposed Changes
* This change will handle the URL field when importing pages to dotCMS
* The URL field will be split in folder parent path and asset name. For
example the URL "/parent1/parent2/test-page" will be used to import the
page to the folder "/parent1/parent2" with the name "test-page"
* If the import file contains the "hostFolder" field, it it points to a
folder instead of a site, that value will take precedence to set the
folder target for the imported page.

### Checklist
- [x] Tests

---------

Co-authored-by: freddyDOTCMS <147462678+freddyDOTCMS@users.noreply.github.com>
Co-authored-by: erickgonzalez <erick.gonzalez@dotcms.com>
spbolton pushed a commit that referenced this issue Jun 3, 2024
### Proposed Changes
* This change will handle the URL field when importing pages to dotCMS
* The URL field will be split in folder parent path and asset name. For
example the URL "/parent1/parent2/test-page" will be used to import the
page to the folder "/parent1/parent2" with the name "test-page"
* If the import file contains the "hostFolder" field, it it points to a
folder instead of a site, that value will take precedence to set the
folder target for the imported page.

### Checklist
- [x] Tests

---------

Co-authored-by: freddyDOTCMS <147462678+freddyDOTCMS@users.noreply.github.com>
Co-authored-by: erickgonzalez <erick.gonzalez@dotcms.com>
@gortiz-dotcms
Copy link
Contributor

gortiz-dotcms commented Jun 3, 2024

Passed Internal QA

No errors

Image

Import made successfully

Image

@bryanboza
Copy link
Member

Fixed, now we are able to import pages using the exported files without problems..

Tested on the latest trunk env // Docker

@erickgonzalez erickgonzalez added the Next LTS Release Shortlisted of issues that will be included in the upcoming LTS label Jun 7, 2024
erickgonzalez added a commit that referenced this issue Jun 13, 2024
erickgonzalez added a commit that referenced this issue Jun 17, 2024
erickgonzalez added a commit that referenced this issue Jun 18, 2024
@erickgonzalez erickgonzalez added Release : 24.04.24 v3 Included in LTS patch release 24.04.24 v3 Release : 23.10.24 v11 Included in LTS patch release 23.10.24 v11 Release : 23.01.18 Included in LTS patch release 23.01.18 and removed Next LTS Release Shortlisted of issues that will be included in the upcoming LTS labels Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OKR : Customer Support Owned by Scott Priority : 2 High QA : Approved Release : 23.01.18 Included in LTS patch release 23.01.18 Release : 23.10.24 v11 Included in LTS patch release 23.10.24 v11 Release : 24.04.24 v3 Included in LTS patch release 24.04.24 v3 Release : 24.06.06 Bug Fixing Team : Bug Fixers Type : Defect
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants