Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid device group owner is specified for iOS devices #554

Closed
vdelendik opened this issue Aug 7, 2022 · 7 comments
Closed

invalid device group owner is specified for iOS devices #554

vdelendik opened this issue Aug 7, 2022 · 7 comments
Labels
Milestone

Comments

@vdelendik
Copy link
Contributor

    group: {
      owner: {
        email: 'administrator@fakedomain.com',
        name: 'administrator'
      },
    },
@vdelendik
Copy link
Contributor Author

it should be fixed in stf:2.3-beta18+

@vdelendik
Copy link
Contributor Author

reopening as we don't have such variables on device container level (stf):

        email: env.STF_ADMIN_EMAIL
      , name: env.STF_ADMIN_NAME

@vdelendik vdelendik reopened this Aug 7, 2022
vdelendik added a commit that referenced this issue Aug 7, 2022
@vdelendik vdelendik modified the milestones: 2.3, 2.4 Aug 8, 2022
@vdelendik vdelendik modified the milestones: 2.4, 2.5 Dec 12, 2022
@vdelendik
Copy link
Contributor Author

if we can't get this info at runtime from stf-app we have to adjust setup process and provide this info manually

vdelendik pushed a commit that referenced this issue Sep 27, 2023
Signed-off-by: Denis barbaron <denis.barbaron@orange.com>
@vdelendik vdelendik modified the milestones: 2.6, 2.6.1 Nov 4, 2023
@vdelendik vdelendik modified the milestones: 2.6.1, 2.6.2 Nov 21, 2023
@vdelendik vdelendik modified the milestones: 2.6.2, 2.6.3 Jan 10, 2024
ignacionar pushed a commit to ignacionar/stf that referenced this issue Jan 24, 2024
@ignacionar
Copy link
Collaborator

ignacionar commented Jan 24, 2024

Done: #890 and #894

Testing steps:

  1. Restart device containers
  2. Delete cookies / open STF in incognito window
  3. Reload page and check the device group owner
  4. Run in terminal curl -H "Authorization: Bearer <token>" https://demo.zebrunner.farm/api/v1/devices/<udid>/owner | jq ., it should return owner email and name

@vdelendik vdelendik modified the milestones: 2.6.3, 2.7 Jan 25, 2024
ignacionar pushed a commit to ignacionar/stf that referenced this issue Feb 16, 2024
dhreben added a commit that referenced this issue Feb 21, 2024
#554 Set correct owner .env values, new STF API owner endpoint
ignacionar pushed a commit to ignacionar/stf that referenced this issue Feb 21, 2024
dhreben added a commit that referenced this issue Feb 21, 2024
@dhreben
Copy link
Contributor

dhreben commented Feb 21, 2024

Fixed.

Tested:
DEVICE_VERSION: 2.6.4-beta5
STF=2.6.4-beta5

logs:

~/tools/mcloud-agent$ curl -H "Authorization: Bearer e1e5791cca35403a8...........21bfac89e6656d" https://d........................m/api/v1/devices/6d1e6edcd...................4603216/owner | jq .


{
  "email": "a@zebrunner.com",
  "name": "admin"

@vdelendik vdelendik modified the milestones: 2.7, 2.6.5 Mar 19, 2024
@vdelendik
Copy link
Contributor Author

fixed indirectly in 2.6.4 after registration valid user ownership:

curl -H "Authorization: Bearer a50e...2c4" https://de..m/api/v1/devices/e18...ba8/owner
{"email":"admin@zebrunner.com","name":"admin"}

@dhreben
Copy link
Contributor

dhreben commented Mar 19, 2024

Tested
DEVICE_VERSION: 2.6.5-beta1
STF: 2.6.5-beta1
Verified

curl -H "Authorization: Bearer 236414........53563" https://dem.........m/api/v1/devices/e18f63ddbea1........ba8/owner
{"email":"ad...@ze......com","name":"admin"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

3 participants