4d / 4D-Mobile-App-Server

Open sourced component to install to 4d server as mobile app back end
Other
6 stars 7 forks source link

Report which session file fails #9

Open macMikey opened 2 years ago

macMikey commented 2 years ago

I had a session file that got corrupted, but I didn't know it. Opening the project resulted in an unhelpful error message. It would be great if when a file gets borked, the report includes the name of the file, and the fact that the mobile app server is the component reporting the issue. It took hours to finally figure out what the problem was.

mesopelagique commented 2 years ago

Hi, just by starting the db? (I will try or make a 4D QA try) if yes it's a 4D internal issue, that read mobile session too in memory

if no, it's some 4d code that read the json files here sems to not have on error call https://github.com/4d-go-mobile/4D-Mobile-App-Server/blob/1dc012df6d9a77fc8ccc9355807793daf5fb1f0d/Project/Sources/Methods/Activate%20Sessions.4dm#L31 here it's seems ok https://github.com/4d-go-mobile/4D-Mobile-App-Server/blob/1dc012df6d9a77fc8ccc9355807793daf5fb1f0d/Project/Sources/Classes/SessionObject.4dm#L28

mesopelagique commented 2 years ago

Yes it seems to be at start, in 4D.

mesopelagique commented 2 years ago

I have send a mail to QA team about ACI0102614 asking to re-evaluate the bug status, to allow 4D dev to do something like re-throwing error with more information or removing empty session file (maybe due to some corruption)