[Bug] Side menu is available also in Android App #413
Labels
No labels
blocked
bug
duplicate
enhancement
FR accepted
help wanted
invalid
need discussion
next release
not reproduced
PR requested
question
reproduced
WFB
WIP
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deblan/side_menu#413
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Environment
Configuration
Steps to reproduce
Open Memories App (https://play.google.com/store/apps/details?id=gallery.memories&hl=fr).
Observed Results
Side menu is visible. I thinks that the Android App is a webapp.
Expected Results
No side menu on Android (web)App.
More informations
See screenshot.
Hello!
Did you have this behaviour with Custom Menu 4.x ?
Yes. Since 4.x.
Fixed in v5.0.2!
I'm on version 5.0.2. I've force-closed Memories and cleared the cache of the Android app, but I still see the menu. The HTTPD logs show the correct user agent:
172.25.0.7 - - [30/Apr/2025:06:45:38 +0000] "GET /apps/memories/api/days/xxx HTTP/1.1" 200 778 "https://xxx.xxx.xxx/apps/memories/" "MemoriesNative/1.12 Mozilla/5.0 (Linux; Android 10) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.5672.76 Mobile Safari/537.36"
OK, in my Nextcloud logs:
Undefined array key "HTTP_USER_AGENT" at /var/www/apps/side_menu/lib/AppInfo/Application.php#109I think that HTTP_USER_AGENT is not part of $_SERVER in PHP-FPM
Hum..... If put
var_dump($_SERVER);to the top of index.php, I see a HTTP_USER_AGENT...On my lab, I installed Memories and configurred my locale instance of nextcloud (behind Apache2 and PHP-FPM). I reproduced your issue until the fix.
The version 5.0.3 check if
$_SERVER["HTTP_USER_AGENT"]exists before using it but I don't know why it couldn't exist in this place.I propose a PR with the use of Request Object. The Request Object have the content of HTTP_USER_AGENT... But menu still present on the App.... Perhaps a cache issue...
Thanks for you PR!
The modifications are available in v5.1.0