Skip to content
This repository was archived by the owner on Jan 27, 2021. It is now read-only.
This repository was archived by the owner on Jan 27, 2021. It is now read-only.

Need user id as UUID adjustments #41

@PVince81

Description

@PVince81

BLOCKS owncloud/ocis#409

Steps

  1. Check out Update deps 2020 07 22 ocis#409
  2. Add redigo go.mod replace replace github.com/gomodule/redigo => github.com/gomodule/redigo v1.8.2
  3. Start ocis
  4. Check out Phoenix locally (master)
  5. Compile Phoenix with yarn build-all
  6. Kill phoenix ocis service, CLI in ocis repo `bin/ocis-debug kill phoenix)
  7. Start ocis-phoenix from its repo with PHOENIX_ASSET_PATH=~/work/workspace/phoenix/dist PHOENIX_WEB_CONFIG=~/work/workspace/phoenix/config-ocis.json bin/ocis-phoenix --log-level debug server and point at the correct settings
  8. Login in web UI as einstein/relativity
  9. Check network console for "value-list" and see that it's fine.
  10. Now in the Phoenix repo, setup test runner according to the docs but without LDAP
  11. yarn run acceptance-tests tests/acceptance/features/webUICreateFilesFolders/createFolderEdgeCases.feature:58
  12. In the middle of the test after log in, hit Ctrl+C
  13. Now in the web UI, log out and log in as "user1/1234"
  14. Check network console

Expected result

Call "value-list" has no error.
No notification.

Actual result

Notification "Failed to load settings"
400 Bad request for "value-list" call: account_uuid: must be a valid UUID.

OCIS log:

2020-08-12T12:38:11+02:00 DBG director found path=/api/v0/settings/values-list policy=reva prefix=/api/v0/settings routeType=prefix service=proxy
account_uuid:"user1"
2020-08-12T12:38:11+02:00 DBG  bytes=36 duration=0.187233 method=POST path=/api/v0/settings/values-list proto=HTTP/1.1 request=a9c7b18a-684d-492c-98fc-5feba690cef7 service=settings status=400

so in the case of "user1" it's using "user1" as the UUID instead of a true uuid.

Maybe the Phoenix tests setup is not creating the test users properly ?

@individual-it @kulmann

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions