LINCnil / pia

Version web front office de l’application PIA à déployer sur un serveur afin d’en donner l’accès via un navigateur web | Front office of the PIA application to be deployed on a server in order to access it through a web browser.
GNU General Public License v3.0
264 stars 271 forks source link

Download does not work #711

Open StorkST opened 1 year ago

StorkST commented 1 year ago

Description du bug / Describe the bug

Hello When clicking on "Télécharger" (as .json) I select and validate the folder and name of the file to save, but no file is generated.

Pour reproduire / To Reproduce Etapes pour reproduire le bug / Steps to reproduce the behavior:

Using the 3.0.3 standalone, I created a "treatment" and tried to save it, and it does not work.

Comportement attendu / Expected behavior Donner une description claire et concise du comportement attendu. / A clear and concise description of what you expected to happen.

Captures d'écran / Screenshots Si pertinent, ajouter des captures d'écran pour expliquer le problème rencontré. / If applicable, add screenshots to help explain your problem.

Pour les versions standalones / For standalone version (please complete the following information):

syl-p commented 1 year ago

Hello @StorkST, a new version (with new features and fixes) will be released very soon. We have no problem about download json file in the master headed version. Please wait for the next tag and make a update.

I will reply to this issue when the new version will be released.

For your problem:

Have you a "coma", "accent" in you file name or pia name ? Yes ? so remove them and try to download again ?

Have you a error (red message) in the browser console ? Can you screen it ?

StorkST commented 1 year ago

Hello @syl-p

I have hyphens "-" in the PIA name. So I tried removing hyphens and exporting the PIA. Exporting method I usually use (editer -> Impression et Téléchargement -> Checkbox .json -> Télécharger) still does not work, with or without hyphens.

Then I found out there is the "export" button in the view with all the actives PIAs. I tried the export button there and it actually works: a .zip containing a .json file was created. So this fix my problem for exporting PIA to .json, even though the other feature (in the view of a single PIA) for exporting .json does not work in my environment.

I do not see any error message as I am using the standalone version. But maybe there are logs in a file, I don't know where.

syl-p commented 1 year ago

Ok @StorkST , I think that will be fine with the new release. We make some update and refactoring on this part.

However, I have a question. Do you have a connection with a pia-back server on your pia standalone application ?

Keep on it. The new release will be here soon.

StorkST commented 1 year ago

Hello

Thank you, I will try.

No, no connection with a pia-back server