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

result.responseJSON is undefined #83

Closed
solracsf opened this issue Sep 23, 2019 · 10 comments
Closed

result.responseJSON is undefined #83

solracsf opened this issue Sep 23, 2019 · 10 comments

Comments

@solracsf
Copy link
Member

solracsf commented Sep 23, 2019

Some users i try to impersonate in my test instance return this in the browser (Firefox) console, as other works without problems.

TypeError: result.responseJSON is undefined @ impersonate.js:12:5
    impersonate https://example.com/apps/impersonate/js/impersonate.js?v=1504f9c4-9:12
    u https://example.com/core/js/dist/main.js?v=1504f9c4-9:39
    fireWith https://example.com/core/js/dist/main.js?v=1504f9c4-9:39
    k https://example.com/core/js/dist/main.js?v=1504f9c4-9:39
    t https://example.com/core/js/dist/main.js?v=1504f9c4-9:39
@blizzz
Copy link
Member

blizzz commented Sep 23, 2019

Can you please describe what exactly happens? What's the Nextcloud version, which backend is the target user from?

@solracsf
Copy link
Member Author

NC 16.0.4.1, all user backends are the same.
This happens once i click YES on the pop-up window.

image

Nothing happens, only the console error.
For other user, no error, and user is impersonated.

@blizzz
Copy link
Member

blizzz commented Sep 30, 2019

You say it happens for some users. Is there any thing in common with those where it does not work (compared to those where it does)? They logged in before, right?

@solracsf
Copy link
Member Author

solracsf commented Oct 3, 2019

They logged in before, right?
Can't answer that, is there any way on the interface to know it?

@blizzz
Copy link
Member

blizzz commented Oct 7, 2019

on the users page, click on settings on the bottom left and check "Show last login".

@solracsf
Copy link
Member Author

solracsf commented Oct 7, 2019

You're right, users have never logged in.
Can the impersonate option be hidden on this specific case, or show a message like "User has never logged in, it can't be impersonated"?

@blizzz
Copy link
Member

blizzz commented Oct 7, 2019

In that case, impersonating should not work at all actually and a warning be displayed. Already.

@blizzz
Copy link
Member

blizzz commented Oct 7, 2019

Are those all users from the local backend or a different one?

@solracsf
Copy link
Member Author

solracsf commented Oct 7, 2019

Local (database) only.

@solracsf
Copy link
Member Author

Closing as fixed.

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

No branches or pull requests

2 participants