View Issue Details

IDProjectCategoryView StatusLast Update
6029Composrcorepublic2024-11-15 00:56
ReporterPDStig Assigned ToPDStig  
PrioritynormalSeverityfeature 
Status assignedResolutionopen 
Summary6029: 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
Attach Tags
Time estimation (hours)
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

PDStig

2024-11-15 00:56

administrator   ~9594

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.

Add Note

View Status
Note
Upload Files
Maximum size: 32,768 KiB

Attach files by dragging & dropping, selecting or pasting them.
You are not logged in You are not logged in. This means you will not get any e-mail notifications. And if you reply, we will not know for sure you are the original poster of the issue.

Issue History

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