-
Notifications
You must be signed in to change notification settings - Fork 3
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
Android issue 403 Error #334
Comments
Hi @jsmueller7, ok that's weird. It's definitely a permissions issue, meaning that the user's credentials are not getting through. Did you try clearing browser cache and cookies/localstorage on the Android device, to make absolutely sure there's not something intervening from our auth flow change that happened around v1.2? Otherwise: if the credentials are leaving the device correctly, as you've confirmed with the USB debug, is there something that might happen in your Kong setup when the request comes in? |
Hi @rsimon: I first tested on the older version with a device that never used the new auth flow. So that shouldn't have any influence. I can check what I see in kong. I guess though that this behavoir is reproducable on the performant staging environment as well. The other issue #335 is in the way though. |
Allright, I have come further. I looked at Kong - the I noticed that: When I remote-debug my mobile browser, the annotation is created when I make the selection with the mouse from the PC. If I make the selection with my fingers, I get an error. After browsing through the tabs, I noticed that the only significant difference between successful and unsuccessful requests is the timing. What also works in the mobile browser from the tablet is replying to existing comments. Only creating new annotations does not work. Long story short: This must have something to do with the way text selection is handled on smart devices. With TEI / TXT the pop-up opens directly, with PDF the context menu of the mobile browser opens first - but only when I select with my fingers. The Postgres logs fit into the picture because some timings are also logged there. Den genauen Zusammenhang kenne ich aber noch nicht.
|
The timing (and, in fact, which events are thrown and which aren't) is definitely different on all platforms. (I'm tempted to say that the way different browsers behave is a mess... We've recently revised the whole selection handling code to account for it.) So, I wouldn't be surprised about the timing differences. They should be ok in principle. (Although I suspect they play a role in the missing popup on Android and PDF!) The permissions issue reported above must be something different.
|
With PDFs in the mobile browser I have this flow:
When I select text with the mouse, I basically only have just one interaction to make the pop-up appear. |
Thanks for the forensics! Then I believe we might actually just be facing a single bug here. (The missing popup in PDF/Android.) Because the popup isn't opening, the initial |
There's an issue on android devices; I've only tested with a couple of Cromium based browsers. On the older client version
1.1.2
, if you select text and try to persist the annotation you'll get an error 403:If you test this in the exact same context/document with the exact same user, from a PC, you'll get a 201. This behavior is even shown if you try to usb debug from a computer. When creating the annotation with a computer mouse on the pc - in the inspected tab on the android device - the annotation will be created. If you try to create the annotation on the tablet / smartphone / screen, you'll get an 403.
The post-URL is the same, the authorization headers are the same.
The text was updated successfully, but these errors were encountered: