Closed (fixed)
Project:
Media Migration
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Dec 2019 at 18:41 UTC
Updated:
11 Sep 2020 at 10:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
firewaller commentedAttached is a quick patch that replaces line breaks within the JSON with a single space to make the JSON valid.
Comment #3
juampynr commentedThanks @firewaller!
Looks like the patch needs some work so it applies:
Comment #4
huzookaAnother related thing: The 'default' view mode entity embed display is not valid (the plugin derivative does not exist), we have to map default to full.
Comment #5
huzookaAddressing #3 and also #4.
Comment #6
huzookaComment #7
juampynr commentedWoops, another conflict:
Comment #8
huzookaComment #9
huzookaComment #10
huzookaComment #11
firewaller commented#10 works for me
Comment #12
wim leersComment #13
huzookaHi @firewaller,
Could you please sharewith us an example string that fails?
Comment #14
firewaller commented@huzooka it looks like the regex picks this up correctly, but the decoded JSON breaks when line breaks are present in the token. I don't know how this would happen, but that's the way it is on some D7 nodes so I'm assuming WYSIWYG formatted it that way.
Comment #15
firewaller commentedComment #16
huzookaComment #18
huzookaComment #19
huzooka