[Geoserver-devel] [JIRA] (GEOS-10760) GeoFence XML REST API broken: wrong element names

Gabriel Roldan created an issue

GeoServer / BugGEOS-10760

GeoFence XML REST API broken: wrong element names

Issue Type:

BugBug

Affects Versions:

2.22.0

Assignee:

Gabriel Roldan

Components:

GeoFence

Created:

28/Nov/22 3:45 PM

Priority:

MediumMedium

Reporter:

Gabriel Roldan

GeoFence-server REST API outputs wrong element names.

Expected (as in 2.21.0):

curl -u admin:geoserver "http://localhost:8080/geoserver/rest/geofence/rules" -H "Accept: application/xml"|xmllint --format -
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Rules count="1">
  <Rule id="1">
    <access>DENY</access>
    <priority>100</priority>
    <roleName>ORG_205738</roleName>
    <workspace>topp</workspace>
  </Rule>
</Rules>

Actual (as in 2.22.0):

curl -u admin:geoserver "http://localhost:8080/geoserver/rest/geofence/rules" -H "Accept: application/xml"|xmllint --format -
<?xml version="1.0"?>
<JaxbRuleList>
  <count>1</count>
  <rules>
    <rules>
      <id>1</id>
      <priority>100</priority>
      <userName/>
      <roleName>ORG_205738</roleName>
      <addressRange/>
      <workspace>topp</workspace>
      <layer/>
      <service/>
      <request/>
      <access>DENY</access>
      <limits/>
      <layerDetails/>
    </rules>
  </rules>
</JaxbRuleList>

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100210-sha1:4037f92)

Atlassian logo