You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just tried pasting in my old sitemap and it worked after I took out all my comments I had in it.
The new UI version of sitemap doesn’t seem to like // as a comment.
It also didn’t like spaces after the = sign like this Frame label= “Power”
Expected behavior
It should seamlessly import the sitemap.
Steps to reproduce
Copy the file sitemap code and paste it into the code tab of the UI sitemap.
If the imported code has // comments in it then you will see errors.
Fixes#2043
The sitemap parser was not able to cope with comments in the sitemap
text when pasted in from a sitemap file.
Comments will now be discarded (the REST API does not have fields for
comments), but the sitemap will still be parsed and saved.
Similarly, blanks where accepted in a number of places when defined in
text files, but not in the parser. This is now also corrected.
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
stefan-hoehn
pushed a commit
to stefan-hoehn/openhab-webui
that referenced
this issue
Sep 23, 2023
Fixesopenhab#2043
The sitemap parser was not able to cope with comments in the sitemap
text when pasted in from a sitemap file.
Comments will now be discarded (the REST API does not have fields for
comments), but the sitemap will still be parsed and saved.
Similarly, blanks where accepted in a number of places when defined in
text files, but not in the parser. This is now also corrected.
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
digitaldan
pushed a commit
to digitaldan/openhab-webui
that referenced
this issue
Sep 24, 2023
Fixesopenhab#2043
The sitemap parser was not able to cope with comments in the sitemap
text when pasted in from a sitemap file.
Comments will now be discarded (the REST API does not have fields for
comments), but the sitemap will still be parsed and saved.
Similarly, blanks where accepted in a number of places when defined in
text files, but not in the parser. This is now also corrected.
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
The problem
I just tried pasting in my old sitemap and it worked after I took out all my comments I had in it.
The new UI version of sitemap doesn’t seem to like // as a comment.
It also didn’t like spaces after the = sign like this Frame label= “Power”
Expected behavior
It should seamlessly import the sitemap.
Steps to reproduce
Copy the file sitemap code and paste it into the code tab of the UI sitemap.
If the imported code has // comments in it then you will see errors.
Your environment
Browser console
Browser network traffic
Additional information
Discussion about this is here and there was a request to open an issue for this problem:
https://community.openhab.org/t/what-is-the-most-common-ui-you-are-using/149096/17
The text was updated successfully, but these errors were encountered: