Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

relative link breaks deployment on Confluence Cloud #227

Closed
petargadjev opened this issue Sep 16, 2020 · 8 comments
Closed

relative link breaks deployment on Confluence Cloud #227

petargadjev opened this issue Sep 16, 2020 · 8 comments
Assignees
Labels
bug under verification wait for feedback made actions and wait for feedback from issuer

Comments

@petargadjev
Copy link

petargadjev commented Sep 16, 2020

Hello,

When using Markdown relative links to files within the root of the project (e.g. * [Help](HELP.md)) the deploy action throws an exception with message:

org.bsc.confluence.rest.AbstractRESTConfluenceService$ServiceException: error: update page
Response{protocol=h2, code=400, message=, url=https://aiopsgroup.atlassian.net/wiki/rest/api/content/744751135}
{"statusCode":400,"data":{"authorized":false,"valid":true,"errors":[],"successful":false},"message":"com.atlassian.confluence.api.service.exceptions.BadRequestException: Content body cannot be converted to new editor format"}

There is a bug logged on the CONFCLOUD board which seams like a match: https://jira.atlassian.com/browse/CONFCLOUD-69902

I am testing against Confluence Cloud and it throws exception for any type of file being used in the link - md, json, txt.
Tested with:

  • version 6.8 with Java 13 + confluence-markdown-processor-commonmark
  • version 6.9 with Java 8 + confluence-markdown-processor-commonmark

My pom.xml is

	<build>
		<plugins>
			<plugin>
				<groupId>org.bsc.maven</groupId>
				<artifactId>confluence-reporting-maven-plugin</artifactId>
				<version>6.8</version>
				<dependencies>
					<dependency>
						<groupId>org.bsc.maven</groupId>
						<artifactId>confluence-markdown-processor-commonmark</artifactId>
						<version>6.8</version>
						<scope>runtime</scope>
					</dependency>
				</dependencies>
				<configuration>
					<spaceKey>MYSPACE</spaceKey>
					<siteDescriptor>${basedir}/src/site/confluence/site.yaml</siteDescriptor>
					<markdownProcessor>
						<name>commonmark</name>
					</markdownProcessor>
				</configuration>
			</plugin>
		</plugins>
	</build>

site.yaml is

home:
  uri: README.md
  parentPageTitle: "All my projects"
  name: "Demo project"
  attachments:
    - name: "process.png"
      uri: images
      comment: image
      contentType: "image/png"
      version: 1
    - name: "payload.json"
      uri: examples
      comment: payload
      contentType: "application/json"
      version: 1
  children:
    - name: "How to get help"
      uri: help/HELP.md

README.md is

* [Help](HELP.md)

I could provide full stacktrace once requested.

Thank you very much for the hard work, really amazing plugin.

  • EDIT: there were two typos in the last sentence
@bsorrentino bsorrentino self-assigned this Sep 17, 2020
@bsorrentino
Copy link
Owner

HI @petargadjev thanks for the feedback

The translation pipeline using markdown is: markdown ==> wiki ==> storage

The problem here it is on translation from Wiki to Storage format. I'll investigate on it asap

@bsorrentino
Copy link
Owner

Hi @petargadjev

Try to update README.md writing instead of * [Help](HELP.md) this * [Help](help/HELP.md)

@bsorrentino bsorrentino added the wait for feedback made actions and wait for feedback from issuer label Oct 6, 2020
bsorrentino added a commit that referenced this issue Oct 6, 2020
@bsorrentino
Copy link
Owner

Closed due inactivity

@cmanique
Copy link

cmanique commented Oct 9, 2023

Hi @bsorrentino I'm having the same issue, especially when specifying to prefix pageTitle in pom.xml to allow for publishing of multiple branches (i.e.: master, develop, feature-123). Running version 7.12 of plugin with Java 17.
In my case the linked page is a sibling of the page linking to, but in a deeper structure than the site descriptor yaml.

I've tried all combinations of:

help/help.md
../help/help.md
/help/help.md
help.md

All of these generate the link with createpage.action (it's confluence hosted server).

Is is possible to reopen this so I can specify any information you'd require?

@bsorrentino
Copy link
Owner

Hi @cmanique thanks for feedback I'll test on my cloud and back you on such issue for any infos

@bsorrentino bsorrentino reopened this Oct 10, 2023
@cmanique
Copy link

Thank you @bsorrentino
I think I'll open a separate issue with a more easily reproducible example, as I feel this fails at a much more simple level.
Let me know which is the best way to proceed

@bsorrentino
Copy link
Owner

Thank you @bsorrentino I think I'll open a separate issue with a more easily reproducible example, as I feel this fails at a much more simple level. Let me know which is the best way to proceed

Go ahead opening a new issue

@cmanique
Copy link

@bsorrentino thanks. It's been done #294

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug under verification wait for feedback made actions and wait for feedback from issuer
Projects
None yet
Development

No branches or pull requests

3 participants