Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sitemaps Input widget strips off [] characters #3756

Closed
jimtng opened this issue Jul 17, 2024 · 2 comments · Fixed by #3770
Closed

Sitemaps Input widget strips off [] characters #3756

jimtng opened this issue Jul 17, 2024 · 2 comments · Fixed by #3770
Labels
bug Indicates an unexpected problem or unintended behavior

Comments

@jimtng
Copy link
Contributor

jimtng commented Jul 17, 2024

Actual behaviour

Item:

String TestString1

Sitemap:

sitemap test {
  Input item=TestString1
}
  • Open that sitemap on android 3.15.0
  • Enter abcdefgh[] into the text field, and click the checkmark (enter) on the Android's virtual keyboard
  • The app will send a command abcdefgh[] to the item but then changed the text inside the input field to abcdefgh stripping away the []
  • The same thing would happen if [] is entered in the middle of the string, e.g. abcdefg[]h - > it strips off everything after [] so the text became abcdefg (note the h is also gone)
  • But this "bug" doesn't happen, if [] is at the very beginning of the string, e.g. []abcdefgh - the [] don't get stripped off, and neither do they get stripped off when I entered []abcdefgh[].

Expected behaviour

It shouldn't strip off any text inputs

Steps to reproduce

Described above

Environment data

Client

  • Android version: Android 14
  • App version 3.15.0
  • Build flavor Play Store
  • Device language: English

Server

  • Server version: 4.3.0-SNAPSHOT
@jimtng jimtng added the bug Indicates an unexpected problem or unintended behavior label Jul 17, 2024
@mueller-ma
Copy link
Member

In your title you wrote "BasicUI", but I guess you mean Sitemaps? Can you check the behavior in Basic UI (Sitemaps in browser)?

@jimtng
Copy link
Contributor Author

jimtng commented Jul 18, 2024

Yes I meant Sitemap, sorry.
BasicUI (sitemaps in browser) has its own, different bug related to this: openhab/openhab-webui#2675

@jimtng jimtng changed the title BasicUI Input widget strips off [] characters Sitemaps Input widget strips off [] characters Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants