Skip to content
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]: GQL Issue for addFTPInstance and updateFTPInstance #22

Open
danardf opened this issue Aug 19, 2024 · 5 comments
Open

[bug]: GQL Issue for addFTPInstance and updateFTPInstance #22

danardf opened this issue Aug 19, 2024 · 5 comments
Labels
bug Something isn't working triage Triage

Comments

@danardf
Copy link
Contributor

danardf commented Aug 19, 2024

FreePBX Version

FreePBX 16

Issue Description

When we add or update any FTP instances, the data are not fully updated.
After Adding an instance, Use TLS and Filesystem Type are empty.
That mean the FTP instance is not completed and can crach the code (for exemple, unable to read the file size, giving an Error exception in backup module under Restore Tab).

Maybe add useTLS on the GQL request, otherwise, set it up on False anyway.
About Filesystem type, I think there is a confusion about that!

Indeed, In the GUI, you write: Filesystem Type, but on the documentation there is: fileStoreType and on the main code, the method returns fstype as key.
That should be nice to provide the same variables or keys every where for avoid any confusions. FS = FileStore or Filesystem? It's FilseStoreType or fsType? That is the question!

Operating Environment

| filestore | 16.0.18.1
| filestore | 17.0.2.22

Relevant log output

none.
@danardf danardf added bug Something isn't working triage Triage labels Aug 19, 2024
@gogglespisano
Copy link

I think I'm experiencing this problem.

After upgrading to 17, I had to "Enable" the FTP filestore, which was ok. However, the TLS option appears to have no effect and my backups are now failing because FreePBX is not issuing the FTP "AUTH TLS" command.

Other than the Enable option, my FTP backups were working in 16.

@danardf
Copy link
Contributor Author

danardf commented Aug 27, 2024

@gogglespisano Whatever you set with options, there were two which was missing. : The file systems and TLS.
I don't know if TLS is really useful here. But at least, set it up by default.

@gogglespisano
Copy link

gogglespisano commented Aug 28, 2024

I looked in kvstore_FreePBX_modules_Filestore and "usetls" was set to "yes" (that might be from my backup), but when the backup is run, the FTP storage fails because it didn't use TLS (FTPS). Maybe my problem is the FTP code itself, and not the GUI.

Or is problem that "ssl" isn't picked up from usetls=yes/no?

This was working in 16 right before I transitioned to 17.

@danardf
Copy link
Contributor Author

danardf commented Aug 28, 2024

This issue also is broken backup restore because Files System is null, and it generate a exception error, when the code is trying to get file sizes. The doesn't know if it's Windows or Linux to use. As my FTP server is on Linux, then if the FTP is use Windows. That's dead.

@danardf
Copy link
Contributor Author

danardf commented Aug 28, 2024

Anyway, these options should be present on GQL otherwise, set it up all missing option by default.

Other things, S3, Dropbox, ...etc are not available. Looks like this part of GQL code is incomplet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Triage
Projects
None yet
Development

No branches or pull requests

2 participants