|
| Description: |
That's because of a parameter mismatch when calling {{getURL()}} that unfortunately happens to type check.
At [line 1017 in {{getUrlToDeleteSpace}}|https://github.com/xwiki/xwiki-platform/blob/6974685e5ac4c75ecd8b5fed49dca549316a1e17/xwiki-platform-core/xwiki-platform-test/xwiki-platform-test-ui/src/main/java/org/xwiki/test/ui/TestUtils.java#L1017]:
When {{getURL}} is called, {{"WebHome"}} is passed to the {{action}} parameter and the query string is passed to the {{fragment}} parameter: {code :java } /** * @param space the reference of the space to delete * @return the URL that can be used to delete the specified pace * @since 14.1RC1 */ public String getURLToDeleteSpace(EntityReference space) { return getURL(space, "WebHome", "deletespace", "confirm=1&async=false&affectChidlren=on"); } {code} Because this calls [{{getURL(EntityReference reference, String action, String queryString, String fragment)}}|https://github.com/xwiki/xwiki-platform/blob/6974685e5ac4c75ecd8b5fed49dca549316a1e17/xwiki-platform-core/xwiki-platform-test/xwiki-platform-test-ui/src/main/java/org/xwiki/test/ui/TestUtils.java#L1441] instead of what was intended, [{{getURL(EntityReference reference, String action, String queryString)}}|https://github.com/xwiki/xwiki-platform/blob/6974685e5ac4c75ecd8b5fed49dca549316a1e17/xwiki-platform-core/xwiki-platform-test/xwiki-platform-test-ui/src/main/java/org/xwiki/test/ui/TestUtils.java#L1433].
Additionally, {{affectChidlren}} looks wrong, it should probably read {{{}affectChildren{}}}:
The fix probably consists in removing {{"WebHome"}} and fixing {{{}affectChildren{}}} , like this: {code :java } /** * @param space the reference of the space to delete * @return the URL that can be used to delete the specified pace * @since 14.1RC1 */ public String getURLToDeleteSpace(EntityReference space) { return getURL(space, "deletespace", "confirm=1&async=false& affectChidlren affectChildren =on"); } {code} |
|