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

Downloaded graphical explain plan has incorrect svg xmlns #5943

Closed
hanohrs opened this issue Mar 13, 2023 · 2 comments
Closed

Downloaded graphical explain plan has incorrect svg xmlns #5943

hanohrs opened this issue Mar 13, 2023 · 2 comments
Assignees
Milestone

Comments

@hanohrs
Copy link

hanohrs commented Mar 13, 2023

Downloaded graphical explain plans have svg xmlns attributes of "https://www.w3.org/2000/svg" which should be "http://www.w3.org/2000/svg" according to the https://www.w3.org/2000/svg web page.

This prevents users from opening the svg file as an image in browsers.

While v6.9 exports svg images with the correct attribute value, v6.15 and v6.21 export with the incorrect value.

@pravesh-sharma
Copy link
Contributor

Issue fixed. Verified on snapshot build https://www.postgresql.org/ftp/pgadmin/pgadmin4/snapshots/2023-03-15/

Env - macOS Monterey 12.6.3 (Desktop mode)

@mscottx88
Copy link

Kind of a wild goose chase led me here. I'm forced to use an older version of pgAdmin and tried to export the image from SVG to PNG using npm package sharp but I got this error:

Error: Input buffer has corrupt header: glib: XML does not have <svg> root

Turns out, changing the name space URL as described above fixed the problem there too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants