MariaDB - Download link when viewing text database fields

When I click on a Download link for text/longtext values in a table when viewing a database via Virtualmin it takes me to an error page.


Am I missing some extra MariaDB package that makes it work?

SYSTEM INFORMATION
OS type and version Ubuntu Linux 22.04.5
Usermin version 2.302
Virtualmin version 7.30.8
Theme version 24.02
Apache version 2.4.52
Package updates All installed packages are up to date

Is that a download link in the database. I’ve never seen it before, but I don’t use webmin to view databases very often.

Yes, when you view a table inside Virtualmin
When you have text fields instead of varchar they come up as download links that go to this /download.cgi url that doesn’t work.

I mean you could install phpmyadmin and see if it works better, that seem like a bug.
But I can’t replicate it.

Yeah I could use phpmyadmin , I have it.
Just looks like it’s supposed to work, thought I might be missing something.

Screenshot what phpmyadmin shows. Maybe @jamie might have an idea.

It’s not something unique to this database., or this Virtualmin server.
Here’s a random wordpress table from a different server. All those download links give me a 404. Any tinytext, longtext or text fields.

Maybe its a theme issue, I never use dark.

Interesting, so it doesn’t do it for you!

That is a weird one. I can’t think what would cause that, what browser do you use?

Chrome, just tried in Firefox though and it’s the same.

Ok, that does sound like a backend issue. Hopefully staff may respond.

Instead of plain text it has this;

<.a class=“ui_link” href=“download.cgi?db=wp_littleumbria&table=wp98_comments&start=0&row=0&col=2” data-original-title=“” title=“”>Download..</a.>
Had to put some .'s in there so that it stays as text

This download link only appears if the “Show blob and text fields as” option in the MariaDB config is set to “Links to download.”

@Pook Does the same issue happen if you switch to the Framed Theme?

@Pook Anyway, apply the following patch to fix your issue:

webmin patch https://github.com/webmin/webmin/commit/187b7c7
1 Like

AHAH! You’re a magician!

1 Like

I’m glad it worked for you, and thanks for reporting it!

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.