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:
Pothys - MitrahSoft
February 4, 2020, 11:57 AM

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

Zac Spitzer
February 4, 2020, 12:18 PM

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>

Assignee

Michael Offner

Reporter

Zac Spitzer

Priority

Critical

Labels

Fix versions

None

Affects versions

Configure