-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
[Bug]: Newly created "My Map" disappears when clicking on it #1098
Comments
I confirm this still happens in Maps 1.1.0. |
This happens also for me. docker image nextcloud:stable-apache, Nextcloud v26.0.3, Maps 1.1.0 |
DIgging a bit into this. The problem is that the call to /apps/maps/maps returns no elements. The following code, I guess, is the culprit (from MyMapsService.php, function getAllMyMaps):
|
I know of a bug that the id of the new created map is zero after creation, but the maps folder is created. After a page reload the new map is usable. So probably the create map function probably should return the id but doesn't do it. |
I can get to the map if I know the link, which I will get to know if I open it just before it disappears from "My Maps".
It will be there until a page reload. Maps are usable, they just don't show up in my maps, and I have no way, really, to find them.
I only guessed that it does not get the correct mime type on the folder.
- Vegard
…On Tue, Jul 25, 2023 at 01:04:37AM -0700, Arne Hamann wrote:
I know of a bug that the id of the new created map is zero after creation, but the maps folder is created. After a page reload the new map is usable.
So probably the create map function probably should return the id but doesn't do it.
--
Reply to this email directly or view it on GitHub:
#1098 (comment)
You are receiving this because you commented.
Message ID: ***@***.***>
--
- Vegard Engen, member of the first RFC1149 implementation team.
|
I found the reason for my issue. For some reason, mimetypemapping.json had not been updated, so it didn't get the correct mimetype. When updating that file manually with the entries the code specifies should be added to it, my next created map works properly, and I am able to see it under my maps. Might get around to track why it didn't get updated, too, but this is just a hint. |
@vegardengen |
It does not, and I saw that this file was there.
What helped for me was adding the missing entries to the mime type mappings. I have no idea why they weren't added, I can see
that there's code for adding them.
I am running in docker, btw, if that makes any difference.
…On Tue, Jul 25, 2023 at 04:35:30AM -0700, Arne Hamann wrote:
@vegardengen
Each map correspondence to a folder in the files app.
When you create a map can you check if the corresponding folder is created an contrains a .index.maps file?
If not could you check if placing a .index.maps file (just an empty file) into an folder make this folder listed as map?
--
Reply to this email directly or view it on GitHub:
#1098 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
--
- Vegard Engen, member of the first RFC1149 implementation team.
|
So adding a OCC command to recreate the mime mappings might be a work around? |
Likely.
…On Wed, Jul 26, 2023 at 04:44:40AM -0700, Arne Hamann wrote:
So adding a OCC command to recreate the mime mappings might be a work around?
--
Reply to this email directly or view it on GitHub:
#1098 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
--
- Vegard Engen, member of the first RFC1149 implementation team.
|
For who wonders what the mime mapping should be; this is what works for me: |
Can anyone test #1118? This should add an occ command to register the mimetypes (i.e. what you had to do manually now) |
Bug description
When I add a new map under "My Maps" and click on it, it disappears. However, the subfolder under "Maps" is created.
Steps to reproduce
Expected behavior
I expect "New Map X" not to disappear when clicking on it and be able to add points to this map.
Installation method
Manual installation
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install of the server?
Updated to a major version (ex. 22.2.3 to 23.0.1)
Is this bug present after an update or on a fresh install of the app?
Updated from a minor version
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
No response
Browser Console
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: