Skip to Content.
Sympa Menu

grouper-users - RE: UUID format

Subject: Grouper Users - Open Discussion List

List archive

RE: UUID format


Chronological Thread 
  • From: Paul Gazda <>
  • To: Chris Hyzer <>, Grouper Users Mailing List <>
  • Subject: RE: UUID format
  • Date: Wed, 17 Jun 2009 09:16:00 -0700
  • Accept-language: en-US
  • Acceptlanguage: en-US

Thanks, Chris for giving me the regex to identify either format. That saved some think time. And thanks, Gordon, for the background info on UUID.

 

As far as the config switch to specify dashes or no dashes, that would be a useful feature for us. We prefer the dashes in uuid. We use ldap regid for our subjectId for people (32 hex characters, no dashes), and uuid for groups. With the dashes in uuid, it was easy to tell whether a subject is a group or person without having to examine the source attribute. Removing the dashes makes the format for a regid and group uuid identical. For us, that is a disadvantage. Thanks.

 

Paul Gazda

 

From: Chris Hyzer [mailto:]
Sent: Tuesday, June 16, 2009 10:20 AM
To: Paul Gazda; Grouper Users Mailing List
Subject: RE: UUID format

 

We had a request to take the dashes out of the UUID, so in 1.4.2+ the uuid’s do not have dashes anymore.

Im not sure we assure that the uuid’s will never change, we can discuss it at the dev call, but I think it is pretty safe to use this regex 1.4.2+

 

[a-f0-9]{32}

 

If you want a regex that matches the old and new, use this:

 

[a-f0-9]{8}-?[a-f0-9]{4}-?[a-f0-9]{4}-?[a-f0-9]{4}-?[a-f0-9]{12}

 

If you just want the old, then this:

 

[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}

 

If you want a config switch so that you can have dashes going forward, let me know, we can easily add this…

 

Anyways, let me know the request and we can discuss at the next call

 

Thanks,

Chris

 

From: Paul Gazda [mailto:]
Sent: Tuesday, June 16, 2009 12:45 PM
To: Grouper Users Mailing List
Subject: [grouper-users] UUID format

 

Every uuid I have seen has a format of 8 hex digits, dash, 4 hex digits, dash, 4 hex digits, dash, 12 hex digits.

E.g. 5ea48635-e15d-4cd4-bde2-c0a4c356d388

 

Is that format fixed, or can it change? I want to know if I can determine whether a string is a uuid by matching that pattern.

 

Thanks.

 

Paul Gazda

 




Archive powered by MHonArc 2.6.16.

Top of Page