Commit Graph

2067 Commits

Author SHA1 Message Date
jimtng
c8cc05d24b
[REST] Sort profile-type resources by their label (#3491)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2023-03-29 08:49:04 +02:00
openhab-bot
8df40bc940
New Crowdin updates (#3489)
* New translations scriptprofile.properties (Hungarian)

* New translations voice.properties (Hungarian)
2023-03-29 08:47:45 +02:00
jimtng
30bbc95506
Clarify the script profile config description (#3506)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2023-03-29 08:41:38 +02:00
GiviMAD
b6c8aeaf10
Allow using quotes in metadata state/command description value/label (#3363)
Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
2023-03-26 19:30:21 +02:00
Mark Herwege
850a9239de
Add inputHint parameter to sitemap Input element (#3418)
* Add inputHint param to sitemap Input element

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2023-03-26 11:15:56 +02:00
Andrew Fiddian-Green
4cbc0e613e
Integration tests for org.openhab.core.io.net (#3460)
* [org.openhab.core.io.net] add itests

Co-authored-by: Wouter Born <github@maindrain.net>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2023-03-25 17:44:15 +01:00
J-N-K
8494bf1199
[config] Fix ConvigValidationMessage in ThingManagerImpl (#3474)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-03-24 10:13:59 +01:00
openhab-bot
ae895790ac
New Crowdin updates (#3475)
* New translations automation.properties (Hebrew)

* New translations validation.properties (German)

* New translations validation.properties (Hebrew)

* New translations scriptprofile.properties (German)

* New translations scriptprofile.properties (Finnish)

* New translations scriptprofile.properties (Hebrew)

* New translations scriptprofile.properties (Polish)
2023-03-23 20:51:43 +01:00
openhab-bot
700b0e81ea
New Crowdin updates (#3471)
* New translations scriptprofile.properties (Danish)

* New translations scriptprofile.properties (Italian)
2023-03-22 19:50:43 +01:00
J-N-K
9289fd5a78
Bump spotless and fix formatting (#3469)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-03-20 23:14:59 +01:00
J-N-K
7bad9baa85
Introduce a profile for the generic SCRIPT transformation (#3292)
* Introduce a generic script profile

Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-03-20 21:59:48 +01:00
jimtng
cb38d19360
Fix variable binding in ScriptTransformationService (#3464)
by setting all attributes before compiling

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2023-03-19 20:05:49 +01:00
jimtng
1e55914e55
Improve AbstractScriptFileWatcher initialization order and file handling (#3451)
* Remove initialImport from the constructor of AbstractScriptFileWatcher
- Calling initialImport inside the constructor may cause an NPE in child class.
* Refactor processWatchEvent in AbstractScriptFileWatcher
- Remove directory deletion handling and adapt test to check
for file removals instead.
- Include hidden files in deletions in case they were previously
loaded while not hidden, set to hidden, and then deleted.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2023-03-18 09:15:20 +01:00
mueller-ma
79c7ec8379
Add issue template for Sitemap changes (#3427)
This makes sure all maintainers are notified.

Signed-off-by: mueller-ma <mueller-ma@users.noreply.github.com>
2023-03-18 09:12:51 +01:00
J-N-K
a32f1e0253
Add ColorUtil for better support of xyY conversion (#3434)
* Add ColorUtil for better support of xyY conversion

This has been refactored to align with the usually used conversion by a lot of ZigBee products like Hue or Deconz.

Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-03-16 22:25:03 +01:00
lolodomo
52e36a0216
[sitemap] Add new color keyword "itemValue" (#3453)
Closes #3429

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-03-16 18:59:10 +01:00
GiviMAD
11e29c45f7
[voice] Fix default interpreter selection (#3458)
Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
2023-03-16 09:05:10 +01:00
Andrew Fiddian-Green
8a0fdfc173
Add jetty-alpn-java-client dependency (#3455)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2023-03-16 09:04:22 +01:00
J-N-K
4390d515d6
Fix file processing in FileTransformationProvider (#3457)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-03-16 08:52:30 +01:00
GiviMAD
f529a7b77f
[CLI/voice] use parameters for cli voice commands startDialog and listenAndAnswer (#3253)
Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
2023-03-16 08:07:06 +01:00
Jacob Laursen
3e1c0b3259
Fix InaccessibleObjectException (#3449)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-03-16 08:05:37 +01:00
J-N-K
c05fe8ad4d
Fix ready marker ordering on late subscriptions (#3454)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-03-13 21:15:55 +01:00
Andrew Fiddian-Green
73b8a3ae32
Fix channel order in REST API (#3448)
* Fix sort order of Things in UI
* Add itest for channel order

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2023-03-13 17:26:34 +01:00
Wouter Born
0894d25448
Upgrade JUnit to 5.9.2 and Mockito to 4.11.0 (#3450)
For release notes, see:

* https://junit.org/junit5/docs/current/release-notes/#release-notes-5.9.2
* https://github.com/mockito/mockito/releases/

Signed-off-by: Wouter Born <github@maindrain.net>
2023-03-12 20:47:54 +01:00
Wouter Born
0c792ec89a
Upgrade XStream to 1.4.20 (#3446)
This addresses CVE-2022-40151 and CVE-2022-41966, see:

https://x-stream.github.io/changes.html#1.4.20

This version also fixes an issue with closing streams so the workaround in GenerateDefaultTranslationsMojoTest is no longer needed.

Signed-off-by: Wouter Born <github@maindrain.net>
2023-03-12 12:22:33 +01:00
J-N-K
95e04fccbd
Allow inline scripts in SCRIPT transformation (#3249)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-03-12 12:00:06 +01:00
Andrew Fiddian-Green
a5d65ce2ad
Add support for Jetty HTTP/2 clients (#3433)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2023-03-12 10:22:50 +01:00
lolodomo
a3a95b5bb9
AbstractCachedTTSService: make synthesize method non final (#3437)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-03-08 22:57:26 +01:00
openhab-bot
07ffc11c87
New Crowdin updates (#3438)
* New translations automation.properties (Polish)
* New translations automation.properties (Slovenian)
* New translations DefaultSystemChannels.properties (Slovenian)
* New translations LanguageSupport.properties (Portuguese, Brazilian)
* New translations magic.properties (Slovenian)
* New translations restauth.properties (Norwegian)
* New translations restauth.properties (Slovenian)
* New translations validation.properties (Norwegian)
* New translations validation.properties (Polish)
* New translations validation.properties (Slovenian)
* New translations voice.properties (Norwegian)
* New translations voice.properties (Slovenian)
2023-03-08 22:09:07 +01:00
Wouter Born
56f5550e6b
Fix broken ProxyServletService (#3436)
Reverts the partially working Whiteboard config changes of #3252 back to a working implementation using the HttpService.
The configurable threading makes this a non-trivial Servlet for use with the Whiteboard.

Fixes openhab/openhab-webui#1782

Signed-off-by: Wouter Born <github@maindrain.net>
2023-03-08 20:07:59 +01:00
J-N-K
d0a0e6d399
Add support for channel-groups to update instructions (#3391)
* Add support for channel-groups to update instructions

Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-03-07 21:57:39 +01:00
jimtng
f9751448c1
Fix ISE during WatchService disposal (#3432)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2023-03-07 15:43:45 +01:00
lolodomo
6d989ea6e2
Remove List element from sitemap syntax (#3423)
Related to openhab/openhab-webui#1755
Related to openhab/openhab-android#3285

This sitemap widget is not documented.

It is not implemented neither in Android app nor iOS app.

It was implemented in BasicUI but was buggy.
Support in BasicUI has been removed.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-03-05 20:48:06 +01:00
Wouter Born
ac5bbb90b8
Upgrade JUPnP to 2.7.0 (#3421)
Fixes openhab/openhab-distro#1473

Signed-off-by: Wouter Born <github@maindrain.net>
2023-03-05 09:55:06 +01:00
J-N-K
81accafbe4
Fix i18n-maven-plugin dependencies (#3422)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-03-05 09:50:20 +01:00
J-N-K
278e99b461
Fix IllegalStateException in WatchServiceImpl (#3389)
Added a check to prevent attempts to unregister already unregistered service

Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-03-05 09:44:58 +01:00
J-N-K
07e8ff56c7
Prevent duplicate events in WatchService (#3404)
On Samba shares a single MODIFY event may result in different sequences of CREATE/DELETE/MODIFY events. Unfortunately this is not properly handled by the underlying library and we have to re-introduce our ugly workaround. The solution itself is a bit improved over the old one as it not only keeps the last event but determines the correct event by examining the sequence of received events.

Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-03-05 09:44:23 +01:00
Gwendal Roulleau
ac88faa5dc
[serial] Ability to use /dev/serial/ symlinks for usb serial device (#3290)
The rxtx serial port provider is now able to scan symlink in /dev/serial/by-id and use them as valid identifier.
Benefit : users won't have to fix the path of their USB serial device  with udev anymore, they can now use the explicit and stable symlink directly.

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
[serial] Ability to use /dev/serial/ links

Revert previous commit (rewriting to use discovery serial service to provide the symlinks to all serial provider, and not only rxtx).
Workaround for the rxtx provider which can resolve symlink before using the native code (limit path to 80 char).

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
2023-03-04 14:43:46 +01:00
J-N-K
52380b7fbe
[rest] List transformation services (#3416)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-03-02 21:36:50 +01:00
J-N-K
76a22d9925
Fix ConfigValidationException handling in ThingManager (#3417)
Also makes sure the `checkPrerequisites` job can't crash by catching `RuntimeException` during processing.

Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-03-02 21:09:47 +01:00
J-N-K
a2cdb25aaf
Fix CME in ThingManagerImpl (#3415)
If several threads try to acquire a lock for things a CME is thrown.

Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-03-02 17:54:41 +01:00
Wouter Born
d154c8bcf9
Remove org.openhab.core.addon.sample left-over (#3413)
Signed-off-by: Wouter Born <github@maindrain.net>
2023-03-02 11:29:19 +01:00
Wouter Born
59c5133815
Add Eclipse Add-on Service (#3406)
This service provides add-on information when debugging in Eclipse so it is possible to add Things based on the installed bindings and configure installed add-ons in the UI.
Replaces the Sample Add-on Service.

Also shows the "Add-on Management" configuration which allows for configuring if incompatible add-ons are included.

Signed-off-by: Wouter Born <github@maindrain.net>
2023-03-02 07:41:49 +01:00
Kai Kreuzer
48c44a04d8
Fix service folder resolution path (#3412)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2023-03-02 07:39:59 +01:00
J-N-K
9778e6cc74
Allow initialization of incomplete things (#3397)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-03-01 13:14:16 +01:00
jimtng
ba7c68c05e
Fix overriding Jetty's User-Agent in HttpUtil (#3411)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2023-03-01 13:10:58 +01:00
Wouter Born
ec3af50f11
Upgrade to Karaf 4.4.3 (#3252)
* Sync runtime dependencies with Karaf 4.4.3, most notably:
  * Jetty 9.4.50.v20221201
  * Pax Logging 2.2.0
  * Pax Web 8.0.15
* Use OSGi R8 as compile dependency
* Rework Servlets to use Http Whiteboard annotations in favor of proprietary `org.openhab.core.io.http.servlet` classes
* Resolve itest runbundles

Also-by: Jan N. Klug <github@klug.nrw>

Signed-off-by: Wouter Born <github@maindrain.net>
2023-03-01 13:09:07 +01:00
Gwendal Roulleau
5544945d48
[tts] Cache mechanism (#3057)
* [tts] Cache mechanism

Implements a cache mechanism for all TTS services.
Eviction policy is LRU mode.
This cache can serve several streams concurrently, for the same utterance, with only one call to the TTS. It doesn't wait for the stream to end and can serve data rapidly.
Cache size is a voice bundle parameter (10 mb default)

Closes #3039

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
2023-02-28 08:45:44 +01:00
lolodomo
f2b8fa77c6
Extend "iconcolor" attribute to all sitemap elements (#3403)
* iconcolor attribute added to all sitemap elements

This attribute was already available in syntax for the Image element but
was probably not used by any UI.
It is now available for any sitemap element and allows defining a color
for the widget icon based on conditional statements on the item value.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-02-26 19:49:51 +01:00
lolodomo
8c905b108e
Fix sitemap syntax for List element (#3402)
A "&" was missing !

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-02-25 19:25:18 +01:00