jeancharles-roger / centyllion-app

Centyllion web app projet
https://app.centyllion.com
1 stars 0 forks source link

Save problem: can't patch #126

Closed pascal-ballet closed 5 years ago

pascal-ballet commented 5 years ago

image

pascal-ballet commented 5 years ago

How to reproduce it: 1) Log with my account 2) Open the model Cell Membrane 3) Remove the behaviour "Membrane Shrink" (or change anything in the model) 4) Try to Save => Error

jeancharles-roger commented 5 years ago

Easy to reproduce on your account. I've to identify why now

pascal-ballet commented 5 years ago

Great!

jeancharles-roger commented 5 years ago

Actually you don't have the right to save anything ... 😰

jeancharles-roger commented 5 years ago

Neither do I ....

jeancharles-roger commented 5 years ago

The backend restart didn't change it...

jeancharles-roger commented 5 years ago

Strange thing... when I run the server locally connected to the production db it works fine.

pascal-ballet commented 5 years ago

Yes, strange... Does OVH change the db, in one way or another (rights, update, etc)?

pascal-ballet commented 5 years ago

Is there a difference between the local db and the remote one? Perhaps a table, a link or a field is mismatching ?

jeancharles-roger commented 5 years ago

I did run the server locally connected to the production db and it worked fine. I have no clue yet to what's happening. It really worries me.

pascal-ballet commented 5 years ago

Do you try to revert from a yesterday commit? It worked fine yesterday (15th of july 2019). Just to be sure it does not come from your code.

jeancharles-roger commented 5 years ago

I haven't tried that. I've only changed thing on the client (the javascript part). I don't understand

pascal-ballet commented 5 years ago

Ransomware again?

pascal-ballet commented 5 years ago

Probably not, I can browse my models...

pascal-ballet commented 5 years ago

When using Wordpress, the "Incorrect file permissions can cause 403 forbidden error. It makes your web server thinks that you do not have permission to access those files. If the above two solutions do not solve the 403 forbidden error on your site, then incorrect file permissions can be the most likely cause."

pascal-ballet commented 5 years ago

Une piste (?) : http://community.ovh.com/t/maudite-erreur-403-forbidden/11938/26

jeancharles-roger commented 5 years ago

I think I found the problem. It's linked to CORS. I added the possibility to load scripts from another page (the presentation we did) and it caused problems to the local page with the need of authentication.

I'm not sure why but the problem is resolved when removing the CORS settings. I should have seen the same problem from my local setup but I didn't. Probably the reverse proxy did play a role in this (I don't have one locally).

I knew from the beginning that CORS is a nightmare, now I really know from the inside out ;).

pascal-ballet commented 5 years ago

Well done! Finding the problem is the most important part. For our presentation, we probably could put it in the same server than Centyllion ?

jeancharles-roger commented 5 years ago

The idea is to be able to have simulations embedded in other pages.

I reopen this issue to keep track of the problem

pascal-ballet commented 5 years ago

Ok, I understand... It's quite important!

jeancharles-roger commented 5 years ago

I found the problem