View Issue Details

IDProjectCategoryView StatusLast Update
0006029Composrcorepublic2024-11-15 00:56
ReporterPatrick SchmalstigAssigned ToPatrick Schmalstig 
SeverityFeature-request 
Status assignedResolutionopen 
Product Version 
Fixed in Version 
Summary0006029: Add support for using resource GUID in place of id in URLs / page-links
DescriptionAllow the ability to specify a GUID in IDs for resources instead of the raw database record ID.

This has several advantages:

* Any time database ID records need to be re-mapped (e.g. the importer), existing page-links or raw ID references will break.
* This is a first step towards GUID migration for v12.
* Now that resource GUIDs are cryptographically secure when generated, it is unlikely hackers can guess them.
Additional InformationAs part of our ID deprecation, consider the following:

* Implement this for v11.0
* Make this the default way we present IDs in URLs and page-links in v11.1 (but still allow numeric IDs); deprecate support for numeric IDs
* Remove support for numeric IDs completely in v12.
TagsRoadmap: v11
Time estimation (hours)
Sponsorship open

Activities

Patrick Schmalstig

2024-11-15 00:56

administrator   ~0009594

Maybe a way to do this is to add a new get_param_id('param', 'content_type') (similar to get_param_string('param') except it auto-validates the given information and returns the resource ID (or if Commandr is not installed, it just returns the parameter value).

And then add another function for returning a URL-based ID (such as in build_url) which would either be a moniker, GUID, or resource ID depending on what we request in the function (and if Commandr is available).

We will need to come up with a more robust solution for v12 which does not rely on Resource-fs.

Issue History

Date Modified Username Field Change
2024-10-26 21:15 Patrick Schmalstig New Issue
2024-10-26 21:15 Patrick Schmalstig Status non-assigned => assigned
2024-10-26 21:15 Patrick Schmalstig Assigned To => Patrick Schmalstig
2024-10-26 21:15 Patrick Schmalstig Tag Attached: Roadmap: v11
2024-11-15 00:56 Patrick Schmalstig Note Added: 0009594