youngmon/atlassian-qna huggingface dataset:
Build is not successful when adding new task of SonaqQube , throwing error in build for .NetCore tas
Asked by Bibek KUMAR SINGH:

HI All,  
I have added the SonarQube task in my build for code analysis of .NetCore task and it is falling since then. However when I am disabling the SonarQubethan task its building without error.  
The error I get is shared below:

Time Elapsed 00:00:04.04  
2017-11-20T09:20:11.9948934Z ##\[error\]Error: C:\\Program Files\\dotnet\\dotnet.exe failed with return code: 1  
2017-11-20T09:20:11.9961930Z \[command\]"C:\\Program Files\\dotnet\\dotnet.exe" build d:\\a\\1\\s\\Microsoft.Procurement.PurchaseOrderValidator\\Microsoft.Procurement.Validators.Tests\\Microsoft.Procurement.Validators.Tests.csproj /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:DesktopBuildPackageLocation=d:\\a\\1\\a\\WebApp.zip /p:DeployIisAppPath=direct  
2017-11-20T09:20:14.5701747Z Microsoft (R) Build Engine version 15.4.8.50001 for .NET Core  
2017-11-20T09:20:14.5701747Z Copyright (C) Microsoft Corporation. All rights reserved.  
2017-11-20T09:20:14.5701747Z  
2017-11-20T09:20:17.8759397Z d:\\a\\1.sonarqube\\bin\\targets\\SonarQube.Integration.targets(165,5): error MSB4062: The "IsTestFileByName" task could not be loaded from the assembly d:\\a\\1.sonarqube\\bin\\SonarQube.Integration.Tasks.dll. Could not load file or assembly 'Microsoft.Build.Utilities.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. \[d:\\a\\1\\s\\Microsoft.Procurement.PurchaseOrderValidator\\Microsoft.Procurement.PurchaseOrderValidator.Infrastructure\\Microsoft.Procurement.PurchaseOrderValidator.Infrastructure.csproj\]  
2017-11-20T09:20:20.9121442Z  
2017-11-20T09:20:20.9301436Z Build FAILED.  
2017-11-20T09:20:20.9301436Z  
2017-11-20T09:20:20.9321448Z d:\\a\\1.sonarqube\\bin\\targets\\SonarQube.Integration.targets(165,5): error MSB4062: The "IsTestFileByName" task could not be loaded from the assembly d:\\a\\1.sonarqube\\bin\\SonarQube.Integration.Tasks.dll. Could not load file or assembly 'Microsoft.Build.Utilities.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. \[d:\\a\\1\\s\\Microsoft.Procurement.PurchaseOrderValidator\\Microsoft.Procurement.PurchaseOrderValidator.Infrastructure\\Microsoft.Procurement.PurchaseOrderValidator.Infrastructure.csproj\]  
2017-11-20T09:20:20.9331460Z 0 Warning(s)  
2017-11-20T09:20:20.9331460Z 1 Error(s)  
2017-11-20T09:20:20.9331460Z


Answers:
author: Kristian Du
body: Hi [@Markus Lanser](/t5/user/viewprofilepage/user-id/1555756) .. Have you manage to sort this out yet? We're facing the same exact behaviour.
Restrict File Attachment Name
Asked by Marcel Ke?ler:

Hello there,

we use also use Confluence as external data-sharing-tool via the 'Comala Share It'-Addon. Since attachments with spaces or umlauts like ?, ? or ? will break the link in some browsers, i would like to restrict file-attachments-names. Or provide some kind of sane-rules. Is this possible, if yes how?

I hope you can help me out, thanks!

Greetings


Answers:
author: Vero Rivas
body: Hi [@Marcel Ke?ler](/t5/user/viewprofilepage/user-id/1165421)

Look at this post, maybe can help you

<https://community.atlassian.com/t5/Confluence-questions/Restrict-attachment-file-types/qaq-p/210045>

Cheers


Tags: attachment

share
Hiding comments in confluence cloud and managing multiuser accounts
Asked by Clara:

Good morning,

I work with a Confluence cloud account and I would like the comments on the pages not to be visible to the general public and all the users, just to administrators and editors. I have seen that there is an add-on to hide elements for the Server version and I was wondering how could we do the same in the Cloud app.

Apart from this, is there any way that a single account can be accessed by many users at the same time? That is to say, create an individual non-admin user that allows many people to see the pages in Confluence we have set for that account to see, without having admin privileges, but with the name username and password.

Looking forward to your answer.


Answers:
author: Shannon S
body: Hi Clara,

There's a feature request to be able to do this in Confluence Cloud that I would recommend voting on and watching:

* [CONFCLOUD-24939](https://jira.atlassian.com/browse/CONFCLOUD-24939)

As for your login question, logins are only meant to be used by one user. Should the login session for a username be destroyed (i.e. logged out) then the same will occur for all other sessions for that user. I would recommend that you create a separate login for each user that needs to access Confluence.

To make things easy, you can give page and space permissions in Confluence to a specific group, and then all the users in that group can see the page. This would avoid you having to add the users to the permissions individually.

I hope that helps!

Kind regards,

Shannon

comments: author: ?ukasz Modzelewski _TTPSC_
body: I was also looking for this feature, adding "view" permission to Comments should be #1 :)

Cheers,

?ukasz


Tags: confluence-cloud
org.quality.gates.sonar.api.MaxExecutionTimeException: Max time to wait sonar job!
Asked by CnuMagapu:

```
[JENKINS] Archiving C:\Jenkins\workspace\JavaVulnerableApplication\target\SecuritySampleDevelopmentProject.war to org.cysecurity/JavaVulnerableLab/0.0.1-SNAPSHOT/JavaVulnerableLab-0.0.1-SNAPSHOT.warchannel stoppedHas build IN_PROGRESS with id: AV_ePERddppEu00rotwf - waiting 10000 to execute next check.Has build IN_PROGRESS with id: AV_ePERddppEu00rotwf - waiting 10000 to execute next check.Has build IN_PROGRESS with id: AV_ePERddppEu00rotwf - waiting 10000 to execute next check.ERROR: Build step failed with exceptionorg.quality.gates.sonar.api.MaxExecutionTimeException: Max time to wait sonar job!	at org.quality.gates.sonar.api.QualityGatesProvider.getAPIResultsForQualityGates(QualityGatesProvider.java:85)	at org.quality.gates.jenkins.plugin.BuildDecision.getStatus(BuildDecision.java:24)	at org.quality.gates.jenkins.plugin.QGPublisher.perform(QGPublisher.java:84)	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:736)	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:682)	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1073)	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:627)	at hudson.model.Run.execute(Run.java:1762)	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)	at hudson.model.ResourceController.execute(ResourceController.java:97)	at hudson.model.Executor.run(Executor.java:421)Build step 'Quality Gates Sonarqube Plugin' marked build as failure
```


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@CnuMagapu](/t5/user/viewprofilepage/user-id/1165406) ,

please could you provide more information about your issue?

Fabio
Is there a way to customize the Confluence 404 page?
Asked by Yaacov Weingarten:

The standard 404 page seems to emphasize the fact that the page was not found, and we would like a page that mentions the "not found" aspect but more emphatically encourages the user to search for the information. In addition, would like to make the Search box more prominent.


Answers:
author: Cristian Rosas [Tecnofor]
body: Hi Yaacov,

Check this link to customize the 404 page not found.

<https://confluence.atlassian.com/confkb/how-to-customize-the-page-not-found-404-page-720412489.html>

To change the search box you can probably use CSS.
Confluence Edit page - macros display strange characters
Asked by Jan Solca:

When editing a confluence page I have the following strange behavior

This space used to make the screenshots is a standard confluence space created optionally when user logs in the first time.

Confluence version is 6.5

![Screen Shot 2017-11-21 at 09.50.27.png](/t5/image/serverpage/image-id/9766iE8E8160C39316763/image-size/large?v=v2&px=999 "Screen Shot 2017-11-21 at 09.50.27.png")![Screen Shot 2017-11-21 at 09.50.36.png](/t5/image/serverpage/image-id/9767i51BA36FAF27B060F/image-size/large?v=v2&px=999 "Screen Shot 2017-11-21 at 09.50.36.png")

<br />

- the published page is ok the icons revert to the ' normal' as shown in the next figure.

![Screen Shot 2017-11-20 at 18.42.44.png](/t5/image/serverpage/image-id/9768iB40317F48F7FF0B9/image-size/large?v=v2&px=999 "Screen Shot 2017-11-20 at 18.42.44.png")

I tried several browsers and two DB, postgresql and mysql both with UTF8 encoding, but same results.

Any help would be appreciated   

<br />


Answers:
author: Shannon S
body: Hi there,

As you may already know the encoding of UTF-8 has to be set at the database level, the table level, and the column level. If these are not set then you can run into encoding issues.

To begin troubleshooting this issue, I would recommend going over [Troubleshooting Character Encodings](https://confluence.atlassian.com/doc/troubleshooting-character-encodings-167194.html) first to ensure there's anything else that may not be configured properly.

Please let us know the results of this test.

Thank you and kind regards,

Shannon

comments: author: Jan Solca
body: Hi Shannon

Thanks for your answer but actually this workaround [Confluence UI shows garbled or corrupt text on CAPTCHA, macros and/or diagrams due to missing fonts](https://confluence.atlassian.com/confkb/confluence-ui-shows-garbled-or-corrupt-text-on-captcha-macros-and-or-diagrams-due-to-missing-fonts-938027858.html "Confluence UI shows garbled or corrupt text on CAPTCHA, macros and/or diagrams due to missing fonts") is solving my issues since this had more to do with missing fonts as with encoding since the encoding was correctly set on DB.

Many thanks anyway

Kind regards

Jan


author: Shannon S
body: Thank you for letting me know, Jan!

Kind regards,

Shannon
Difference between Managers and Services in Confluence API
Asked by Domenico Manzo _Actonic_:

Working with Confluence API in some add-ons I've noticed that some functions available from "managers" and some from "services".  
For example:  
CommentService (<https://docs.atlassian.com/confluence/6.3.4/com/atlassian/confluence/content/service/CommentService.html>) and CommentManager (<https://docs.atlassian.com/confluence/6.3.4/com/atlassian/confluence/pages/CommentManager.html>)  
LabelManager (<https://docs.atlassian.com/confluence/6.3.4/com/atlassian/confluence/labels/LabelManager.html>) and LabelsService (<https://docs.atlassian.com/confluence/6.3.4/com/atlassian/confluence/labels/service/LabelsService.html>)  
and so on.  
What is the point to divide API functions into managers and services? What is the main difference between them?


Answers:
author: Domenico Manzo _Actonic_
body: Thanks [@Aleksandr Zuevich](/t5/user/viewprofilepage/user-id/671242)!

It will be great to hear some explanation from Atlassian team too :)


author: Aleksandr Zuevich
body: Hi Domenico,

Nice to meet you here :)

In my opinion Services are high level while Managers are low level. Services in their implementation use Managers and their methods.


Tags: api

app
Confluence - provide a group access to a specific page within a space but not the entire space
Asked by Notify MFP:

I have a secure space locked down to specific users but within that space i have a page Id like to share and allow full access to. How do I do this step by step?


Answers:
author: Notify MFP
body: Thanks. How do I do this? "Top level" is not the terminology used by the system to set this up? Do you have a step by step guide or process?


author: Nic Brough -Adaptavist-
body: You allow them access to the space. Otherwise they can't see anything within it.

Then you make sure there are two types of top-level in the space, one that is open to all, and contains your shared pages, and the second which is restricted, with view locked down to your internal users.
How to post macro enabled(.xlsm) excel content on the confluence page
Asked by Yadunandan:

Hi,

We have created macro enabled(.xlsm) excel tool to generate report tables and charts. We like to post this data to confluence page.

We have understood that .xlsx content can be posted on the confluence page but none of the confluence macros recognizing .xlsm workbook.

Please advise.


Answers:
author: Trond Langvandsbraaten
body: simple drag and drop the excel xlms file onto your confluence page and then when you use Insert the Office Excel macro it auto populates the Excel file in the "File Name" Column (you can leave the Page name field empty).


author: Marc Moroz
body: **Save the .xlsm as .xls** (NOT .xlsx). This will give a warning but it will allow you to save the file with the macros in it and the Confluence macro will read it. Whenever you open the file, it will give you a warning and ask if you really want to open the file. Just say yes.

This isn't my solution. I found it somewhere but forget where. Thanks to whoever actually figured this out.


author: Marc Moroz
body: True to form, this has been requested for years, seems like common sense, appears to be a minor change, and Atlassian isn't going to do it.

Is it possible for the code to be shared so that a free add-on can be provided that allows xlsm? If Atlassian doesn't care about the widget, turn it over to the community.


Tags: macro

ms-excel
Can I set a default restrict policy in Confluence?
Asked by Jonathan Madziarczyk:

Hi, We're looking to allow a 3rd party contractor to have access into one of our spaces for specific file access.

I know it's possible to restrict access to everyone but our team on existing files and then add contractor access on an individual basis, but that won't address any new files made, right?

Is there a way to make it so that all new files in that space are restrict all but employees by default and allow specific people to permit access to the contractors on a individual document basis?

Thanks,  
JonM


Answers:
author: Vero Rivas
body: Hi [@Jonathan Madziarczyk](/t5/user/viewprofilepage/user-id/1165278)

Look at this posts, maybe can help you

<https://community.atlassian.com/t5/Confluence-questions/Changing-default-page-restrictions/qaq-p/616898>

<https://confluence.atlassian.com/doc/page-restrictions-139414.html>

Cheers
Need to re-add search box to sidebar
Asked by Buc-ee's IT:

We were using the 'Documentation' theme, and upgraded from 5 to 6.5. Apparently the recent upgrade completely removed the Documentation Theme. The only non-paid theme now is the 'Default' which does not have a 'Search' box in the left nav (sidebar).

Does anyone have any ideas on how to regain this functionality?


Answers:
author: Manvisha Kodali
body: This worked for me to add page tree search in sidebar. Using [Atlassian Confluence](http://www.atlassian.com/software/confluence) 6.11.1, themed by [RefinedTheme](http://www.refinedwiki.com/) 6.1.0

1. Click 'Space Layout' from the admin menu from the particular space settings
2. Navigate to left column, at the bottom, click 'Add'
3. Click '+' icon and select 'Other macros'
4. Type 'search' on the top right corner and select 'Page Tree Search' and click 'update'
5. Drag it to the top and click save
6. Search appeared on the left sidebar


Tags: search

side-bar

upgrade
How to create non-orphaned page and assign parent to orphaned pages?
Asked by ???:

I created a page in root space and it becomes orphaned page by default, I then tried to assign a parent to it in menu. The actions I took:

Assume the space name is ABC

1. Create page ABC_Home in space ABC

2. Create page Page_1

3. Open Page_1, select Move on the top right menu

4. Set new parent page to ABC_Home for Page_1

5. Now Page_1 is under ABC_Home, but **ABC_Home is an orphaned page**so I cannot see it in pagetree. How to set parent page for page ABC_Home?

I am running Confluence in version 6.5.0.


Answers:
author: AnnWorley
body: Two ways to accomplish setting the parent page of an orphaned page are:

* Go to Space Tools\>Content Tools\>Reorder Pages, drag + drop the orphan under the desired parent.
* Go to PageTools (**...**)\>Move\>and start typing the desired parent page title, then choose it from the pulldown menu.

I look forward to hearing whether these strategies work for you.
Set up SSL on Synchrony cluster (Confluence 6.5+)
Asked by Sean McManus:

Since I am running synchrony in its own cluster now. On it's own dedicated servers, can I not run SSL on the box?  

I have SSL on the VIP (synchrony.myurl.com) . but would like to continue the encryption all the way through the network to the servers (as I do for all apps).

Seems it should be possible now that in 6.5 we have moved the synchrony service to it's own environment.  

<br />


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Sean McManus](/t5/user/viewprofilepage/user-id/252710) ,

based on that article <https://confluence.atlassian.com/doc/possible-confluence-and-synchrony-configurations-958779064.html> syncrony doesn't accept https connection. You should do that at reverse proxy side (if you have one).

Fabio


Tags: synchrony
Which templates do you prefer "Velocity" or "SOY"?
Asked by Gregor Kasmann_Actonic:

As you know Confluence add-on may be built using "Velocity" (<https://developer.atlassian.com/confdev/development-resources/confluence-architecture/confluence-internals/velocity-template-overview>) or "SOY" (<https://developer.atlassian.com/confdev/tutorials/writing-soy-templates-in-your-plugin>) templates.  
Which one do you prefer and why?  
Which would you advise to use for a large project, built on the Confluence API?


Answers:
author: Adrien Ragot _Requirement Yogi_
body: You won't usually have much choice. Generally:

* The initial result of actions (xwork or webwork) is generally\* displayed with Velocity,
* Only SOY templates can be used for client-side rendering, for example in JS when you need to render a subset of the page. Note that SOY templates can also be used on the server-side, that is why they exist.

So, most plugins have both. If you do succeed to use SOY everywhere:

* (+) You'll have only one template to teach your colleagues/employees,
* (-) If you want to build a page that has similar features as one in the core of Confluence, you won't be able to start with copy-pasting the .vm code. You'll have to translate it into .soy, and it will be error-prone.
* (-) I don't know what is the performance of server-side rendering of Soy and Velocity, but I don't suspect you can do better than Velocity.

So... most plugins keep both templates.

\*although it seems you can display the result of an action using Soy, according to this excerpt from the source of Confluence:

```
<result name="success" type="soy">
<param name="location">confluence.web.resources:auditlog/Confluence.Templates.Auditing.Page.auditLogPage</param>
</result>
```


Tags: app

soy-templates

velocity
Restricting Home Page
Asked by Paula Murray:

Hi, I understand how to restrict regular pages in Confluence, but how do you restrict someone from editing the home page (overview page) of your space?


Answers:
author: Brant Schroeder
body: It should be the same. You would just add an edit restriction to the page.

<https://confluence.atlassian.com/doc/page-restrictions-139414.html>


Tags: restriction
Ideas for creating a template space
Asked by Jose Augusto de Jesus Germano:

We are implementing confluence in my environment and in our scenario we thought of creating a template space, where other IT groups (Service Desk, Servers, DBA, FieldService) could only use templates created and defined by one person only , facilitating the standard of documentation at different times. I did an initial test creating a template page, associating a macro with it (template creation button) and releasing read permission, but this scenario is not possible (need to write permission on the page). Are there any ideas? Main goal: I want when the user of a team clicks on the template button that is directed to their space, and from there, can use it.


Answers:
author: Jose Augusto de Jesus Germano
body: I got a part of the demand, which is the creation of global templates (Modelo Script SD_V2). Is there any way to put it on some page just to stay visually more accessible? I used the macro to create from the template however it needs edit permission that I can call the button

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/9739i27D5758FCD9CBC7A/image-dimensions/309x240?v=v2 "image.png")
User profile macro shows wrong info
Asked by smarlowWWF:

We occasionally use the User profile macro in pages - but with a couple of users when used with their profile the macro will display the wrong/out of date info. We use AD to provide info for user profiles, and whe using the @user it will display correctly but when using User profile macro from macro list it occasionally goes wrong. We have checked all info on AD but all is correct. We are using LDAP and running confluence 6.4.2.


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@smarlowWWF](/t5/user/viewprofilepage/user-id/978451) ,

please could you check if at confluence DB level, user info are correctly synched with AD?

Fabio
Update Test Confluence with Delta change till today.
Asked by vivuu:

We have migrated our PROD setup of Confluence to Test environment and its working fine as expected. Here the data of Application directory and SQL DB were taken and restored are 30 days before.

<br />

Now we have to make the Test Confluence data to be updated till the date of today in PROD. How we can achieve this?

Please share us the all the possible ways.


Answers:
author: Nic Brough -Adaptavist-
body: 1. Stop the test confluence
2. Drop the database tables
3. Restore the database from a backup of production
4. Synchronise the attachments from production
5. Restart Test
6. Re-index it

comments: author: vivuu
body: HI Nic,

Is there any other possible ways other than DB restore again ?

Can we make use of xml backup? or any other way to update with recent data.

What about the home directory? Do we need to again replace with the current one ?  
Or only DB restore is required ?


author: Nic Brough -Adaptavist-
body: You can use the xml export and import, but for a medium to large Confluence, it's probably going to be a lot faster with a database restore.


author: vivuu
body: Hi Nic,

What about the home directory? Do we need to again replace with the current one ?  
Or only DB restore is required ?


author: Nic Brough -Adaptavist-
body: Your instance should be offline while you do the restoration. You will need to copy over the home directory again after deleting the old one (except the config.xml file at the root, which tells Confluence where to find its database)


author: vivuu
body: Thanks.

So how can verify that the exact data is restored it in the new instance? What veification activity we can check there ?

Because we may need to give the verification after QA to the management .


author: vivuu
body: After replacing the home directory and doing reindex also , its not showing 3 days recent activities.


author: Nic Brough -Adaptavist-
body: Check if the page count is the same as it is in production when you took the backup, and pick some large pages to compare to see if the data has been changed.