adobe / adobe/aem-core-wcm-components

OEmbed Example Configs incorrectly escaping .

Open
#2,801 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
796
Forks
776
Avg merge
3d 22h
Merged PRs (30d)
8

Description

Version: 2.25.5-SNAPSHOT

A few of the example OEmbed configs are incorrectly escaping the . in the scheme regex:

com.adobe.cq.wcm.core.components.internal.services.embed.OEmbedClientImplConfigurationFactory-flickr.config

scheme=["https?://.*\.flickr\\.com/photos/.*","https?://flic\\.kr/p/.*"]

should be

scheme=["https?://.*\\.flickr\\.com/photos/.*","https?://flic\\.kr/p/.*"]

com.adobe.cq.wcm.core.components.internal.services.embed.OEmbedClientImplConfigurationFactory-twitter.config

scheme=["https?://(.*\.)?twitter\.com/.*"]

should be

scheme=["https?://(.*\\.)?twitter\\.com/.*"]

com.adobe.cq.wcm.core.components.internal.services.embed.OEmbedClientImplConfigurationFactory-youtube.config

scheme=["https://.*\.youtube.com/watch.*","https://.*\.youtube.com/v/.*","https://youtu\.be/.*"]

should be

scheme=["https://.*\\.youtube.com/watch.*","https://.*\\.youtube.com/v/.*","https://youtu\\.be/.*"]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the three named OEmbedClientImplConfigurationFactory config files for Flickr, Twitter, and YouTube. Compare each scheme regex with the corrected examples in the issue, verify the escaping is consistent, and confirm that all three configurations contain the intended patterns.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.