-
Bug
-
Resolution: Fixed
-
Low
-
2.6.1
-
None
-
System Date Wednesday, 28 Nov 2007
System Time 05:39:03
System Favourite Colour Ecru
Java Version 1.5.0_13
Java Vendor Sun Microsystems Inc.
JVM Version 1.0
JVM Vendor Sun Microsystems Inc.
JVM Implementation Version 1.5.0_13-b05
Java Runtime Java(TM) 2 Runtime Environment, Standard Edition
Java VM Java HotSpot(TM) Client VM
User Name confluence
User Timezone America/Toronto
Operating System Linux 2.6.18-8.1.15.el5
OS Architecture i386
Filesystem Encoding UTF-8
Java VM Memory Statistics
Total Memory 254 MB
Free Memory 50 MB
Used Memory 204 MB
Memory Graph 20 % Free
Runtime Information
Database Dialect com.atlassian.hibernate.dialect.MySQLDialect
Database Connection URL jdbc:mysql://localhost/confluence?autoReconnect=true&useUnicode=true&characterEncoding=utf8
Database Driver Name com.mysql.jdbc.Driver
Database Driver Version 5.1
Application Server Apache Tomcat/5.5.23
Servlet Version 2.4
Confluence Home /home/confluence/data
Uptime 9 days, 8 hours, 30 minutes, 29 seconds
Confluence Version 2.6.1
Build Number 916System Date Wednesday, 28 Nov 2007 System Time 05:39:03 System Favourite Colour Ecru Java Version 1.5.0_13 Java Vendor Sun Microsystems Inc. JVM Version 1.0 JVM Vendor Sun Microsystems Inc. JVM Implementation Version 1.5.0_13-b05 Java Runtime Java(TM) 2 Runtime Environment, Standard Edition Java VM Java HotSpot(TM) Client VM User Name confluence User Timezone America/Toronto Operating System Linux 2.6.18-8.1.15.el5 OS Architecture i386 Filesystem Encoding UTF-8 Java VM Memory Statistics Total Memory 254 MB Free Memory 50 MB Used Memory 204 MB Memory Graph 20 % Free Runtime Information Database Dialect com.atlassian.hibernate.dialect.MySQLDialect Database Connection URL jdbc:mysql://localhost/confluence?autoReconnect=true&useUnicode=true&characterEncoding=utf8 Database Driver Name com.mysql.jdbc.Driver Database Driver Version 5.1 Application Server Apache Tomcat/5.5.23 Servlet Version 2.4 Confluence Home /home/confluence/data Uptime 9 days, 8 hours, 30 minutes, 29 seconds Confluence Version 2.6.1 Build Number 916
The documentation in the notation guide for the recently-updated macro specifically states that when a labels parameter is supplied that "content associated with at least one of these will be listed" with emphasis in the documentation on the "at least one" part.
The online documentation page (http://confluence.atlassian.com/display/DOC/Recently+Updated+Content+Macro) for the macro simply describes the labels parameter as "Filter content using labels".
In any case, when the recently-updated macro is used with a labels parameter that refers to a label that does not yet exist (because no page has been authored with the label), the macro falls back to producing a simple list of recently updated content regardless of label. In fact, the results listed are accompanied by a generated message that "These labels don't exist and were ignored: (label names)".
My expectation was that when no pages were found matching "at least one" of the specified labels, that no results would be listed. I had this expectation from the documentation, and also because it made sense to me that if no pages matched the labels that no results would be returned. If I wanted a simple list of recently updated content, I wouldn't have specified a labels parameter.
My use case is that I have pages in the wiki designed to list pages according to specific labels, such as
{recently-updated:labels=foo}where 'foo' is the label. Once one of my users has authored a page with such a label, then the page correctly lists the one and only corresponding page. However, until a page has been authored with the label, the page misleading provides the user with a list of recent pages with that label, when in fact the listing is clearly a listing of the most recently updated pages regardless of label.
I'd love to know if this was a recognized issue, whether the documentation is considered to be in error, and whether there are any workarounds.
Best regards,
Gavin McKenzie.
- relates to
-
CONFSERVER-9302 Blog-Post macro parameter 'match-labels=all' incorrect if a label does not exist
- Closed
-
CONFSERVER-13860 recently-updated-dashboard macro doesn't return an empty result when no pages match the specified label(s)
- Closed