youngmon/atlassian-qna huggingface dataset:
Why does View Word file macro screw up text formatting?
Asked by Lars Sj?gren:

The View Word file macro is used on a Confluence page and all text that appears after the macro on the page is formatted differently than the text that appears before the macro (see image below). When we remove the macro, the text is displayed correctly. It's not a major issue, but it's frustrating to see it like this.

![](../../upfiles/text_formatting_1.jpg)


Answers:
author: Lars Sj?gren
body: As mentioned, this may be a solution that may work, but has not been fully tested. I reported my problem to Atlassian and received the answer that this is a bug. I don't remember the bug number though.

/Lars


author: Matthew J. Horn
body: My first guess would be that the macro contains an unclosed DIV or other style tag that then applies to the rest of the page. You should be able to view the source in a browser and examine the elements to see what doesn't get closed. A workaround, if you can't edit the macro's source, would be to close that tag manually with an HTML macro after the View Word macro, but before the rest of the page is displayed.

comments: author: Lars Sj?gren
body: Thanks for a prompt answer. I've been through the source code several times but cannot find any div:s that might not get closed. I haven't tried the HTML macro you suggested, but eventhough it might solve the problem, it's not an option since it goes against company security policy to give any user the ability to use that macro. I'll report it since this works in version 3.4.9 of Confluence. Thanks anyway.
Multiple Confluence Environments to Sync (Disconnected)
Asked by Matt Topper:

I work in a spot where we have all of our development happening on one network and when we do a release we push all the confluence content up to another network that our customers are able to see in production. Our production wiki is a living wiki whereby customers can comment, add items to the FAQ, etc. We're trying to figure out the best way to migrate our dev documentation up to production and not stomp on any changes that have happened since we pushed the last release from dev.


Answers:
author: Bob Swift (personal)
body: [Confluence Command Line Interface](https://bobswift.atlassian.net/wiki/display/CSOAP) can be used to push updated pages and attachments without losing page history or comments. But if you need to merge updates, you will need some sort of automated or semi-automated diff and merge and you will need to consider whatever that is wiki or 4.x storage format.

comments: author: Matt Topper
body: Thanks Bob, I'll play with the CLI and see what I can come up with this weekend. I \<3 3 way diff merges :banghead:
Is it possible to hyperlink text in onDemand to the local network drives?
Asked by Siv Teh:

Hi,

I have an OnDemand Confluence license. Is it possible to link text in Confluence to a place or file located on my local network drive?

Thanks!


Answers:
author: Renjith Pillai
body: You can always link to files using file://\<networkpath\> isn't it?

Of course this can work only if you are working within your company's intranet.

comments: author: Siv Teh
body: Thank you! :o)


author: Siv Teh
body: I tried

file://Clegw_pdata2_server/pdata2/Wrmm/iqqm/ecfiles.doc

but the link stays grayed out. Is there a trick to make it active?

Thanks! :o)


Tags: cloud

confluence-cloud
Live templates in confluence 4.2
Asked by howard tiersky:

I want to create a simple form for job applicants to be filled out by our recruiters in confluence.

I want to use scaffolding to create teh form and then have a button "add new recruit" which creates a new doc based on the form and puts it into "edit contents" mode.

Two questions:

1) I created the form in confluence but how do I get it into a template? I tseems like confluence templates still have to be created with wiki markup is that right? If I have already created the form usign the new editor is there any way to turn it into wiki markup? Or do I have to recreate it like in notepad or something?

2) Whats the best way to create a button that creates a new page based on the scaffolding template and puts it into edit contents mode. I tried using the create page plugin but it only gives me 2 choices- edit or view (and as far as I can tell, edit doesnt work correctly in confleunce 4.2 anyway, but even if it did I assume it would put me in "edit " mode not "Edit contents " mode

any help appreciated! thx


Answers:
author: Renjith Pillai
body: For the first part, I guess you can get the page using [Confluence CLI](https://bobswift.atlassian.net/wiki/display/CSOAP/Confluence+Command+Line+Interface) which should give you the markup and use it for creating the template.

Second one, I remember using [{add-page}](http://wiki.customware.net/repository/display/AtlassianPlugins/add-page) with the template name, even though I am not sure.

comments: author: Bob Swift (personal)
body: You will need to recreate the wiki markup. The CLI will return storage format on 4.x - Confluence doesn't store wiki markup anymore.


Tags: create-page

scaffolding

template
Stash 1.0 to 1.1 upgrade
Asked by Brad Beyenhof:

Now that Stash 1.1 is available, is there an Upgrade Guide for those of us who were previewing 1.0? I don't see anything in the admin interface which looks like it will do it, so I assume it'll be a manual process. If it's like other Atlassian tools, it should be as simple as stopping the service, updating the application directory, and restarting, but I'd like to get official word on that before proceeding.

Also, I've made some Tomcat server.xml changes within the application directory (to support running the app behind Apache), and I want to make sure those changes translate directly to the new version before upgrading. Can I have my configuration management tool just push out the same modified server.xml it's currently monitoring? Or do I have to install the new app and re-do my server.xml changes from scratch?


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: <https://confluence.atlassian.com/display/STASH/Stash+upgrade+guide> is the upgrade guide.You will have to redo the server.xml changes.


Tags: bitbucket

server
Using confluence as a customer portal
Asked by Mitch Balsam:

When we were in our product development cycle, we decided to host all of our customer documentation in Confluence.. We decided to create a single account called "customer" and then give that to all of our customers so they can access our documentation..

Problem is we now want to control that process a bit.. So were faced with buying a confluence license for each customer (ouch!!) or moving everything to a different type of wiki...

Have others faced a similar dilemma?? what choice did you make??


Answers:
author: rmorales8303
body: Hey.. is there any advice on this issue? I'm looking for some thing like this too.

comments: author: Manuel Antonio Lombardi
body: Hello, this post is from 2015, do I still need to buy separate licenses for my customers to read the wiki? no way, thanks


author: Ernest Koe
body: I think there is a scenario here that has been completely missed. I agree with the OP, it's cost prohibitive to give every customer user a login but frequently that is exactly what we need to do make projects and issues visible to different clients from time to time. We almost need a class of "external party" concurrent-use logins; i am even happy to pay for them so that we can make accounts for customers that dont need to be in all the time.


author: Septa Cahyadiputra
body: If you want to avoid buying a license for each user when they can only read the content of Confluence (no write), you might want to [enable anonymous](https://confluence.atlassian.com/display/DOC/Setting+up+Anonymous+Access) access to your Confluence.

This would ensure that you don't need to buy another license as anonymous users is not counted as a licensed user.

Hope it helps.

<br />

Cheers,  
Septa Cahyadiputra


author: CharlesH
body: Possible approach: second instance of confluence to act as customer portal. Configured so that people directory is disabled, status updates turned off, as would personal spaces. Keep customer content separated in different spaces, with appropriate permissions set. I'm assuming here you want to enforce customer confidentiality.First instance is still your master version. Publish pages to the customer portal as required with the aid of ad-hoc workflows and the remote publishing plugin (Comalatech).This approach has advantages from a security perspective too. The customer instance can be in a dmz while the internal one remains behind the firewall.

comments: author: Mitch Balsam
body: Thanks charles.

You are correct that we dont want customers to read each others data.

Still have the problem of buying a license for each user just to login.. But each user is only going to be a readonly user.

I think its more likley that we need to export of expose several documenation spaces into another system like drupal...
404 when trying to upload attachments
Asked by Matthew J. Horn:

When I try to upload an attachment that is greater than about 30MB, I get a 404 at the 98% upload mark. Has anyone else seen this? I've tried attachments of sizes from very small (a few k) to over 40MB, and every time one of them is larger than 30MB, it fails in this manner with the browser redirecting to a 404 error page.

My attachment file size limit is set to 200MB, connection timeouts are turned off (set to 0, which makes them essentially infinite), and I have set the upload attachments to use the file system rather than storing in the database.


Answers:
author: fuckoff
body: I ran in to the same issue and was thrilled to see this answer since I'd been scratching my head on this one for most of the afternoon. However, there is no mention of an actual fix for the problem at hand. Not complaining, just wanting to help. In IIS 7.5, you can update the value for file uploads to be up to 2 GB by opening the IIS Manager, selecting the IIS Server and double clicking the "Configuration Editor" in the bottom section.

Once this opens, in the section drop down, you'll want to navigate to the system.webServer/security/requestFiltering section of the config. Expand the requestLimits sub-item and then update the maxAllowedContentLength value to whatever is appropriate.

![](../../../upfiles/Configuration_Editor.png)

![](../../../upfiles/maxAllowedContentLength.png)


author: Matthew J. Horn
body: IIS proxy was limiting file sizes of uploads.


author: FernandoA
body: It can sometimes be caused by any third party plugin installed on the instance.

I'd suggest you giving a try enabling the [plugin safe mode](https://confluence.atlassian.com/display/CONF34/Plugin+Support+Mode+and+Safe+Mode) and try to upload the file once again.

If you still face any further issues I'd suggest you to raise a ticket at [support.atlassian.com](http://support.atlassian.com).

Hope this helps.

Cheers!

comments: author: Matthew J. Horn
body: Sorry I never posted a follow up to this... Turns out our IIS proxy was limiting file sizes of uploads.


Tags: attachment

bug
What is the relation between the new Page Layouts and Templates
Asked by Michael Podvinec:

With the advent of the new Page Layout functionality in the 4.2 editor, it seems that the way a page appears to the viewer can now be styled on three levels:

1. Theme (mostly not the content, but the decoration around it)  
2. Page template (fill content into sections/columns, style output from macros, etc  
3. Page Layout (somewhat like the older sections/colums)

For our usage (intranet), we need to control page styling rather tightly, as wel want a consistent experience and will have a number of non-technical people contributing content.

We are planning to achieve this by providing a set of useful templates to our users, where they just need to fill in the relevant content.But should this not be better achieved using Page Layouts?

Is there, for instance, a way to create a template that contains a page layout already?

Inversely, is it possible to limit the ability of the user to choose/change the layout a page is using?

Unfortunately, there seems very little documentation on advanced use of page layouts available (but granted, it is a rather new feature). Any insight on this topic would therefore be very appreciated.


Answers:
author: Mark Hrynczak
body: Page templates are still using wiki markup, and there is no way to define page layouts using wiki markup.

In 4.3, we will be shipping a new version of templates, and you will be able to define a template to use whatever layout you want. See <https://jira.atlassian.com/browse/CONF-11744> for more detail.

comments: author: Michael Podvinec
body: Hmm... is there a release date or beta date for 4.3 already? A quick search didn't reveal anything regarding timelines


author: Mark Hrynczak
body: Atlassian does not publicly announce release dates ahead of time. There should be a beta release of 4.3 in the next few weeks, and the full release will follow that.


Tags: layout

page

permission

template

theme

themebuilder
how to add a js file to batch.js in confluence 4.2?????
Asked by liljoint:

Hi, I have seen a folder where there's too many js files with distinct functions, but in the google chrome developer tool it's loaded only One file, batch.js, inside this there are all the js scripts in include/js folder.

thnx


Answers:
author: Matthew J. Horn
body: My understanding, and this a guess at best, is that batch.js is compiled (by that I mean compounded, not actually compiled) on the back-end and served up by the confluence web app. It includes more than just the scripts in the JS folder, but lots of JavaScript fragments. There's also a batch.css file that does a similar thing for style properties that are all over the place.

One reason they might do this is because the version of batch.css and batch.js that get transmitted appear to be optimized (whitespace stripped out). So it gives you the opportunity to view the sources of the batch files on the server in un-optimized format, but then saves bandwidth by transferring them as optimized.

I don't think you can insert anything into the batch files without touching server side code (and recompiling the web app. If you want to include a JS file, add a \<script\> to your Custom HTML in the Administration panel.


Tags: decorator

javascript

jql
The daily email report can not work ?
Asked by zhou si:

I am using the Confluence 3.5.

Now the situation is that I can receive the email when someone comment the article which I watches, it means that the SMTP server is working in its way, but I can not receive the daily email report.

What may cause this situation, please give me a hand, thanks.

Or how can I locate the problem, any suggestion?


Answers:
author: Matthew J. Horn
body: First thing I would check is to make sure that the daily email reports are not being flagged as spam by your mail filter.


author: Thomas Schlegel
body: does it work for anyone else with your Confluence installation ? Do you have entries in your Email Error Queue ? Any Error Messages in the logs ?


Tags: email
Upgrading from Confluence 3.5.1 to 4.2.5 breaks all of our links to networked files and folders
Asked by Dave Donnelly _Sensata_:

One of the uses we have for Confluence is to use it as a reference to documentation held on our network drives. This is an essential piece for functionality for us. I recently upgraded our Confluence instance from 3.5.1 to 4.2.5 and this had the effect of un-rendering all of the network hyperlinks and causing them to be displayed as text.

An example of the types of urls that encountered a problem are:

{noformat} /////network_drive/folder1/folder2 {noformat}

and

{noformat} //C:/folder1/folder2 {noformat}

and

{noformat} network_drive folder1 folder2 file.doc {noformat}

and here is a real one

{noformat} here\| selanas02 ECUSystemDesign Systems Engineering Team Customer-independent Projects Presentations Demo_FrequencyResponseInvestigation_28Feb2012.pptx {noformat}


Answers:
author: Mark Hrynczak
body: This ability is not currently available in Confluence 4.x.

There is an open feature request where this is being discussed: <https://jira.atlassian.com/browse/CONF-24665>

The workaround, as mentioned on that ticket, is to insert the links within an HTML macro. Note that is a **security risk**, and you should decide whether you want to enable it on your instance.

comments: author: Dave Donnelly _Sensata_
body: Thanks for that Mark. We require something automated to convert the links in our, already substantial, Confluence instance. I upgraded to 4.2 and there was nearly a riot! We're back using 3.5.1 for the moment until this is resolved. Cheers for the link.


author: Dave Donnelly _Sensata_
body: <https://jira.atlassian.com/browse/CONF-23575> here is another related issue.


author: Thomas Schlegel
body: I don't think that this will be fixed (CONF-23575). It has a low priority for Atlassian, which I think is not correct. We also have a lot of links to documents in our filesystem. I cannot move to Confluence 4 if there is no solution for that. If this will not be fixed, sooner or later I have to look around for alternatives.


author: Dave Donnelly _Sensata_
body: It would be terribly unfortunate for us if this issue is not resolved. This blocks us upgrading to Confluence 4.x entirely. Surely this sort of network links functionality is commonplace for users' Confluence instances?


author: Thomas Schlegel
body: Atlassian has upgraded the issue CONF-23575. It is now a major bug, no minor anymore :-)


author: Dave Donnelly _Sensata_
body: Progress! :)


author: Dave Donnelly _Sensata_
body: Well that didn't format correctly at all. This is an automatic post generated when I raised a ticket with Atlassian. The blanks in file paths above are supposed to be back slashes...


Tags: link

network

url
How to modify the link style?
Asked by hans-peter.geier:

Hi, we are using the Documentation theme in Confluence 3.5.

The hyperlinks in these theme are underlined only on mouse over,

but in general the links are not underlined and therefore harder to see than necessary.

(I believe, underlying links is a good practice and mostly common in the web)

Can you help me with the exact spelling of the css entry to add to the space stylesheet,

so I can override the theme settings?

Thanks.

For future Confluence versions, I'd suggest to make underlining of hyperlinks the default

(or make it configurable)


Answers:
author: hans-peter.geier
body: I'm ended up with this stylesheet entry:

.wiki-content a {   
text-decoration:underline !important;   
}

Reason why I liked this more: It does only modify the links' appearence in the content area, not anywhere else.


author: Julien Hoarau
body: In ***Space Admin \> Look and Feel \> Stylesheet***click Edit and add the following css rule:

```
a:link, a:visited, a:active {    text-decoration: underline;  }
```

comments: author: hans-peter.geier
body: I was advised to add !important , so the system defaults are being overwritten.

Thanks anyway.
Created global space, but other users do not see it
Asked by dnesterov:

Problem:

I just installed confluence, then created a global space, but other users do not see it.

Additional info:

There are no viewing restrictions on the space. Users are managed through JIRA server.


Answers:
author: dnesterov
body: When users were imported from JIRA server they were not in confluence-users group and there was no prompt to add them to this group. After adding users manually to this group they could see global spaces.


author: SimonS
body: Hey qolektor,

There are a couple other questions that might help us diagnose this problem.

Can other users log in and see other spaces?  
Can other users create their own spaces? Can other users see those spaces?  
If you distribute the space URL to your users, can they access it?

-Simon


author: dnesterov
body: Yes, the users can log in. They have not tried to create spaces, and I do not yet know how to distribute the space URL. I also found from other posts, that I might need to explicitly put them into confluence-users group. All users were simply imported from JIRA server, so I am not sure what their membership is in Confluence. I will try to do this and see the result.
how to create a cookie with confluence 4.2?
Asked by liljoint:

Hi, I need to create a cookie in user macro environment, I can use the velocity context parameter $req, but this only work to get a cookie, not for create.

Can I do this?

please help.


Answers:
author: Joe Clark
body: Why do you need to create a cookie? There may be a better solution :-)

comments: author: liljoint
body: I need to make a connection with another server using ajax, But it's not safe, I wanna to create a cookie with a encrypted access code to the other server.


author: Joe Clark
body: It's not possible to modify the Cookie header when using the JavaScript XMLHttpRequest object to do AJAX calls - see <http://stackoverflow.com/a/5123282/1471135>


author: grundic
body: Oh, you want to manage cookies on client side?

Maybe it's better to use javascript instead of macro?

You can store cookie like this:

```
document.cookie =    "theme=" + encodeURIComponent("blue theme") +    "; max-age=" + 60*60*24*30 +    "; path=/; domain=thesitewizard.com" ;
```

Also, Atlassian have api for managing cookies - <https://developer.atlassian.com/display/AUI/AJS.Cookie> - but it stores all values in one key/value map. But you can try it.

If there is strong requirement to store cookie in macro, then you have to add instance of **CookieUtils**to Velocity params and then call it like

```
$cookieUtils.createCookie($name, $value, $req)
```

Honestly, I didn't try to do that in Confluence macro. But I'm absolutely shure, that it work in Jira's Web Action.

Hope it helps :)


author: grundic
body: Maybe **com.atlassian.jira.web.util.CookieUtils** can help you?

comments: author: liljoint
body: how can I use this in the user macro environment??? can you explain how I can do this?? don't reply a question with another question, please ! XD


Tags: ajax

cookie

macro

page

velocity