youngmon/atlassian-qna huggingface dataset:
Chart macro: Error with chart data 'XX' could not be converted to date
Asked by Charles Benkendorf:

Hi all,  
I have a series of MySQL queries in Confluence, and I'm using a time series chart with them.  

I updated some of the code, and now all of the charts are broken, with the error "'2012 May' could not be converted to date". There is one chart that is unbroken, but when I copy the *exact code* , that duplicate code then has a broken chart. It's quite confusing.  

I've posted the code below, along with the exact error. It's supposed to count up new plans sold, and display in a graph by month. Please help!  
Please note: "Event_date" is in format "2012-05-09 10:12:40"  
\<\<\<START ERROR\>\>\>  
**Chart macro: Error with chart data**   
'2012 May' could not be converted to date.  
\<\<\<END ERROR\>\>\>  
\<\<\<START CODE\>\>\> (Note: Some sensitive data scrubbed)  
{chart:type=timeSeries\|timePeriod=Month\|columns=1,2,3,4,5\|dateFormat=yyyy MMMM\|dataOrientation=vertical\|dataDisplay=true\|legend=true\|width=1000\|height=300\|opacity=90}  
{sql-query:dataSource=XX\\\|output=wiki}  
SELECT  
CONCAT(Year, ' ', Month) AS "Month",  
\`Plan 1\`,  
\`Plan 2\`,  
\`Plan 3\`,  
\`All Plans\`  
FROM (

select year(event_date) as "Year", Monthname(event_date) as "Month",  
sum(if(plan_id = 1,1,0)) as "Plan 1",  
sum(if(plan_id = 2,1,0)) as "Plan 2",

sum(if(plan_id = 3,1,0)) as "Plan 3",  
sum(if(plan_id in(1,2,3),1,0)) as "All Plans",

FROM \`XX\`.\`XX\`

where event_type = "create"  
group by 1,2  
order by 1 desc, month(event_date) desc

) formatting  
{sql-query}  
{chart}  
\<\<\<END CODE\>\>\>


Answers:
author: Bob Swift (personal)
body: Perhaps this was just you copying into the question, but don't split dateFormat across 2 lines.

comments: author: Charles Benkendorf
body: Yea the code is "dateFormat=yyyy MMMM"...think the copy \& paste here wrapped it.


author: Bob Swift (personal)
body: Create a chart macro example with with just a row or 2 of regular data copy/pasted from the sql to show a simple version of your problem so it can be reproduced easily.


author: Charles Benkendorf
body: Problem fixed. Your initial hunch was right. There *was* a line break in dateFormat. But, in the Confluence editor, it was appearing as a space, so it wasn't clear there was a line break.

The text editor here picked it up, but I thought that was just text box wrap.
Html code is as a text in Plug-in TestPlan.
Asked by Martin Fetr:

Hi all,

I have problem with plug-in TestPlan (<https://studio.plugins.atlassian.com/wiki/display/CTPP/Home>) in the new Confluence 4.2, where icons are not shown (see figure below). **Html code is as a text**.

![](http://desmond.imageshack.us/Himg39/scaled.php?server=39&filename=screenyl.jpg&res=landing)

I tried an alternative -\> plug-in TestPlan allows to define your own macro ?pass". My macro looks as follow:

```
## @noparams&lt;ac:image&gt;&lt;ri:attachment ri:filename="check.png" /&gt;&lt;/ac:image&gt;
```

but the result is the same. If I use macro ?pass" elsewhere, it works correctly.

See storage format:

```
<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:parameter ac:name="atlassian-macro-output-type">BLOCK</ac:parameter><ac:plain-text-body><![CDATA[{testplan:Complete}^SupplyUCC{testplan}]]></ac:plain-text-body></ac:macro><p>&nbsp;</p><p><ac:macro ac:name="pass" /></p><p>&nbsp;</p>
```

And result:

![](http://desmond.imageshack.us/Himg843/scaled.php?server=843&filename=screen2tx.jpg&res=landing)

Could you, please, advise where the problem is?

Thanks Martin


Answers:
author: David at David Simpson Apps
body: This needs fixing by the plugin developers really...

In the meantime, could you perhaps use javascript to rewrite the code in the table cells? Be very specific with the cells so that you don't rewrite anything else.

For example this might be a starting point:

```
encodedHtml = AJS.$('.someSelector td#someId').html();decodedHtml = encodedHtml.replace(/&amp;lt;/g,"&lt;").replace(/&amp;gt;/g, "&gt;");AJS.$('.someSelector td#someId').html(decodedHtml);
```


author: Annabel Kueh
body: As of Confluence 4.0, Anti-XSS Protection is enabled for plugins by default.

Either:

1. Disable the "Anti XSS Mode" for plugins via the Confluence "Security Configuration".

2. Modify the Velocity template by adding the following to the top of the vm file:
> #disableAntiXss()  


Tags: atlassian-marketplace
Setup Database Failed
Asked by Fabian Unruh:

I'm just about to install confluence the first time on a windows 2003 server.

i installed Postgresql 9.0.7 successfully and created a db called confluence with a new user called admin.

in the setup process i select - direct jdbc connection and then

Driver Class Name: org.postgresql.Driver

Database URL: jdbc:postgresql://localhost:5432/confluence

Username: admin

this results in the following error:

Configuring the database failed. Couldnt create database schema.

org.postgresql.util.PSQLException: FATAL: Passwort-Authentifizierung f?r Benutzer admin fehlgeschlagen


Answers:
author: Radu Dumitriu
body: I assume that this means: "Password authentication failed for user admin".

So:

1) Either your password is incorrect

2) Or postgres is actively denying auth with username / password on the server side.

You need to check you pg_hba.conf file <http://www.postgresql.org/docs/8.4/static/auth-pg-hba-conf.html> and see if you allow users to connect on your postgres instance.


author: Fabian Unruh
body: Thanks for your awnser... i reinstalled postgresql and authenticated only postgre as Admin. And this worked!

Best,

Fabian


author: Bj?rn Anger
body: Hi,

i got an similar error. In my case it's "FATAL: Ident-Authentifizierung ...". Maybe it's different because of the translation to german. But its seems to be an other error.


Tags: administration

database

postgres
Is it possible to prevent dashboard access by user
Asked by Harvey Moore:

We want to open our Confluence instance to our service network. They are not our employees, and as such we want them to have a very limited access. We don't want them landing on the dashboard (which is easily solved) and we don't want them to be able to access it.

The plan is that when they log on, they land on the "Service Network" space, which is the only space that they will have access to. At the moment they can follow the bread crumbs and get back to the dashboard where they will get the activity stream and team calendars, etc... - which we don't want them to.


Answers:
author: Remo Siegwart
body: Just stumbled upon this one. I'm the author of the [Custom Dashboards](https://marketplace.atlassian.com/plugins/com.simplenia.confluence.plugins.customdashboards) plugin, which allows you to limit access to the global dashboard of Confluence by defining filter rules for certain users and groups. So you would create a filter rule, which redirects all members of group "service-network" directly to the home page of the "Service Network" space, whenever they try to access the dashboard. You may want to give it a try.

Hope this helps.


author: JamieA
body: I think the easiest way would be to use javascript to hide the Dashboard links, and maybe javascript to redirect the user back to their space if they enter the url to the dashboard directly. There is a similar question about jira here, with some example code: [https://answers.atlassian.com/questions/29024/dashboard-managing-permissions-for-groups](/questions/29024/dashboard-managing-permissions-for-groups)


author: Renjith Pillai
body: But if the spaces have right permissions, the activity stream indeed shows only those data which the user has access to.

Team calendars, I am not sure.

comments: author: Harvey Moore
body: Team calendars is the main problem, but the dashboard adds confusion when it's not required in this case. As such, it would be nice to just restrict a group of users to one space.


Tags: access

dashboard

permission

user
How report on selected list-data items?
Asked by Manuele B:

Hi, I'm very new in using confluence

i have two group of pages: dealers and DMS. Each dms has a page in which he can associate a dealer using a data-list containing all the dealers pages.

```
|| *Dealers Primary Codes - Companies Names* ||{table-data:dmsDealerMatching}| {list-data:codeDealerList}{content-options:parent=dealersSpace:dealerGroupPage}{content-options}{list-data} |{table-data}
```

In each dealer page, I'd like to have listed all the DMS that have this dealer associated.

I tried many filtering, but without success.

```
{report-block}{content-reporter:spaces=dmsDe|types=page|labels=dealer_list}{text-sort:content:title}{collection-filter:data:codeDealerList}{text-filter:page:title|include=0110.*} {collection-filter}{content-reporter}
{report-body} {report-info:content:title|link=true}{report-body}
{report-block}
```

I don't know if the collection-filter is appropriate in this case, and I'd also like to know how to filter specifically on the dealer page name: now I've put 0110.\* which will match with the page where I'm testing, but I'd like this code to be equal for all dealer pages.

thanks

Manuele


Answers:
author: James Lyons
body: Getting data from multiple table-data macros is fairly easy, if that's what you want to do...

Isolate the pages with a local-reporter (you need a sort macro with this, sort by one of the values in the table)

Wrap that in an expanding reporter

Wrap that in a grouping reporter (you can use grouping stats here also).

I'm on 4 now so can't grab my old reports, try community.customware.net


Tags: list

report
File link macro - anything out there?
Asked by childnode:

Does anyone know if there is a "file link" macro out there.

Would like to write something like:

```
{fileshare}K:\Customer\Specification\a100.doc{fileshare}
```

getting a clickable link (for Windows Users).

If any other samba / SMB / WindowsShare is given, it should be reformatted for the clients system:

```
{fileshare}\\Servername\Customer\Specification\a100.doc{fileshare}
```

will resolve to

```
smb://Servername/Customer/Specification/a100.doc
```

for any Unix (Mac, Linux, etc.)

Didn't find anything on [https://plugins.atlassian.com/plugins/app/confluence/featured?label=Macros\&cost=all](https://plugins.atlassian.com/plugins/app/confluence/featured?label=Macros&cost=all)


Answers:
author: RianA
body: Hi,

Unfortunately it's not possible to link Confluence to the file system. For more information please refer to the following [knowledge base documentation](https://confluence.atlassian.com/display/CONFKB/Can%27t+Link+to+Local+Files+from+within+Confluence). The simplest workaround is to attach it to Confluence and link it, or set up a simple web server that can host the file.

Hope this information helps. Cheers.  
Josua


author: childnode
body: Also discussed in <http://stackoverflow.com/questions/2608652/creating-link-to-file-location-on-network-in-confluence>


author: childnode
body: This someway blocked by

* [Allow URI links CONF-5374](https://jira.atlassian.com/browse/CONF-5374 "Allow URI links ")
* [Enable skype "callto://" links in Confluence 4 CONF-23632](https://jira.atlassian.com/browse/)
* [Entering "\\\\" in a link makes it uneditable CONF-26166](https://jira.atlassian.com/browse/CONF-26166%20)


Tags: app

macro
Cannot edit link to new attachments while in the same editor session
Asked by Diane Sexton:

The user has noticed that they cannot edit a link to a new attachment multiple times within the same edit session.

Steps to reproduce:

1. open a page

2. edit the page

3. Enter some text and then link the text to an attachment. In my case, I upload the attachment at this point. Do not click in the list of attachments, just click Save.

4. Return to editor : the text appears linked.

5. Click the linked (underlined) text

6. The Go to Link / Edit / Unlink popup does not appear.

If you save the page and then open editor again, the popup appears just fine.

If you Edit from the popup, then upload and link to a new attachment, without clicking in the list of attachments, steps 4-6 occur just the same (no popup)

If you Edit from the popup, then select a different attachment from the existing list (i.e. don't upload a new attachment), the popup does still appear at Step 6.

If you Edit from the popup, then upload a new attachment, then click in the list to select a different attachment, then select the new attachment, steps 4-6 occur just the same (no popup).

If you Edit from the popup, then upload a new attachment, then click in the list to select a different attachment, the popup does still appear at Step 6.

It looks like something to do with new attachments in the same editor session.


Answers:
author: Diane Sexton
body: The Atlassian support team has identified it as a bug, though it's possible that it was introduced as a result of design (as per Josh's comment).

See [CONF-25452](https://jira.atlassian.com/browse/CONF-25452 "CONF-25452 at JAC")


author: Joerg Bencke
body: Hi Diane,   
I would think that relates to the "save-state" of the editing session. There are other macros, that do not work correctly with "new pages", when you call the "preview" function. They only work after you saved the page and re-edit it.

So it sounds more like a feature "by design" than a bug.

Regards, Josh
Card / Deck Macro in IE9
Asked by Michael Roff:

I have found that when using card / decks in Confluence through IE9, the card tabs do not display properly. The title comes up which can be selected, but it doesn't show it in a tab style as expected.

This seems to be a specific IE9 issue.

Has anyone else seen this?

Does anyone use card / decks on IE9 without any issues? I would be nice to know if this is my setup or a global issue.

Thanks, Mick


Answers:
author: David at David Simpson Apps
body: Which version of Confluence? Is IE9 supported for that version?


author: Michael Roff
body: We are running Conf v3.5.13. No, I don't think IE9 is supported in Confluence v3 - which is a bit crazy if you ask me ... but who's asking :)

I can appreciate that tabs don't work in IE9 when running Confluence v3.X, but I wanted to make sure this is not MY problem, but a problem with IE9 in general.

Can anyone confirm?

Thanks, Mick


Tags: macro
Unable to mount webdav network folder
Asked by Heshan Manamperi:

HI,

I have installed webdav plug-in to my confluence instance. But I'm unable to access netwrok folder. (\\\\ipaddress\\webdav).

It said no such folder.

Hesh


Answers:
author: Heiko Franssen
body: Thanks, Christian, you solved my problem finally after I had spent hours w/o success to find out, why it was not possible to access the content via WebDav.

It works like a charme now.


author: Davin Studer
body: I wa having the same issue getting \\\\server\\webdav to work. Instead I tried mounting the below as a drive letter and it seems to work.

\\\\\<server\>\\DavWWWRoot\\plugins\\servlet\\confluence\\default


author: Christian Czaia _Decadis AG_
body: Hey check those troubleshooting hints:

<https://studio.plugins.atlassian.com/wiki/display/WBDV/WebDAV+Client+Setup>

I've been doing the same just yesterday in a Win 7 environment. Changed the registry setting, did a reboot and added sth. like the line below as the address of a network drive! ( \\\\host\\webdav wouldn't work, neither did adding the line below as a network folder.

```
http://my.confluence.server/plugins/servlet/confluence/default/Global/
```

```
 
```

```
Cheers Christian
```
confluence: After 3.1 to 4.2.1 upgrade: Large documents have large "wiki markup" section, document did not migrate
Asked by samjones6:

Migrated from 3.1 to 3.5 to 4.2.1 today

What do I do about large docs that do not migrate to new editor?

Large chunks of wiki markup....

Thx!


Answers:
author: samjones6
body: The solution is here:

[https://answers.atlassian.com/questions/53503/confluence-after-3-1-to-4-2-1-upgrade-toc-macro-does-not-operate-properly](/questions/53503/confluence-after-3-1-to-4-2-1-upgrade-toc-macro-does-not-operate-properly)

Re attempt migration... failing that, search the wiki code for the { character and clean it up, then it saves properly to v4 format.
PDF Export question: How to modify font in a {code} block?
Asked by samjones6:

After upgrading from 3.1 to 3.5 to 4.2, our export to PDF has an oddity: The font in {code} blocks is too laaarrrrgggeee.

It appears the css class is: div class="codeContent panelContent"

What exactly would the css entry be in confluence admin to control/modify this?

Thanks!


Answers:
author: David at David Simpson Apps
body: Edit the PDF stylesheet as documented here:

<http://confluence.atlassian.com/display/DOC/Customising+Exports+to+PDF#CustomisingExportstoPDF-CustomisingthePDFStylesheet>

For

```
&lt;div class="codeContent panelContent"&gt;...&lt;/div&gt;
```

Use the selector

```
div.codeContent.panelContent {  font-size: 8px; /* or similar */}
```

You may need to specify an element nested inside there to get it working nicely though, e.g.

```
div.codeContent.panelContent div.someClass {  font-size: 8px; /* or similar */}
```
Global/Space Activity Statistics and Graphs Disappeared
Asked by Doods Perea:

I have long enabled the Confluence Usage Stats plugin and our team liked viewing the Global and Space Activity statistics. On May 6 however, all data disappeared. I have not done any upgrade or any major changes to the system.

I did a re-index of the site on May 7 and the Activity page began showing graphs and statistics again. However, we are unable to see records from May 6 and earlier.

What could have caused the disappearance of these records?


Answers:
author: Remo Siegwart
body: Not sure what could have caused the disappearence of your usage data. Just wanted to let you know that the data is stored in its own Lucene index. The index is located in:

```
{confluence-data-directory}/index/plugin/usage
```

Maybe you could try to restore a backed up version of this folder to access your records from May 6 and earlier again.

Hope this helps

comments: author: Doods Perea
body: Thanks Remo. There was indeed a problem with the index file. We stopped using the Global/Space Activity Statistics and instead rely on other reporting tools available via plugins/macros.

Kind regards,

Doods


author: Devin Pearman
body: I'm curious what other reporting tools you're referring to that are available?
confluence: After 3.1 to 4.2.1 upgrade: Large documents have large "wiki markup" section, document did not migrate
Asked by samjones6:

Migrated from 3.1 to 3.5 to 4.2.1 today

What do I do about large docs that do not migrate to new editor?

Large chunks of wiki markup....

Thx!


Answers:
author: tousifs
body: Hi samjones6 ,

<https://confluence.atlassian.com/display/DOC/Migration+from+Wiki+Markup+to+XHTML-Based+Storage+Format>

1) Storage format got to be change to xhtml.

2) you need to upgrade your macros \[code \] to xhtml.

<https://developer.atlassian.com/display/CONFDEV/Upgrading+and+Migrating+an+Existing+Confluence+Macro+to+4.0>

3) What kind of implementation you have done for pages based on that it will give you xml or **"ac"** tags related errors.

xhtml combines **xml** with **cDATA** and **html**.

you**need to update your plugins** and then **upgrade data**.

thank's.

tousif shaikh.


author: LuizA
body: Hello There,

In this case would be recommended to re-run the migration by the following procedure:

<https://confluence.atlassian.com/display/DOC/Migration+from+Wiki+Markup+to+XHTML-Based+Storage+Format#MigrationfromWikiMarkuptoXHTML-BasedStorageFormat-Re-runningthemigration%E2%80%93forcontentthatcompletelyfailedthemigration>

Hope this helps.

Best Regards,

LJ.
confluence: After 3.1 to 4.2.1 upgrade: TOC macro does not operate properly
Asked by samjones6:

We just upgraded from 3.1 to 3.5 to 4.2.1

This affects all my pages with TOC macro. The pages are long, with 25-50 TOC entries.

Issue: TOC appears visually, but either none of the entries are clickable, or only the first 2-4 entries are clickable.

This affects the TOC in view mode in browser and when the page is exported to pdf, the pdf TOC has the exact same behavior.

I tried removing the toc macro and re-inserting it via Insert \| Macro.

Additional:

It appears the areas of TOC that are not clickable are in a huge "wiki markup" section of this document. Appears this section did not migrate to new format, but works fine as wiki markup, and looks good.

Halp and thank you!!


Answers:
author: Septa Cahyadiputra
body: Heya,

Try the following steps to force migration of your content

1. [Re-run migration](http://confluence.atlassian.com/display/DOC/Migration+from+Wiki+Markup+to+XHTML-Based+Storage+Format#MigrationfromWikiMarkuptoXHTML-BasedStorageFormat-Re-runningMigration)
2. Ensure that all plugins is compatible and updated to the latest release version
3. [Re-attempt migration](http://confluence.atlassian.com/display/DOC/Migration+from+Wiki+Markup+to+XHTML-Based+Storage+Format#MigrationfromWikiMarkuptoXHTML-BasedStorageFormat-Re-attemptMigration)
4. Double check if the wiki-markup content has been migrated

If the above steps still failed, we highly recommend you to create a support ticket so that we could analyze it deeper on where is the failed migratin occurred.

If you would like to investigate it, you could try the above steps again with the following class configured at DEBUG
> com.atlassian.confluence.content.render.xhtml.migration

under your Confluence [logging \& profiling](http://confluence.atlassian.com/display/DOC/Configuring+Logging) page.

Hope it helps.

Cheers,

Septa Cahyadiputra

comments: author: samjones6
body: This really helped! I fixed the big problem page in front of me....

However, when I re attempt, it tells me 9 pages did not migrate, but it does not tell me the names of the pages! I can fix them by hand.... if I know which ones they are...
Editing Dashboard Layout
Asked by Karie Kelly:

I may have overlooked something, but it does not appear that an OnDemand client can edit the wiki dashboard - is this correct?

We really wanted to create a dashboard that already identified key spaces and projects, quick links, and blog entries from different space...but, thus far, I cannot see where we have that capability.

Ideas?


Answers:
author: RianA
body: Hi Kalynn,

Yes, in OnDemand, you can not customize the layout of the default theme. There are certain of restriction on this, for more information please refer to the following.  
\* <http://confluence.atlassian.com/display/AOD/Restricted+Functions+in+Atlassian+OnDemand>

If you want some further Customization perhaps you can run Confluence on your own server? How does that sound?

Cheers,  
Josua


Tags: cloud

confluence-cloud
Problems with permissions confluence-users
Asked by Pedro Sousa:

I have a space that has opened a branch with permission to the group confluence-users (where they can only view and comment) and another branch visible only to a specific group. The problem that happens is that people who are not part of the specified group can not access the homepage of the wiki. What is the problem that is occurring? For users to confluence-users consgeuem not access the home space, and this space allows access. This problem occurs already for the second time


Answers:
author: Ramiro Pointis
body: Have you checked in the Global Permissions if the users that can't access are in any group that are assigned to the 'Can Use' permission?

Here you have an explanation of the Global Permissions:

<http://confluence.atlassian.com/display/DOC/Global+Permissions+Overview>

comments: author: Pedro Sousa
body: This set for the group confluence-users can use.

<br />


author: Pedro Sousa
body: The problem is that all content should be visible to the corporate group confluence-users, but within the content space is reserved only for corporate and group. The corporate content is not showing up for people who are in confluence-users


author: Ramiro Pointis
body: Ok, any user that isn't on the confluence-users won't be able to use because they aren't assigned to the 'Can Use' permission.

So what you can do is too add the other users to a new group and add that group to the permission.

Or add those users to the confluence-users group.


Tags: confluence-administration