Skip to content

Viewing XML data as text #1159

@ajtag

Description

@ajtag

Details for the issue

the issue is that given some xml content in a cell, the "edit database cell" view will not render the content as text, only as binary data, claiming that the content is an image and so cannot display the text.

*i think" this bug is triggered if a cell starts with the xml header followed by valid xml data.

Useful extra information

looking at https://github.com/sqlitebrowser/sqlitebrowser/blob/master/src/EditDialog.cpp
there is a check to guess the type of cell contents, using "checkDataType(data)".

that function first checks to see if an image library can read the contents of the cell.
one assumes that the SVG image reader sees valid xml and says yes I can read that.

from that point on the cell is considered an image, and will not display text.

I'm opening this issue because:

  • DB4S is crashing
  • [ x] DB4S has a bug
  • [ x] DB4S needs a feature
  • DB4S has another problem

I'm using DB4S on:

  • Windows: ( version: ___ )
  • [ x] Linux: ( distro: ___ )
  • Mac OS: ( version: ___ )
  • Other: ___

I'm using DB4S version:

  • 3.10.1
  • 3.10.0
  • [x ] 3.9.1
  • Other: ___

I have also:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed bugs or reports that are very likely to be bugs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions