Issue Details (XML | Word | Printable)

Key: SCAFF-207
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Leandro Hermida
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Confluence Extension: Scaffolding Plugin

Strange $webwork.htmlEncode($content.realTitle) pages get create every time I update a space template

Created: 14/Mar/08 02:54 PM   Updated: 25/Feb/09 08:09 AM
Component/s: None
Affects Version/s: 2.7-dr9
Fix Version/s: 3.0.0

Time Tracking:
Not Specified

File Attachments: None
Image Attachments:

1. strange_pages.gif
(25 kB)


 Description  « Hide
Hello,

I have started to use the Scaffolding Plugin and following your tutorial I have created a space template that uses Scaffolding Plugin macros. I suddenly noticed that these strange pages called "$webwork.htmlEncode($content.realTitle)" got magically created at the same level at the Home page in my space (see screenshot strange_pages.gif). I cannot delete these pages it throws a huge Confluence error. It seems to create another one of these strange pages each time I update and save the template which uses the Scaffolding Plugin.

Please help,
Leandro Hermida



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Leandro Hermida added a comment - 14/Mar/08 04:14 PM
Hello again,

Just to add some additional info. I found that these undeleteable "$webwork.htmlEncode($content.realTitle)" pages get created every time I even view one of my space templates with scaffolding macros, I don't need to update and save for a new page to get created. By accident now I have 5 of these which I cannot remove.

Sincerely,
Leandro


David Peterson added a comment - 14/Mar/08 11:30 PM
Hi Leandro,

Could you please post the wiki markup for the templates which seem to be causing problems? I've never seen this particular problem before, and it's very odd that just viewing a template would create a page, since there isn't any code in the regular {xxx-data} macros which does anything like creating a new page.


Leandro Hermida added a comment - 16/Mar/08 05:51 PM
Hi,

I think I figured out the bug. Here is example wiki markup for a space template that causes the bug and creates these strange undeleteable pages:

h2. Scope
{text-data:Scope|type=area|width=100%|height=200px}
This section states the applicability and limits to which the WI shall be used.  For example, "This WI applies to what, where, when, whom, how..."  This section outlines the area, function, group, or personnel to which the WI applies.

This WI applies to [scope].
{text-data}

I believe it is because I accidentally wrote [scope] (instead of [scope]) which is wiki markup for a link to a page that might or might not exist. I mean't for the user to replace that with their real text and not for it to be a link. And because it is inside a Scaffolding Plugin macro it causes this problem. If you make a space template with [] wiki markup in it but not inside a Scaffolding Plugin macro then you don't get these weird pages.

Does this help you?

Leandro


Leandro Hermida added a comment - 16/Mar/08 05:52 PM
Sorry something didn't come out right:

I believe it is because I accidentally wrote [scope] (instead of \\[scope
])

is what it should have said.


David Peterson added a comment - 16/Mar/08 10:37 PM
Thanks for the extra information. We'll look into it for the next release.

David Peterson added a comment - 29/Aug/08 05:03 AM
Hi Leandro,

I can't replicate the problem with Confluence 2.8 and Scaffolding 3.0.0. Could you please test it again when 3.0.0 is released and let me know if it's still a problem?

David


David Andrew Wareham added a comment - 24/Feb/09 07:12 AM
Hi, I also have these strange pages and whilst we are in the process of upgrading to 3.0.2 would like to remove the pages now.

Do you know how I can delete them?


Leandro Hermida added a comment - 25/Feb/09 08:09 AM
Hello,

Sorry that I haven't been able to test the problem. I was on another project for a long time.

As for deleting the pages I could not find any way of deleting them. I used the copy space plugin and copied the entire space except for those pages. This worked great and then I deleted the old space.

Hope this helps,
Leandro