France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: Autosave 3djs
Errors 500 should generate some logs on server side. Did you check them?
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: Autosave 3djs
There's no JavaScript method to delete a file in client file system, and even more dangerous, on a remote server file system.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
Italy
Joined: Nov 17, 2021
Post Count: 466
Status:
Offline
Re: Autosave 3djs
Maybe you still have wrong permissions, please post the output of 'ls -la' on that directory and 'id httpd' (or whatever your apache user is).
----------------------------------------
[Edit 1 times,
last edit by Daniels118 at Jun 16, 2022, 8:02:45 AM]
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: Autosave 3djs
It would be nice to post the solution once you resolved your issue. This forum isn’t here just to ask for help, but also to share solutions.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
France
Joined: Feb 6, 2024
Post Count: 20
Status:
Offline
Re: Autosave 3djs
Hello all, I'm also stuck on the delete topic. I've encapsulated the jsp solution into a local web solution (very much like the online version of SH3D. I managed to have all use case covered (edit, new, etc) except the delete. No significant log messages are raised in the Catalina logs. Please help.
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: Autosave 3djs
Do you mean that the method delete of java.io.File did not work? If yes, check the permissions on the SH3D files you manage on the server and maybe on the folder where you store them.
By the way, it would be nice to explain what you try to achieve.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
France
Joined: Feb 6, 2024
Post Count: 20
Status:
Offline
Re: Autosave 3djs
Hello thanks Emmanuel for the rapid answer,
Yes using the delete of java.io.File. I'm currently working in Eclipse on Windows and deploy Tomcat as a Target runtime, not clear which permission I have to look into. The properties of the Homes folder inside WebApp give only the possibility to set or unset "ReadOnly" and it is unset (I can create and edit existing files).
What I'm trying to do:
I'm the developer of this card : https://github.com/adizanni/floor3d-card in Home Assistant (home automation software), I'm trying to build a Home Assistant add-on to encapsulate SweetHome3D inside the Home Assistant frontend and also migrate my existing SweetHome3D plugin: https://github.com/adizanni/ExportToHASS to JSP.