youngmon/atlassian-qna huggingface dataset:
I have done the resolution and still have the same issue
Asked by Mustafa Abusalah:

*This question is in reference to Atlassian Documentation: [User directory synchronization fails with NullPointerException at HibernateConfluenceUserDao.rename](https://confluence.atlassian.com/pages/viewpage.action?pageId=794500074)*

Ask your question here...


Answers:
author: Nic Brough -Adaptavist-
body: What, exactly, does the log say now? What is the output from the SQL query?

comments: author: Mustafa Abusalah
body: The query returned zero records. The log returnes the same error


author: Nic Brough -Adaptavist-
body: Ok, this needs to go to Atlassian support really - you've done everything right and it's a bug in their stuff.


author: Mustafa Abusalah
body: This is exactly what I've done. Thank you


author: Avinash Singh
body: The resolution says to run the sql query

```
SELECT * FROM user_mapping WHERE LOWER(username) != lower_username OR lower_username IS NULL;
```

and Fix the mismatch accordingly, and the issue should be resolved. What does this mean? How do you fix the mismatch? The entries cannot just be deleted as there are other tables referencing it.


author: Nic Brough -Adaptavist-
body: Have you followed the rest of the instructions?


author: Avinash Singh
body: sorry but where is the rest of the instructions all I see is this

<https://confluence.atlassian.com/confkb/user-directory-synchronization-fails-with-nullpointerexception-at-hibernateconfluenceuserdao-rename-794500074.html>


author: Nic Brough -Adaptavist-
body: You need to update the lines the SQL finds and make them the same.
how can i directly insert another website images into my wiki
Asked by james zhu:

Hello:

I am doing some doc in chinese based on the open souce wiki from <https://wiki.asterisk.org/wiki/display/AST/Bridges>, but some images from the wiki has no image address or link. I have to save it and upload to my wiki, it waste my time. how could I directly to do that?

thanks!


Answers:
author: Meck
body: James,

The only way I know to do it more fast is using copy and paste.

If you can't copy and paste then you should use the snipping tool of Windows. :/

But this is more fast because you don't need save the images.

Regards.


author: Milo Test
body: If the images are on a web server, you can insert them directly:

image2016-6-1 9:38:49.png  
[](https://community.atlassian.com/t5/Confluence-questions/how-can-i-directly-insert-another-website-images-into-my-wiki/qaq-p/234874?attachment-id=1757){#link_1186d30e06c97c}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/39843/1/image2016-6-1%209%3A38%3A49.png){#display_1186d30e06c97c_0}

comments: author: Meck
body: Milo,

"the wiki has no image address or link" james zhu.

He haven't the image address.


Tags: cloud

confluence-cloud
How to restore Confluence?
Asked by Ian White:

*This question is in reference to Atlassian Documentation: [Restoring a Space](https://confluence.atlassian.com/pages/viewpage.action?pageId=152036)*

The site was **backed up** , so apparently that means I can't import, but need to **restore.** The Kb article Restoring a Place references "Backup and Restore" which are not options in Confluence, and other Kb articles are recursive loops, so it's not clear how do do this! Backup is 300MB compressed and directory structure of backup is below

Screen Shot 2016-05-31 at 17.29.56.png  
[](https://community.atlassian.com/t5/Confluence-questions/How-to-restore-Confluence/qaq-p/21676?attachment-id=140){#link_1186d32feb48fd}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/3598/1/Screen%20Shot%202016-05-31%20at%2017.29.56.png){#display_1186d32feb48fd_0}


Answers:
author: Athirah Zolkefli
body: Hi Ian,

I believe the page you're referencing ([Restoring a Space](https://confluence.atlassian.com/pages/viewpage.action?pageId=152036)) is meant for Confluence Server backups, not Confluence Cloud. This explains why the "Backup and Restore" section is inapplicable to you.

If you want to restore the site backup to Confluence Server, please refer to this page for instructions: [Migrate from Confluence Cloud to Server](https://confluence.atlassian.com/doc/migrate-from-confluence-cloud-to-server-298979321.html).

If you want to restore the site backup to another Confluence Cloud site, please refer to this page for instructions: [Migrate from Confluence Server to Cloud](https://confluence.atlassian.com/confcloud/migrate-from-confluence-server-to-cloud-724765529.html#MigratefromConfluenceServertoCloud-Step5.ImportthesitecontentintoyourConfluenceCloudsite) (only follow step 5).

Hope this is useful to you. :smile: Let me know how it goes!

Regards,  
Athirah Zolkefli


Tags: cloud

confluence-cloud

documentation
How do I import a document with comments from google docs into Confluence?
Asked by greenguzzi:


Answers:
author: Duncan Lock
body: I can't find a way to do this. you can export the Google Doc to Word/docx format - which preserves the comments - but then when you import *that* into confluence, the comments get munged into the text.

If you embed the Google Doc into a confluence page using the [Confluence Google Drive plugin](https://marketplace.atlassian.com/plugins/confluence-google-drive/cloud/overview), it doesn't show the comments.


Tags: moderators
Blog Post Macro - restrict authors
Asked by Erin Brusnahan:

I'm trying to use the Blog Post Macro.

The documentation from Atlassian states "To include content from one user, but exclude from another user:` jsmith,!jbrown`". However, the field will only accept full usernames -- if I enter "jsmith" I am given the option to select "James Smith". Further, the field clears all content that is *not* a full username, so once I have neglected to select "James Smith" and the field has lost focus, it's cleared. This also applies to attempting to add the exclamation point -- neither "!jbrown" nor selecting "James Brown" and adding an exclamation point before it work.

Is there another way to exclude content from a user?


Answers:
author: L
body: An easy work around is using the option **Restrict to these Labels,** and only blogs that have a particular label will load in the feed.

comments: author: Erin Brusnahan
body: A good workaround if I wanted to have users in our company maintain separate labels based on author. I'd really just like the feature to work as described.


Tags: blog

macro
Can't create a new Space
Asked by Alexei Budsan:

*This question is in reference to Atlassian Documentation: [Assign Space Permissions](https://confluence.atlassian.com/pages/viewpage.action?pageId=139460)*

<br />

I'm not able to click the Create button when creating a new space, ideas?

new_space_issue.jpg  
[](https://community.atlassian.com/t5/Confluence-questions/Can-t-create-a-new-Space/qaq-p/420597?attachment-id=2050){#link_1186d35048c219}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/177087/1/new_space_issue.jpg){#display_1186d35048c219_0}


Answers:
author: 105349
body: Hey Alexei!

Give this KB article a look. It seems to be the same problem you're running into:

[Create Space button inactive in Add Space dialog](https://confluence.atlassian.com/confkb/create-space-button-inactive-in-add-space-dialog-312740689.html)

Good luck!


Tags: permission
Confluence and Docker
Asked by baymon:

Will there be an official docker release of confluence, like bitbucket server (https://hub.docker.com/r/atlassian/bitbucket-server)?


Answers:
author: Athirah Zolkefli
body: Hi Baymon!

Fortunately, yes there is. You can find it here: <https://hub.docker.com/r/atlassian/confluence-server/>.

Hope this helped. :smile:

Regards,  
Athirah Zolkefli


Tags: confluence-administration
how do I import content from another wiki into confluence?
Asked by Jeff Berndt:

*This question is in reference to Atlassian Documentation: [Importing Content from Another Wiki](https://confluence.atlassian.com/pages/viewpage.action?pageId=701434925)*

Since "the Universal Wiki Converter (UWC) does not support Confluence versions after 4.3.7," how do I import content from another wiki into Confluence Server?


Answers:
author: 105349
body: Hey Jeff!

Sadly, since UWC has been deprecated, there aren't a lot of options out there. [This documentation](https://confluence.atlassian.com/conf57/importing-content-into-confluence-701434924.html) outlines a few ways to accomplish it, but I'll be the first to admit that the options are pretty lacking. ![sad](/html/@C495B4504065515364EB1894F812B34C/images/emoticons/sad.png "sad")


author: Steven F Behnke
body: I often use the Import HTML from Disk for customers myself. Occasionally I've used the REST API within a script I'll write.

Where are you coming from Jeff?

comments: author: Jeff Berndt
body: The content is coming from MediaWiki. (Is that what you meant?)


Tags: import
I used Cyberduck to upload to Atlassian Cloud WebDAV, but how/where/when do I get feedback that the Confluence space has been successfully imported?
Asked by Ian White:

*This question is in reference to Atlassian Documentation: [Upload data via WebDAV](https://confluence.atlassian.com/pages/viewpage.action?pageId=744721622)*

Ask your question here...


Answers:
author: Ian White
body: Thanks Cody. I think I'm missing something-- I uploaded the ZIP and uncompressed to the dump_files folder, but when I go to Import Options in Confluence Admin, no WebDAV files appear.

I remember this happened once before, but I can't remember what I'm missing

comments: author: 105349
body: Hmm. Are you uploading them to just the root WebDAV directory? Are you sure the Space archives are complete?

Also, if the archives are less than 100MB, you may want to try uploading them directly from your browser. May make things easier.


author: Ian White
body: Moved it to the root directory, and when I try and import I get an error:

```
The zip file did not contain an entry 'exportDescriptor.properties'.
```

but when I look through an uncompressed directory I see the exportDescriptor.properties file ;(


author: 105349
body: Well, that's some progress!

As for the error, check out this KB article:

<https://confluence.atlassian.com/confkb/xml-backup-restore-failed-with-the-zip-file-did-not-contain-an-entry-exportdescriptor-properties-in-confluence-300811533.html>


author: Ian White
body: Oy, so apparently I have a backup, **not** an export. I'l read up on what to do and (hopefully not!) write again


author: 105349
body: No problem! This is how we learn. :smile:

Good luck! If that all works out, I'd appreciate if you'd mark this as answered. Thanks!


author: 105349
body: Hi Ian!

Unless I'm mistaken, once you upload the Space via WebDAV, you still need to kick off the import in Confluence itself. Check **Step 3** in [this document](https://confluence.atlassian.com/confcloud/import-a-confluence-space-724765531.html).

Good luck!


Tags: confluence-cloud

documentation
how do I add a normal user as a admin in confluence what are the step by steps the documentation isnt helping at all
Asked by Ivan Liu:

*This question is in reference to Atlassian Documentation: [Get help and support](https://confluence.atlassian.com/pages/viewpage.action?pageId=744721659)*

how do I add a normal user as a admin in confluence what are the step by steps the documentation isnt helping at all


Answers:
author: Nic Brough -Adaptavist-
body: Go to user administration, find the user and add them to one of the groups you have set up for administrative access.   

You can see the list of admin groups under Admin -\> Global permissions (it's usually just "confluence-administrators", but you should check)

You must be an administrator yourself to add this user.


Tags: atlassian-support

cloud

confluence-cloud

documentation
Paste image as a Confluence Attachment
Asked by Caleb Anderson:

We are migrating our old wiki pages into Confluence and we noticed an issue: new employees couldn't see a lot of the images. Eventually we found out this was because they weren't logged into the old system. We would like to terminate the old system but can't if we still need to add employees to it. We need a way to convert the image references to attachments in Confluence.


Answers:
author: JamieA
body: Hi... I thought this would be an easy task but actually it turned out, not so much.

There is much more code here than I would hope an SR user would have to write. Also there are many different ways of doing this, perhaps my way is not the best. It does work, but I feel like I'm missing a trick.

The code is here: <https://gist.github.com/jechlin/6d3b4b8105fc4d2bf1ae6d9c22c64923>

Modify the two variables in the CONFIG section, and then run in the script console. I would start with a CQL query that selects a single page, on your test instance, then a space, then the whole lot.

If the old system requires http basic auth put in the credentials at about line 141, if it's some other kind of auth then contact us.


Tags: addon-com.onresolve.confluence.groovy.groovyrunner

confluence-administration
changing security level of user
Asked by Ivan Liu:

*This question is in reference to Atlassian Documentation: [Manage users and groups](https://confluence.atlassian.com/pages/viewpage.action?pageId=744721623)*

Im having trouble changing the security of a user from normal to admin for confluence please help


Answers:
author: Nic Brough -Adaptavist-
body: It's not a "security level" really. To make someone an admin, you simply add them to one of the groups that says "these people are admins". You have to be an admin in order to do it of course - only admins can make other admins.


author: Nic Brough -Adaptavist-
body: Duplicated by <https://answers.atlassian.com/questions/38839635> but there's more information on that one.


Tags: cloud

confluence-cloud

user-management
Export Page to PDF Functionality (Schuberg Philis Tableau plugin)
Asked by Rodrigo Martins:

Hi, the plugin is great, however, Export Page to PDF functionality is unable to export the Tableau viz and reports an authentication error instead. Is there a way to get this working ?

The error message in the PDF is :

Error rendering macro 'tableau-plugin' : com.atlassian.renderer.v2.macro.MacroException: authentication error: there is an authentication problem while retrieving the report, please contact your confluence or tableau server administrator

Thanks


Answers:
author: Rodrigo Martins
body: Hi Cody, thanks for you reply. We've fixed the auth error, now if we try to export the page to pdf, we only get the tiltle and nothing else. Any guess?


author: 105349
body: Hi Rodrigo!

This error very likely means that Confluence cannot reach the Tableau server, either because of a networking issue or an authentication issue, (the error leads me to believe the latter).

If you're not the administrator of your instance, I'd check with them to see if they can work to troubleshoot the issue.

Good luck!


Tags: tableau
How do I take back control of a personal space?
Asked by Martin James:

We have a lot of personal spaces in Confluence and I noticed a few of the staff no longer work in the company. I plan to shut these down but I noticed some of them have changed the space permissions. As the site administrator I can't go into the space tool or pages to relocate or delete any work.

How do I take back control?


Answers:
author: Mirek
body: Hi Martin,

Are you added to confluence-administrators group? Members of this group can see the content of all pages and spaces in the Confluence instance, *regardless of space permissions*.
Jira Gadgets into Confluence
Asked by Corinna F?hring:

Hy I inserted some JIRA Gadgets into a Confluence page but my colleague can not see this Gadgets..is that normal ? does he has to have my filters installed also in JIRA o so ??


Answers:
author: Mayur Supare
body: Hi corinna ,

yes We can add the JIRA gadget into a confluence page.but we need to make sure that JIRA is integrated with confluence

Thanks,


Tags: confluence-administration
can we restrict confluence permissions
Asked by Rachelr:

*This question is in reference to Atlassian Documentation: [Manage users and groups](https://confluence.atlassian.com/pages/viewpage.action?pageId=744721623)*

Can we restrict users in Confluence to only view particular sections and provide comments.


Answers:
author: Ignacio Pulgar
body: You can manage user/group permissions by clicking on the 'manage permissions' link from the desired space:

https://\<YOURS\>.atlassian.net/wiki/admin/permissions/viewdefaultspacepermissions.action

After that, you can enter a page in a space and click on the lock icon so that you can limit a page's Edition or View permissions to certain user/s or group/s. In doing so, you will also apply the same restrictions to child pages.

Hope it helps.


Tags: cloud

confluence-cloud

documentation
Hi, any latest documents for migrating media wiki to Confluence wiki?
Asked by Barani Kumar:

*This question is in reference to Atlassian Documentation: [Getting Help and Support](https://confluence.atlassian.com/pages/viewpage.action?pageId=304578653)*

Ask your question here...


Answers:
author: 105349
body: Hey Barani!

The last *official* information I've heard is, well, not much. It's actually quite frustrating, as this question comes up all the time.

That said, even though UWC has been deprecated since 4.3.7, you *may* have luck with it on Confluence 5+. You can download the source [here](https://migrations.atlassian.net/wiki). Again, this is not officially supported, so tread lightly.

Also take a look at the [HTML to Confluence Converter](https://confluence.atlassian.com/display/DISC/HTML+To+Confluence+Converter). Basically, you'd take an HTML dump from MediaWiki, and convert it via that tool.

I really wish there were more accepted solutions, but I also understand that there are seemingly infinite variations with other wikis, that development of a single tool for converting is near impossible.

Good luck!

comments: author: Shirley Jhirad
body: +1 here

Did you have any experience with the the HTML converter?


author: Jeff Berndt
body: Yeah, I'm interested in that as well, since the official documentation only says "the Universal Wiki Converter (UWC) does not support Confluence versions after 4.3.7."  

Okay, that's how /not/ to migrate content into Confluence. But it doesn't answer the question of how we actually /do/ migrate content into Confluence.

comments: author: Terry Harple
body: I agree, I am doing an evaluation and find Atlassians inability to address this issue outside of community posts to be lame at best. "We don't talk about importing from other wikis so the problem must not exist. Go somewhere else for answers we don't want to address."


Tags: confluence-administration

mediawiki
Usq sql within a user macro
Asked by Marc Giesmann:

Hi!

I am trying to call the sql macro within another macro, but I don't understand how to prevent confluence from escaping the characters.

```
## Macro title: My Macro## Macro has a body: N## Body processing: Selected body processing option## Output: Selected output option#### Developed by: My Name## Date created: dd/mm/yyyy## Installed by: My Name## This is an example macro## @param sqlsearch:title=Name|type=string|required=true|desc=SQL Searchterm&lt;ac:structured-macro ac:name="sql"&gt;    &lt;ac:parameter ac:name="dataSource"&gt;dbname&lt;/ac:parameter&gt;    &lt;ac:parameter ac:name="output"&gt;wiki&lt;/ac:parameter&gt;    &lt;ac:rich-text-body&gt;    SELECT DISTINCT id AS 'Location ID', address AS 'Adress Full' FROM Address WHERE street like '%strasse%' LIMIT 10;    &lt;/ac:rich-text-body&gt;&lt;/ac:structured-macro&gt;
```

But confluence insists on escaping several characters:

```
Fehler beim Rendern des Makros 'sql': com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '&amp;apos;Location ID&amp;apos;, address AS &amp;apos;Adress Full&amp;apos; FROM Address WHERE s' at line 1
```

Is there a better way to call the sql-statements from another macro?

Thanks in advance!


Answers:
author: Bob Swift (personal)
body: You need to use CDATA. Best to go to a page and construct your macro(s) there and then copy the XHTML source. For instance:

```
<ac:structured-macro ac:macro-id="f9f4ee50-2e49-463a-8ab5-79cd170f1450" ac:name="sql-query" ac:schema-version="1">    <ac:parameter ac:name="dataSource">testDS</ac:parameter>    <ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>    <ac:plain-text-body><![CDATA[select 'xxx']]></ac:plain-text-body>  </ac:structured-macro>
```

comments: author: Marc Giesmann
body: Thank you!

Incredibly obvious, but didn't think of CDATA before. Just to clarify: Why did you change the output type from *wiki* to *INLINE*? My SQL statement adds columns via wiki-markup. Is there a better practice?


author: Bob Swift (personal)
body: That is NOT the **output** parameter for the macro (it is an Atlassian setting). It can be omitted, I just copied the XHTML from a sample page.


author: Marc Giesmann
body: Got it. Thanks!


Tags: escape

mysql

sql

user-macro
Dear reader, we (as an department supply chain) are currently trying to get our head around of integrating an "Confuence Intranet page" and integrate that with our existing company intranet. Do you have experience with this? Or potentially have tips?
Asked by Paul Strijers:

**Dear reader, we (as an department supply chain) are currently trying to get our head around of integrating an "Confuence Intranet page" and integrate that with our existing company intranet. Do you have experience with this? Or potentially have tips?**


Answers:
author: Nic Brough -Adaptavist-
body: It depends on what you mean by "integrate". It does mean "work with", but that's about it, it's far too vague to tell us what you're looking for.

Could you explain, in terms of what the end user might see in their browser, what you're looking for?

One obvious tip though - most places I know either use Confluence as their whole intranet, or simply include it - with static pages like ourintranet/page1 ourintranet/page2 ourintranet/confluence (which lands you on the dashboard and the whole of confluence lives beneath it)

comments: author: Paul Strijers
body: Hi Nic,

Thanks for the quick reply.

Let me try to explain, within the company there is any existing Intranet platform which is not Confluence.

For our department I would like to make use of Confluence as being a subset of the Intranet and link that someway with the existing Intranet platform of the company. With link I mean, if you access the company Intranet and go to the department website you are redirected to the created confluence page.

Do you have any experience with that?

Please let me know if you need more insights.

Thanks,


author: Nic Brough -Adaptavist-
body: I've seen that done quite a lot actually.

I've only got involved when it's been built with an Apache web-server front end, but it seems to work fine and I know you can do it with nginx and lightppd, so I'm 99.9% sure you can use IIS too.

Anyway, you set up Apache to serve up your intranet as normal, but then proxy certain urls within it. So

/ - default intranet

/site1 - a virtual host that points to some pages

/site2 - a proxypass on to your confluence server


author: Paul Strijers
body: Ok thank you.

Regards,

Paul


Tags: documentation