craftercms / craftercms

Parent project for Crafter CMS. Issue tracking across all repositories and global builds.
GNU General Public License v3.0
289 stars 98 forks source link

XB returns transcoded-video control XML instead of JSON like the delivery SDK #6659

Closed russdanner closed 6 days ago

russdanner commented 3 months ago

Duplicates

Latest version

Describe the issue

XB Serializes AWS Video items rather than returning the path of the video.

image

CI: 4806than

Steps to reproduce

Steps:

  1. Configure AWS transcoded video data source
  2. Add video via XB
  3. Note the Javascript SDK serializes the XML rather than returning the URL for the item as expected

Relevant log output

No response

Screenshots and/or videos

No response

russdanner commented 3 months ago

From a discussion with Roy, the following code seems to be the issue. Items of any kind should not be returned as XML.

case 'transcoded-video-picker':
case 'taxonomy-selector':
  return getInnerHtml(element);
russdanner commented 2 months ago

Confirmed

russdanner commented 6 days ago

Confirmed in 4.2.0