diff --git a/CHANGELOG.md b/CHANGELOG.md
index 06369202..fe0369e4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -104,6 +104,8 @@ Developers may need to change their code
### Corrected Bugs
+* [RPC get-conf method returned some content not specified by select filter](https://github.com/clicon/clixon/issues/281)
+ * Bug introduced when upgrading of list pagination
* [type leafref in type union ineffective](https://github.com/clicon/clixon/issues/277)
* Leafrefs and identityrefs in unions were not validated correctly
* [cl:autocli-op hide has no effect in yang submodule](https://github.com/clicon/clixon/issues/282)
diff --git a/apps/backend/backend_get.c b/apps/backend/backend_get.c
index c24b44ec..e93cb065 100644
--- a/apps/backend/backend_get.c
+++ b/apps/backend/backend_get.c
@@ -318,12 +318,6 @@ filter_xpath_again(clicon_handle h,
/* reset flag */
if (xml_apply(xret, CX_ELMNT, (xml_applyfn_t*)xml_flag_reset, (void*)XML_FLAG_MARK) < 0)
goto done;
- /* Add default global values */
- if (xml_global_defaults(h, xret, nsc, xpath, yspec, 0) < 0)
- goto done;
- /* Add default recursive values */
- if (xml_default_recurse(xret, 0) < 0)
- goto done;
retval = 0;
done:
return retval;
diff --git a/test/test_pagination_draft.sh b/test/test_pagination_draft.sh
index c79f08e8..cd42e46b 100755
--- a/test/test_pagination_draft.sh
+++ b/test/test_pagination_draft.sh
@@ -321,7 +321,7 @@ function testlimit()
if [ -z "$list" ]; then
reply="]]>]]>$"
else
- reply="alicepublic$xmllist]]>]]>$"
+ reply="alice$xmllist]]>]]>$"
fi
new "limit=$limit offset=$offset NETCONF get-config"
expecteof "$clixon_netconf -qf $cfg" 0 "$DEFAULTHELLO$limitxmlstr$offsetxmlstr]]>]]>" "$reply"
@@ -329,7 +329,7 @@ function testlimit()
if [ -z "$list" ]; then
reply="]]>]]>$"
else
- reply="alicepublic$xmllist]]>]]>$"
+ reply="alice$xmllist]]>]]>$"
fi
new "limit=$limit offset=$offset NETCONF get"
expecteof "$clixon_netconf -qf $cfg" 0 "$DEFAULTHELLO$limitxmlstr$offsetxmlstr]]>]]>" "$reply"
diff --git a/test/test_pagination_state.sh b/test/test_pagination_state.sh
index 960c5496..0ef950f7 100755
--- a/test/test_pagination_state.sh
+++ b/test/test_pagination_state.sh
@@ -135,7 +135,7 @@ xpath="$xpath0/es:numbers"
testrun_start $xpath
new "NETCONF get leaf-list member/numbers 0-10 alice"
-expecteof "$clixon_netconf -qf $cfg" 0 "$DEFAULTHELLO010]]>]]>" "^alicepublic345678]]>]]>$"
+expecteof "$clixon_netconf -qf $cfg" 0 "$DEFAULTHELLO010]]>]]>" "^alice345678]]>]]>$"
# negative
new "NETCONF get container, expect fail"
@@ -143,7 +143,7 @@ expecteof "$clixon_netconf -qf $cfg" 0 "$DEFAULTHELLO010]]>]]>" "^bobpublic131415161718]]>]]>$"
+expecteof "$clixon_netconf -qf $cfg" 0 "$DEFAULTHELLO010]]>]]>" "^bob131415161718]]>]]>$"
testrun_stop
@@ -152,7 +152,7 @@ xpath="/es:members/es:member/es:stats/es:numbers"
testrun_start $xpath
new "NETCONF get leaf-list member/numbers all"
-expecteof "$clixon_netconf -qf $cfg" 0 "$DEFAULTHELLO010]]>]]>" "^alicepublic345678bobpublic13141516]]>]]>$"
+expecteof "$clixon_netconf -qf $cfg" 0 "$DEFAULTHELLO010]]>]]>" "^alice345678bob13141516]]>]]>$"
testrun_stop