can't configure a mapping to archive with primary as archive via the admin

Description

1. add a virtual mapping with a .lar archive, without assigning a primary resource path
2. edit the mapping and set primary to archive

it always resets to resource (even tho there is no resource defined)

the archive path is highlighted in red on the mappings list and edit form, but with no explanation why?

https://github.com/lucee/Lucee/blob/5.3/core/src/main/cfml/context/admin/resources.mappings.list.cfm#L51
https://github.com/lucee/Lucee/blob/5.3/core/src/main/cfml/context/admin/resources.mappings.edit.cfm#L34

If i dump out the mappings via cfadmin, the mapping.archive is always empty?

Environment

None

Activity

Show:

Zac Spitzer 1 April 2021 at 14:59

Pothys - MitrahSoft 22 December 2020 at 15:07

I closed the above PR and added new PR with same fix.

Pull Request: https://github.com/lucee/Lucee/pull/1139

Michael Offner 18 December 2020 at 16:33

please see comment above

Zac Spitzer 4 February 2020 at 12:18

these new alert messages need to be refined, they currently don't make much sense

<data key="mappings.archiveAlert">Make sure the File exists or not.</data>
<data key="mappings.physicalAlert">Make sure the Directory exists or not</data>

Pothys - MitrahSoft 4 February 2020 at 11:57

I've checked and confirmed the issue that happened on lucee. And added a fix for this ticket.

Pull request: https://github.com/lucee/Lucee/pull/838

Fixed

Details

Assignee

Reporter

Priority

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Affects versions

Created 5 July 2019 at 12:00
Updated 30 June 2022 at 11:08
Resolved 14 June 2021 at 15:48