Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Recommend a format for serviceID #203

Open
marcoscaceres opened this issue Jul 1, 2013 · 2 comments
Open

Recommend a format for serviceID #203

marcoscaceres opened this issue Jul 1, 2013 · 2 comments

Comments

@marcoscaceres
Copy link
Contributor

On the mozilla lists, the issue of the format for serviceID was raised with the following recommendation:

we have to find a proper way to make sure this kind of ID is 100% unique cross different services (GSM, CDMA... and so on). Hsin-yi used to suggest maybe we can add a prefix or something like that to differentiate the purposes. For example, "CDMA:12345" and "GSM:12345" are different seviceIDs to identify different systems even if the "12345" part is the same by accident.

@zolkis
Copy link
Contributor

zolkis commented Jul 5, 2013

The spec should only mandate uniqueness of service id's in the device / call history. It should not mandate any particular format: the format is the responsibility and freedom of implementations.

In the examples above, prepending with "GSM" and "CDMA" does not guarantee uniqueness, since there may be multiple GSM services in the system.

If there is a recommendation that makes sense globally, we could make it in a Note. But ultimately it is the responsibility of the implementations to handle it.

@marcoscaceres
Copy link
Contributor Author

I agree that it should not mandate any format (i.e., no MUST). However, the question keeps coming up about what the RECOMMENDED identifiers one should use (I think I asked for guidance and now the Moz engineers also asked for guidance). We can add what you suggested to the spec to clarify this, but implementers do like having some kind of guidance about choosing ID format (as choosing the wrong kind, or adding one naively, can lead to privacy and security issues … so can be scary - particularly for telephony which already has a scary privacy/security aura around it).

If it really does not matter, we can just say "use whatever you want" (e.g., a UUID or some kind of hash), but it really depends if these are only session identifiers, or long lived identifiers, etc.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants