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

Bug: import boardarchive don't work on selfhosted version of mattermost boards #42

Open
AtmOz-Design opened this issue Nov 27, 2024 · 0 comments
Labels

Comments

@AtmOz-Design
Copy link

Hello,

I have a fairly significant problem for my use.

At first I tried to see to allow me to create a template that can be used in all teams without success.

So I say to myself, well too bad we will go through the export / import box. The problem is that the export of the table goes well, but when I import absolutely nothing happens.

However, I have these lines appearing in the log:

{"timestamp":"2024-11-27 19:26:52.821 +01:00","level":"debug","msg":"CSRF Check failed for request - Please migrate your plugin to either send a CSRF Header or Form Field, XMLHttpRequest is deprecated","caller":"app/plugin_requests.go:195","path":"/plugins/focalboard/api/v2/teams/wtjxwkwg9ffqp89hmsb7dmh1yc/a rchive/import","ip":"172.18.0.5:54384","session_id":"sg1jnt1hw3rc3nnu3khpyhrfdy","user_id":"5q864xccrtrhpxidtrojmaqiia"}

{"timestamp":"2024-11-27 19:26:52.839 +01:00","level":"debug","msg":"BroadcastingBoardChange","caller":"app/plugin_api.go:1005","plugin_id":"focalboard","teamID":"wtjxwkwg9ffqp89hmsb7dmh1yc","boardID":"b9roq8je5db897y714r7keazx7o"}

{"timestamp":"2024-11-27 19:26:52.852 +01:00","level":"error","msg":"Http handler panic","caller":"app/plugin_api.go:1011","plugin_id":"focalboard","panic":""runtime error: index out of range [0] with length 0"","stack":""goroutine 2270 [running]:\nruntime/debug.Stack()\n\truntime/debug/stack.go:24 +0x5e\ngithub.com/mattermost/mattermost-plugin-boards/server/api.(*API).panicHandler-fm.(*API).panicHandler.func1.1()\n\tgithub.com/mattermost/mattermost-plugin-boards/server/api/api.go:115 +0x112\npanic({0x1374440?, 0xc0006cdc80?})\n\truntime/panic.go:914 +0x21f\ngithub.com/mattermost/mattermost-plugin-boards/server/services/store/sqlstore.(*SQLStore).getMemberForBoard(0xc0006ba090, {0x1674fb8?, 0xc00066eb60?}, {0xc000c1bfc0, 0x1b}, {0xc000c1a000, 0x1a})\n\tgithub.com/mattermost/mattermost-plugin-boards/server/services/store/sqlstore/board.go:642 +0xe58\ngithub.com/mattermost/mattermost-plugin-boards/server/services/store/sqlstore.(*SQLStore).GetMemberForBoard(0xc0006c8a50?, {0xc000c1bfc0?, 0x0?}, {0xc000c1a000?, 0x14015ee?})\n\tgithub.com/mattermost/mattermost-plugin-boards/server/services/store/sqlstore/public_methods.go:427 +0x36\ngithub.com/mattermost/mattermost-plugin-boards/server/app.(*App).GetMemberForBoard(...)\n\tgithub.com/mattermost/mattermost-plu gin-boards/server/app/boards.go:510\ngithub.com/mattermost/mattermost-plugin-boards/server/app.(*App).notifyBlockChanged(0xc0006c8a50, {0x13fb543, 0x3}, 0xc0006c8bb0, 0x0, {0xc000c1a000, 0x1a})\n\tgithub.com/mattermost/mattermost-plugin-boards/server/app/blocks.go:322 +0x230\ngithub.com/mattermost/mattermost-plugin-boards/server/app.(*App).CreateBoardsAndBlocks(0xc0006c8a50, 0x1680580?, {0xc000c1a000, 0x1a}, 0x0)\n\tgithub.com/mattermost/mattermost-plugin-boards/server/app/boards_and_blocks.go:38 +0x1cc\ngithub.com/mattermost/mattermost-plugin-boards/server/app.(*App).ImportBoardJSONL(0xc0006c8a50, {0x1671c60?, 0xc000d14618}, {{0xc000aa000e, 0x1a}, {0xc000c1a000, 0x1a}, 0x0, 0x0})\n\tgithub.com/mattermost/mattermost-plugin-boards/server/app/import.go:261 +0x12fe\ngithub.com/mattermost/mattermost-plugin-boards/server/app.(*App).ImportArchive(0xc0006c8a50, {0x7ff935d4ebc0?, 0xc000d14600?}, {{0xc000aa000e, 0x1a}, {0xc000c1a000, 0x1a}, 0x0, 0x0})\n\tgithub.com/mattermost/mattermost-plugin-boards/server/app/import....","uri":"/api/v2/teams/wtjxwkwg9ffqp89hmsb7dmh1yc/archive/import"}

{"timestamp":"2024-11-27 19:26:52.853 +01:00","level":"warn","msg":"api error response","caller":"app/plugin_api.go:1014","plugin_id":"focalboard","code":"500","error":""http handler panic"","api":"/api/v2/teams/wtjxwkwg9ffqp89hmsb7dmh1yc/archive/import"}

Thank you in advance if someone can fix my problems, or at least the import error.

Have a nice day!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant