-
Notifications
You must be signed in to change notification settings - Fork 10
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
Save image bug with filepath #1252
Comments
presumably this is a backend issue. |
@veggiesaurus do you have time to have a look? |
|
This is happening when the output directory path passed to the backend is absolute. Navigating all the way back to the root directory resets the path and all its children to relative paths. I suspect that the problem is that the absolute path is being passed to casacore as-is, and casacore is interpreting it as a valid absolute filesystem path (but it's not; it's relative to a root directory -- possibly this bug isn't triggered if the root directory is the filesystem root). I don't think that the absolute path input is incorrect (it works fine in the file list request), so we're probably missing a normalization step. I will investigate further how these paths are being handled. |
More specific steps to reproduce:
Using the breadcrumbs to navigate to a directory prepends |
On the IDIA CARTA server (running v3.0.1), I open one of the THINGS cubes (from
/carta_share/public/jcollier/THINGS/
), create a moment map or PV diagram, and then File --> Save image. In the file browser, when I try to save the image, a red box pops up with the following error msg: "Cannot save image type from loader.Directory: /carta_share/public/collier/THINGS does not exist and cannot be created".I then go back to the root directory and navigate back to the same directory, and save again, which is successful.
Even if I try to overwrite a file, a dialog pops up to mention the file exists and asks if I want to overwrite it, but attempting to save/overwrite it causes the same issue.
The text was updated successfully, but these errors were encountered: