Quantcast
Channel: FileMaker Forum > Report an issue
Viewing all articles
Browse latest Browse all 3510

XML query for -layoutnames returns extra empty elements (1 Comment)

$
0
0

Issue report by Malcolm Fitzgerald

Product

FileMaker Server

Version

13.0.9.905

Operating system version

Mac OS X 10.9.5

Description of the issue

An xml query for -layouts returns the wrong set of elements. In the instance that I have observed, the returned set contains the correct elements but it also contains extra elements which are empty.

Steps to reproduce the problem

Database hosted on FMS 13.0.9.905 with an account which has xml privileges enabled.

The privilege set should have custom settings for layouts. Some layouts are not acessible, others are.

Make an xml request for either FMPXMLRESULT or fmresultset.

Request: https://domain.name/fmi/xml/FMPXMLRESULT.xml?-db=Responder&-layoutnames
Request: https://domain.name/fmi/xml/fmresultset.xml?-db=Responder&-layoutnames

Expected result

We expect the xml to return the correct elements, the correct number of elements and the correct count of elements.

<?xml version ="1.0" encoding="UTF-8" standalone="no" ?>
<!DOCTYPE fmresultset PUBLIC "-//FMI//DTD fmresultset//EN" "http://localhost:16020/fmi/xml/fmresultset.dtd">
<fmresultset xmlns="http://www.filemaker.com/xml/fmresultset" version="1.0">
<error code="0"></error>
<product build="1/15/2015" name="FileMaker Web Publishing Engine" version="13.0.9.905"></product>
<datasource database="Responder" date-format="" layout="" table="" time-format="" timestamp-format="" total-count="2"></datasource>
<metadata><field-definition auto-enter="no" four-digit-year="no" global="no" max-repeat="1" name="LAYOUT_NAME" not-empty="yes" numeric-only="no" result="text" time-of-day="no" type="normal"></field-definition></metadata>
<resultset count="2" fetch-size="2">
<record mod-id="8" record-id="5"><field name="LAYOUT_NAME"><data>connect</data></field></record>
<record mod-id="9" record-id="6"><field name="LAYOUT_NAME"><data>confirm</data></field></record>
</resultset>
</fmresultset>

Actual result

The xml returned includes the correct elements. It returns the wrong number of elements and the wrong count of elements. The count returned accurately reflects the number of elements returned, however, the number of elements returned is wrong.

<?xml version ="1.0" encoding="UTF-8" standalone="no" ?>
<!DOCTYPE fmresultset PUBLIC "-//FMI//DTD fmresultset//EN" "http://localhost:16020/fmi/xml/fmresultset.dtd">
<fmresultset xmlns="http://www.filemaker.com/xml/fmresultset" version="1.0">
<error code="0"></error>
<product build="1/15/2015" name="FileMaker Web Publishing Engine" version="13.0.9.905"></product>
<datasource database="Responder" date-format="" layout="" table="" time-format="" timestamp-format="" total-count="4"></datasource>
<metadata><field-definition auto-enter="no" four-digit-year="no" global="no" max-repeat="1" name="LAYOUT_NAME" not-empty="yes" numeric-only="no" result="text" time-of-day="no" type="normal"></field-definition></metadata>
<resultset count="4" fetch-size="4">
<record mod-id="8" record-id="5"><field name="LAYOUT_NAME"><data>connect</data></field></record>
<record mod-id="9" record-id="6"><field name="LAYOUT_NAME"><data>confirm</data></field></record>
<record mod-id="0" record-id="0"><field name="LAYOUT_NAME"><data></data></field></record>
<record mod-id="0" record-id="0"><field name="LAYOUT_NAME"><data></data></field></record>
</resultset>
</fmresultset>

Exact text of any error message(s) that appear

There are no error messages

Configuration information

no additional config required

Workaround

no workarounds found

Viewing all articles
Browse latest Browse all 3510

Trending Articles