-
Bug
-
Resolution: Fixed
-
High
-
4.1.6, 5.1
Summary:
As you can see in my example, the include macro won't work with page names that includes special characters like the slash / symbol
https://wiki.childno.de/x/IABe
Steps to Reproduce:
- Create page with slash in title
- Create a second page. Add include macro to this page
Workaround:
Removing the slash from the title of the page will solve the problem for any new pages, but you'll still have old pages which had the broken include macro in your instance. You can delete these pages via the following:
You'll need to find out what the contentid of the page is, via this query:
select contentid from content where title = 'TITLE_OF_PAGE_YOU_WANT_TO_DELETE' and prevver is null;
You can then paste the following link into your browser:
<confluence_base_url>/pages/removepage.action?pageId=THE_CONTENTID_FROM_DB_QUERY
If you need to recover the contents of the page, you'll need to remove the include macro from the page. Prior to doing any update or delete on your database please make sure to backup both the filesystem and database. Having done so, run:
update bodycontent set body = regexp_replace(body, '<ac:macro ac:name="include"><ac:default-parameter>.*/.*</ac:default-parameter></ac:macro>', '') where contentid = (select contentid from content where title = 'YOUR_PAGE_TITLE' and prevver is null);
This will find any include macro with a slash in the the included page's title and remove it from your page.
Note: This was written for a Postgres database. If you are using something else, you may need to tweak the query.
- causes
-
CONFSERVER-29660 PDF macro breaks on pages with a colon in the title
- Closed
- duplicates
-
CONFSERVER-32810 Problem with Including Excerpt Macros
- Closed
- incorporates
-
CONFSERVER-30667 The excerpt include is unable to find pages that are named with certain special characters
- Closed
- is blocked by
-
CONFSERVER-3649 Generic link tracking and refactoring support for macros
- Closed
- is duplicated by
-
CONFSERVER-31019 "Include Page Macro" does not allow slashes in "Page to Include" field
- Closed
-
CONFCLOUD-54535 Include macro does not render page with '#' in the table
- Closed
-
CONFCLOUD-54577 Excerpt Include macro fails when page name includes #
- Closed
-
CONFSERVER-27246 Page include macro cannot connect to page titles that have </ > in them
- Closed
-
CONFSERVER-28108 Include page macro of a page that contains some symbols in the page title would cause System Error and inaccessible page
- Closed
-
CONFSERVER-29170 Excerpt Include Macro cannot pull pages with forward slash in the name
- Closed
-
CONFSERVER-33705 Include Page macro will not render pages with "/" in the page title
- Closed
- is superseded by
-
CONFSERVER-35738 NPE - When including the page that has title contains macro syntax "{}"
- Closed
- relates to
-
CONFSERVER-30197 Links to pages that contain turkish character 'İ' break after flushing the cache statistics
- Closed
-
CONFSERVER-30336 Excerpt Include Macro breaks when there are two slash symbol in page title
- Closed
-
CONFSERVER-32176 Macro parameter type confluence-content and attachment are not working properly
- Closed
-
CONFSERVER-27059 Need to escape colons in page names that are used in Includes and Excerpt Includes
- Closed
-
CONFSERVER-29066 Cannot include PDF / Multimedia file that contains Umlauts with MacroBrowser
- Closed
-
CONFSERVER-30579 Referencing an attachment from a page with a slash in its title causes the viewfile macro to fail
- Closed
-
CONFSERVER-30457 getLinkWikiMarkup produces a link that renders to an error when page title contains special characters
- Gathering Impact
-
CSP-112083 Loading...
- mentioned in
-
Page Loading...
-
Wiki Page Loading...
-
Page Loading...
-
Page Loading...
-
Wiki Page Loading...
-
Wiki Page Loading...