kovetskiy / mark

Sync your markdown files with Confluence pages.
https://samizdat.dev
Other
972 stars 143 forks source link

template ac:jiraissues returns error 500 #448

Closed ChrisRu82 closed 1 month ago

ChrisRu82 commented 1 month ago

What happened?

If I use the template ac:jiraissues I receive from the confluence an Error 500 "Internal Server Error". I tested this with only the required parameters and with all optional parammeters

What did you expect to happen?

That the Jira issue List would have been created on the confluence page.

How can we reproduce the behavior you experienced?

  1. Add a macro with these values in the markdown
<!--` Macro: :testlist:
     Template: ac:jiraissues
     URL: https://jira.example.com/sr/jira.issueviews:searchrequest-xml/100000/SearchRequest-100000.xml?tempMax=1000
      -->

:testlist:
  1. run mark

Further Information (please complete the following information)

Logs or other output

Please provide logs, other kind of output here.

Additional context

The problem can be solved when we change Line 170 and Line 177 in the stdlib.go

The missing bit is that the urls need to be in the ri:url format similiar to Line 254.

mrueg commented 1 month ago

Thanks for the PR, I merged it!