wordpress-mobile / wordpress-mobile/WordPress-Android

Tags Being Removed or Randomly Added When < Symbol Is Used

Open
#8,924 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Status] Stale [Type] Bug Posting/Editing Tag/Category Management
Dominant language
Kotlin
Stars
3.2k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
69

Description

Expected behavior

I expected to be able to use symbols like < in tags for my posts.

Actual behavior

I'm seeing some strange behaviour when I include < in my tags. In all cases, the tag with < in it is removed by the app after saving my changes. In some cases, other tags have been added seemingly at random.

For example, you'll see I've added a <3 to my tags in this screenshot:

screenshot_20190108-2233013955308965084351350

After saving the above changes and returning to the Post Settings screen, I saw that not only was <3 removed, but testing was also removed and three other tags had been added:

screenshot_20190108-2233275684608566451407073

Steps to reproduce the behavior
  1. Navigate to post editor and go through the steps to add new tags from the Post Settings screen.
  2. Include any tag that has a < symbol and save the changes.
  3. Navigate away from the Post Settings screen and then return to it.
Tested on Pixel, Android alpha-144

Possibly relevant past issues with numeric tags being removed from the app: https://github.com/wordpress-mobile/WordPress-Android/issues/8008

This was raised by a user in 1693771-zen who notes that they often see tags randomly disappearing from the app. The only reliable way I was able to reproduce the problem was when using tags with a < symbol, but there may be a wider problem here.

The user is locked into version 10.9.3 of the app as they're on Android 4.4.2.

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

Reproduce the issue from the post editor's Post Settings screen on Android using a tag containing <, then follow the save and reload behavior described in the report. Done means tags containing < persist after saving and returning to Post Settings, without unrelated tags disappearing or being added.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.