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

Validate UniqueID Pattern #763

Closed
rsoika opened this issue Nov 10, 2021 · 0 comments
Closed

Validate UniqueID Pattern #763

rsoika opened this issue Nov 10, 2021 · 0 comments

Comments

@rsoika
Copy link
Member

rsoika commented Nov 10, 2021

The DocumentService should validate the pattern of a given unqiueid to match the expected format.

It should not be possible to set an ID like '123' this causes problems in other modules like the imixs-archive system which expects the UID pattern.

We support the official UID pattern and also the old as also the snapshot patterns

REGEX_SNAPSHOTID = "([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}-[0-9]{13,15})";
REGEX_OLD_SNAPSHOTID = "([0-9a-f]{8}-.*|[0-9a-f]{11}-.*)";
@rsoika rsoika added this to the 6.0.1 milestone Nov 10, 2021
rsoika added a commit that referenced this issue Nov 10, 2021
@rsoika rsoika added Jakarta EE 10 Jakarta EE 10 migration testing labels Nov 11, 2021
@rsoika rsoika closed this as completed Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant