bitwarden / server

Bitwarden infrastructure/backend (API, database, Docker, etc).
https://bitwarden.com
Other
15.76k stars 1.32k forks source link

API: collections/details not working, Guid should contain 32 digits with 4 dashes #3031

Open domdev-p opened 1 year ago

domdev-p commented 1 year ago

Steps To Reproduce

Yesterday we upgraded from Version 1.49 to 2023.5.0

  1. Go to Organizations
  2. The Vault is not loading. An infinite spinning wheel shows.

https://XXXXXX/api/organizations/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/collections/details Returns a 500 error:

{
    "message": "An unhandled server error has occurred.",
    "validationErrors": null,
    "exceptionMessage": null,
    "exceptionStackTrace": null,
    "innerExceptionMessage": null,
    "object": "error"
}

https://XXXXXX/api/organizations/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/collections Is working as expected.

The Errorlog shows this:

[Error] Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
System.FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
   at System.Guid.GuidResult.SetFailure(Boolean overflow, String failureMessageID)
   at System.Guid.TryParseExactN(ReadOnlySpan`1 guidString, GuidResult& result)
   at System.Guid.TryParseGuid(ReadOnlySpan`1 guidString, GuidResult& result)
   at System.Guid..ctor(String g)
   at Bit.Api.Controllers.CollectionsController.CanViewCollectionAsync(String orgId, String collectionId) in /home/runner/work/server/server/src/Api/Controllers/CollectionsController.cs:line 269
   at Bit.Api.Controllers.CollectionsController.Get(String orgId, String id) in /home/runner/work/server/server/src/Api/Controllers/CollectionsController.cs:line 48
   at lambda_method97(Closure , Object )
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---

Expected Result

A working organization vault.

/api/organizations/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/collections/details should return a http status 200

Actual Result

grafik

Screenshots or Videos

No response

Additional Context

Database migration info: Converting database 'master' from version 869 to the current version 904.

Build Version

2023.5.0

Environment

Self-Hosted

Environment Details

Issue Tracking Info

Adedamola-Aina commented 1 year ago

hi @domdev-p

I am unable to reproduce this issue, it has been escalated for further investigation. If you have more information that can help us, please add it below.

We use GitHub issues as a place to track bugs and other development related issues. If your issue persists, please write us back using our contact form, so we can continue troubleshooting: https://bitwarden.com/contact/

You can include a link to this issue in the message content.

Alternatively, you can also search for an answer in our help documentation (https://bitwarden.com/help/) or get help from other Bitwarden users on our community forums (https://community.bitwarden.com/c/support/).

The issue here will be closed.

Thanks!