migrator icon indicating copy to clipboard operation
migrator copied to clipboard

protect flag results in migration error. "illegal offset type"

Open alexmilde opened this issue 4 years ago • 3 comments

thanks for this amazing migrator. it helped a lot!

i ran into a bug which was hard to track down for me - maybe you can look into it.

v2 page.md:

protect:
  type: logged_in
  login_url: ../login

will result into an error exception (screenshot attached) Bildschirmfoto 2021-04-12 um 15 02 33

solution

v3 page.md:

protect: logged_in

thanks again Alex

alexmilde avatar Apr 12 '21 13:04 alexmilde

In the future, make sure to include the error itself, which is just above where you've cropped the screenshot.

jasonvarga avatar Apr 12 '21 14:04 jasonvarga

if you want i can create a PR with the fix.

alexmilde avatar Apr 23 '21 10:04 alexmilde

Great FR for the migrator. Would need to handle custom protection schemes, or at least warn the user to update their protection schemes config.

jesseleite avatar May 10 '21 20:05 jesseleite