kovetskiy / mark

Sync your markdown files with Confluence pages.
https://samizdat.dev
Apache License 2.0
1.02k stars 153 forks source link

SIGSEGV when specifying page url via -l option #228

Closed varejjka closed 1 year ago

varejjka commented 1 year ago

Hi! I do mark -u <user> -p <password> -l 'https://<confluence_host>/pages/viewpage.action?pageId=<ID>' -f file.md

Got:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x7342df]

goroutine 1 [running]:
main.processFile({0x7ffce420a200, 0x9}, 0x442a31, {{0x7ffce420a200, 0x9}, 0x0, 0x0, 0x0, 0x0, 0x0, ...}, ...)
    /home/runner/work/mark/mark/main.go:208 +0x27f
main.main()
    /home/runner/work/mark/mark/main.go:159 +0x5fc

If i use metainfo and -b option all works fine

version 8.4 linux amd64

joyfulrabbit commented 1 year ago

I have the same issue. https://github.com/kovetskiy/mark/issues/233

arm64, mark version 8.4, confluence 7.13.7 Go version go1.18.1 darwin/arm64

I see this issue has come up before, but there aren't a lot of details about the version of Confluence or the URL that was specified, or the config settings file etc.

mrueg commented 1 year ago

Please try again with a later version of mark and report back if the issue still exists.