#938: Distribution : TransferOptions : Name expressed as gmx:MimeFileType should
be gco:CharacterString
--------------------------------+-------------------------------------------
Reporter: ebleys | Owner: geonetwork-devel@…
Type: defect | Status: new
Priority: minor | Milestone: v2.8.0
Component: Metadata standards | Version:
Keywords: |
--------------------------------+-------------------------------------------
XML injection issue: CI_OnlineResource/name gets reset to gmx:MimeFileType
but it uses the fileTag as content (eg myDocument.doc).
a) these are clearly not MimeFileTypes => validation error
b) that is not the intent of this element
(should provide a text box to give the URL a useful title)
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/938>
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.
#938: Distribution : TransferOptions : Name expressed as gmx:MimeFileType should
be gco:CharacterString
---------------------------------+------------------------------------------
Reporter: ebleys | Owner: geonetwork-devel@…
Type: defect | Status: closed
Priority: minor | Milestone: v2.8.0
Component: Metadata standards | Version:
Resolution: worksforme | Keywords:
---------------------------------+------------------------------------------
Changes (by simonp):
* status: new => closed
* resolution: => worksforme
Comment:
My reading of the gmx:MimeFileType is that the mime type is present as a
type attribute - string content is the file name with that mime type. So
for example you should see something like:
<gmx:MimeFileType type="text/plain">MyDocument.txt</gmx:MimeFileType>
GeoNetwork uses this as a substitute for gco:CharacterString (which is
quite valid) so that searches can be made for records with content that
has a certain mime type. Since it's a valid substitution for
gco:CharacterString and it contains the content that would be in the
CharacterString anyway, it's a pretty light substitute and it should be
supported by any other packages that support ISO XSDs. It also adds a
useful search feature.
BTW: the mime type is calculated in update-fixed-info.xsl using a
configurable mime type package (see WEB-INF/mime-type.properties).
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/938#comment:1>
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.