nens / servicedesk-issue-only

This repository will be used primarily by the service desk to report issues which will then be moved by the teamleads
0 stars 0 forks source link

[Lizard]: Organisation Water Authority of Fiji has an ill-formatted unique_id (production) #133

Open GeOdin opened 1 year ago

GeOdin commented 1 year ago

Contact Details

No response

Topdesk URL (API)

No response

Incident Type

Error

What priority should we assign to this submission?

None

Lizard component

Accounts and rights (Default)

What happened?

I noticed in sentry an error Organisation Water Authority of Fiji has an ill-formatted unique_id. After asking around. I heared that the software did not check whether the uuid would be correct. The organisation could be made and does not seem to cause any issues currently, but an ill-formatted unique id might cause problems later (I think), Would this be something to look into?

Sentry message: https://sentry.io/organizations/nens/issues/3788455809/?alert_rule_id=260188&alert_timestamp=1670246765401&alert_type=email&environment=production&project=179179&referrer=alert_email

How to Reproduce?

I am not sure

What did you expect and what was the actual result?

No response

Add screenshots, video's etc

No response

Relevant log output

No response

Additional info

Good luck! :)

GeOdin commented 1 year ago

Note: no prio because it does not seem to cause any issues currently. But it might be something to look into to prevent ill-formatted uuids to be made.

lexvand commented 1 year ago

@GeOdin The UUID is indeed 1 character short. This sometimes happens when copy-pasting it incorrectly. It should be fixed here: https://demo.lizard.net/admin/lizard_auth_client/organisation/597/change/.

If the organisation is also used in 3Di it is important that the UUID's are identical between the two products for postprocessing purposes.

GeOdin commented 1 year ago

Ah,thank you very much! :)

byrman commented 1 year ago

Linda also bumped into this. It happens when you paste a formatted UUID (i.e. a UUID in its canonical form) in the Django Admin. Because of the field length, the paste action is not completely successful (characters are missing).

Workaround for now:

  1. Generate a UUID, e.g. 8e395fa8-9590-4544-a6bf-9ad0fd7e330f
  2. Remove all hyphens: 8e395fa895904544a6bf9ad0fd7e330f
  3. Paste this hyphen-less value into the Django Admin and save.
GeOdin commented 1 year ago

Thank you very much too! :)

Is this something to add to the Lizard docs? Maybe as note?

lexvand commented 1 year ago

No, this is not something that normal users or administrators register (yet). It should be checked by the admins that manage organisations.

GeOdin commented 1 year ago

Okay, thank you again. :)