
|
If you were logged in you would be able to see more operations.
|
|
|
|
Issue Links:
|
Relate
|
|
This issue relates to:
|
|
BLTI-24
Maximum length of a context_id is too constraining - migrate to SHA-1 hash for siteId
|
|
|
|
|
|
|
|
|
If the remote system passes any "unusual charcters" in the context_id key, ProviderServlet cannot find/or create the site. For example, "/" or "%" get mangled in the site creation process. Since we do not know what kind of characters will be used in external system keys, we should be more forgiving when we map to local keys.
|
|
Description
|
If the remote system passes any "unusual charcters" in the context_id key, ProviderServlet cannot find/or create the site. For example, "/" or "%" get mangled in the site creation process. Since we do not know what kind of characters will be used in external system keys, we should be more forgiving when we map to local keys. |
Show » |
|
I have tested the fix and it works for the case:
context_id=/sites/foo-bar
where siteId becomes:
12345:/sites/foo-bar
If we discover that the siteId length becomes too long (i.e. the actual length of MIME-compliant base64-encoded binary data is usually about 137% of the original data length), then maybe we should use a SHA-1 on the context_id and then store it as a property on the site object for later reference.
Committed revision 73024.