Issue Details (XML | Word | Printable)

Key: LINK-84
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: David Peterson
Reporter: Michael Seminaro
Votes: 6
Watchers: 6
Operations

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

add-page template giving permission error for users that are not confluence admins

Created: 19/Jun/07 06:47 PM   Updated: 27/Jan/08 04:22 AM
Component/s: {add-page}
Affects Version/s: 2.3.2, 2.3.3, 2.4
Fix Version/s: 2.4.1

Time Tracking:
Not Specified

Environment:
System Information
System Date Tuesday, 19 Jun 2007
System Time 11:38:30
System Favourite Colour Myrtle
Java Version 1.5.0_06
Java Vendor Sun Microsystems Inc.
JVM Version 1.0
JVM Vendor Sun Microsystems Inc.
JVM Implementation Version 1.5.0_06-b05
Java Runtime Java(TM) 2 Runtime Environment, Standard Edition
Java VM Java HotSpot(TM) Server VM
User Name root
User Timezone US/Mountain
Operating System SunOS 5.10
OS Architecture sparc
Filesystem Encoding ISO646-US

Java VM Memory Statistics
Total Memory 241 MB
Free Memory 79 MB
Used Memory 162 MB
Memory Graph
[Used Memory (67 %)] [Free Memory (33 %)]
33 % Free

Runtime Information
Database Dialect net.sf.hibernate.dialect.PostgreSQLDialect
Database Connection URL jdbc:postgresql://localhost:5432/confluence
Database Driver Name org.postgresql.Driver
Database Driver Version 8.1
Application Server Apache Tomcat/5.5.15
Servlet Version 2.4
Confluence Home /export1/confluence1
Uptime 19 hours, 34 minutes
Confluence Version 2.5.4
Build Number 809



 Description  « Hide
We upgraded our confluence instance this weekend to 2.5.4 and have had issues using the linking plugin since the upgrade. Specifics steps to re-create our problem:
  1. Create a page with the add-page template. Our exact markup is:
    {add-page:template=Project Template|live=true|parent=Projects}Add New Project{add-page}
  2. Click the link on the created page. This takes you to a page that prompts for a title.
  3. Fill in the title and click the "save" button.
  4. The resulting page displays the error "You are not permitted to perform this operation."

Note: this works if the user is in the confluence-admin group, but you get the error above otherwise.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Michael Seminaro added a comment - 10/Jul/07 05:27 PM
Is this a known issue? Are there any plans to fix this in an upcoming release? A quick comment on the status to let me know that the issue has been read and is understood would be appreciated.

Thanks.


David Peterson added a comment - 10/Jul/07 09:08 PM
Yeah, I've confirmed this is a problem in 2.5. Not exactly sure what caused it though. A quick check of the source code revealed nothing. I'll get back to you soon, hopefully.

François Nonnenmacher added a comment - 13/Jul/07 04:26 PM
Same problem here:

System Information
System Date Friday, 13 Jul 2007
System Time 17:24:28
System Favourite Colour Myrtle
Java Version 1.6.0_02
Java Vendor Sun Microsystems Inc.
JVM Version 1.0
JVM Vendor Sun Microsystems Inc.
JVM Implementation Version 1.6.0_02-b05
Java Runtime Java(TM) SE Runtime Environment
Java VM Java HotSpot(TM) Client VM
User Name confluence
User Timezone Europe/Paris
Operating System Linux 2.6.17.4dedibox_r5
OS Architecture i386
Filesystem Encoding ANSI_X3.4-1968

Java VM Memory Statistics
Total Memory 220 MB
Free Memory 43 MB
Used Memory 177 MB
Memory Graph
[Used Memory (80 %)] [Free Memory (20 %)]
20 % Free

Runtime Information
Database Dialect net.sf.hibernate.dialect.PostgreSQLDialect
Database Connection URL jdbc:postgresql://localhost:5432/confluence
Database Driver Name org.postgresql.Driver
Database Driver Version 8.1
Application Server Apache Tomcat/5.5.15
Servlet Version 2.4
Confluence Home /var/opt/confluence
Uptime 4 days, 20 hours, 11 minutes, 7 seconds
Confluence Version 2.5.4
Build Number 809


David Goldstein added a comment - 16/Jul/07 03:58 PM
This is also a problem with {link-page}. We're using 2.5.4.

Here's the specific use we have problems with--

{link-page:.About|parent=My Parent|template=About Person|live=true}Person About Box{link-page}

Same issue as above – goes to the page creation page, but clicking on Add results in "not permitted" for anyone but confluence-administrators.

Appears the problem is with the "live" part of the macro, because looks like there's a workaround...

1) create another global template – e.g. "Live About Person" that contains the "live" part...

{live-template:About Person}

2) then use "live=false" in {link-page} instead of "live=true", but switch to using the new template with the "live" part embedded in the template itself, e.g.

{link-page:.About|parent=My Parent|template=Live About Person|live=false}Person About Box{link-page}

Haven't verified this works with {add-page} but I'm guessing it will.


David Peterson added a comment - 16/Jul/07 05:03 PM
Yeah, this will effect both {add-page} and {link-page}, and is only the 'live' option. It seems Atlassian has changed what some permissions mean, and I need to figure out what the replacement is...

David Peterson added a comment - 25/Jul/07 02:05 AM
You should be able to add pages in Confluence 2.5 now.

François Nonnenmacher added a comment - 25/Jul/07 09:05 AM
Hi David, I've upgraded the Linking Plugin to v2.3.3, but I still see the same problem: using add-page with a live template isn't permitted to non admin users. Same config as my previous comment.

David Peterson added a comment - 25/Jul/07 11:45 AM
Yeah, you're correct. I suspect there is a problem with how it is connecting with the Scaffolding plugin. I'll need to do some more rigorous testing to figure out what the issue is here...

François Nonnenmacher added a comment - 25/Jul/07 11:52 AM
FWIW, we're using v2.3-dr5 for the Scaffolding plugin (latest is dr6).

Jeff Heinen added a comment - 30/Jul/07 05:25 PM
As voting is not available for resolved issues, I am also having this problem as well.

And if it helps, the error shown is the exact same one that was show to non-admins attempting to create pages when I attempted the fix for SCAFF-125.


System Information
System Date Monday, 30 Jul 2007
System Time 09:25:04
System Favourite Colour Myrtle
Java Version 1.5.0_07
Java Vendor Sun Microsystems Inc.
JVM Version 1.0
JVM Vendor Sun Microsystems Inc.
JVM Implementation Version 1.5.0_07-b03
Java Runtime Java(TM) 2 Runtime Environment, Standard Edition
Java VM Java HotSpot(TM) 64-Bit Server VM
User Name jira
User Timezone PST8PDT
Operating System SunOS 5.10
OS Architecture amd64
Filesystem Encoding ISO646-US

Java VM Memory Statistics
Total Memory 1183 MB
Free Memory 525 MB
Used Memory 658 MB
Memory Graph
[Used Memory (56 %)] [Free Memory (44 %)]
44 % Free

Runtime Information
Database Dialect com.atlassian.hibernate.dialect.MySQLDialect
Database Connection URL jdbc:mysql://localhost/confluence_250?autoReconnect=true&useUnicode=true&characterEncoding=utf8
Database Driver Name com.mysql.jdbc.Driver
Database Driver Version 5.0
Application Server Apache Tomcat/5.5.20
Servlet Version 2.4
Confluence Home /export/home/confluence
Uptime 2 days, 22 hours, 22 minutes, 10 seconds
Confluence Version 2.5.4
Build Number 809


David Peterson added a comment - 30/Jul/07 05:30 PM
Sorry - meant to reopen this issue earlier, since I have confirmed it is not fixed. However, I believe it is an actually issue with Scaffolding not Linking. I'll update this issue also when I can confirm what the root of the problem is.

Michael Seminaro added a comment - 16/Aug/07 03:27 PM
David, any update? This is a pretty big bug for us as we have used the linking plugin extensively in our environment to allow people to easily create pages using live templates. I realize you are working on a lot at once, but I'm hoping that perhaps you can give this issue some priority.

Keith Brophy added a comment - 17/Aug/07 01:47 PM
Encountered this issue with Confluence 2.5.6 using the add-page macro and a live scaffolding template.

It appears as though a check for the ADMINSTRATECONFLUENCE permission is being made when the user attempts to save the page.


Keith Brophy added a comment - 20/Aug/07 02:43 PM
As a workaround, I have removed the 'live=true' parameter.

All going well and a fix becomes available for this issue, I would like to switch back to live templates. Is there any method of converting a non-live templatized page to being a live one?

I understand that Confluence simply makes a copy of the template and pastes it in the page - so maybe there is no data there to link back to the original template.


David Peterson added a comment - 28/Aug/07 03:55 AM
Ok, I've finally tracked down what the problem was - turns out a field name has changed sometime between Confluence 2.5.1 and 2.5.4. This will be fixed in the next release.

Keith Brophy added a comment - 31/Aug/07 09:52 AM
Awesome David - the Linking Plugin with live templates works perfectly now!

Thanks for your work on this.


Daniel A. Munz added a comment - 27/Jan/08 04:22 AM
I just want to say that we've been experiencing this bug for the past 8 hours and it's been hell, and this page saved my life. So, woohoo confluence community!