Holger Friedrich
c316b07c47
Update plugins ( #4197 )
...
* set minimum Maven version to 3.6.3
* build-helper-maven-plugin, 3.4.0 to 3.5.0, see
https://github.com/mojohaus/build-helper-maven-plugin/releases/tag/3.5.0
* jvnet maven-jaxb2-plugin, 0.15.2 to 0.15.3
* license-maven-plugin, 4.2 to 4.3
* maven-archetype-plugin, 3.0.1 to 3.2.1
* maven-assembly-plugin, 3.4.2 to 3.7.1, see https://github.com/apache/maven-assembly-plugin/releases
* maven-clean-plugin, 3.3.1 to 3.3.2, see https://github.com/apache/maven-clean-plugin/releases
* maven-dependency-plugin, 3.6.0/3.3.0/3.1.1 to 3.6.1, see
https://github.com/apache/maven-dependency-plugin/releases/tag/maven-dependency-plugin-3.6.1
* maven-jar-plugin, 3.3.0 to 3.4.1, see https://github.com/apache/maven-jar-plugin/releases
* maven-javadoc-plugin, 3.6.2 to 3.6.3, see https://github.com/apache/maven-javadoc-plugin/releases
* maven-plugin-plugin, 3.11.0 to 3.12.0, see
https://github.com/apache/maven-plugin-tools/releases/tag/maven-plugin-tools-3.12.0
* maven-shade-pluginm 3.5.2 to 3.5.3
* maven-source-plugin, 3.3.0 to 3.3.1
* maven-surefire-plugin, 3.1.2 to 3.2.5, see https://github.com/apache/maven-surefire/releases
* sortpom-maven-plugin, 3.3.0 to 3.4.1, see https://github.com/Ekryd/sortpom/releases
* spotless-maven-plugin, 2.38.0 to 2.43.0, see
https://github.com/diffplug/spotless/blob/main/plugin-maven/CHANGES.md
* openhab 18n-maven-plugin, 4.0.2 to 4.1.2
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-04-27 09:34:39 +02:00
Andrew Fiddian-Green
a3bfcf5b2f
ColorUtil bug fixes and improvements ( #4124 )
...
* ColorUtil improvements
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2024-04-27 09:32:11 +02:00
Holger Friedrich
b563f1577a
More instanceof pattern matching ( #4191 )
...
* More instanceof pattern matching
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-04-21 21:22:37 +02:00
joerg1985
ba463dd7e6
[persistence] improve building the ItemHistoryDTO ( #4194 )
...
Signed-off-by: Jörg Sautter <joerg.sautter@gmx.net>
2024-04-21 21:21:03 +02:00
Holger Friedrich
10a20af50c
[CI] Add Java 21 compiling to J17 and native J21 ( #4186 )
...
* [CI] Add Java 21 compiling to J17 and native J21
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-04-21 11:47:40 +02:00
Florian Hotze
b9940d6687
[automation] Improve logging in ScriptConditionHandler ( #4192 )
...
Fixes #4179 .
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-04-21 10:16:03 +02:00
Holger Friedrich
a79a9c651b
Reduce SAT warnings ( #4187 )
...
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-04-20 19:17:47 +02:00
Holger Friedrich
0db45fa168
Use flatMap to simplify map operations ( #4190 )
...
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-04-20 19:15:06 +02:00
Wouter Born
dc17296e07
Upgrade Jollyday to 0.27.0 ( #4178 )
...
Upgrades Jollyday from 0.23.2 to 0.27.0.
For release notes, see:
https://github.com/focus-shift/jollyday/releases
Signed-off-by: Wouter Born <github@maindrain.net>
2024-04-14 22:20:55 +02:00
Martin
846877e598
Do not create new BigDecimals
if a given object is already BigDecimal
( #4177 )
...
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
2024-04-14 16:13:14 +02:00
J-N-K
3a435ec1e7
Fix marketplace showing incompatible add-ons by default ( #4182 )
...
Signed-off-by: Jan N. Klug <github@klug.nrw>
2024-04-14 16:11:38 +02:00
openhab-bot
0eeff02fcc
New translations systemprofiles.properties (Italian) ( #4176 )
2024-04-13 11:59:29 +02:00
Denis Tarasov
cbb458e0c3
Improve description of hysteresis bounds ( #4149 )
...
* doc: improve description of hysteresis bounds
Signed-off-by: Denis Tarasov <dstarasov@skbkontur.ru>
2024-04-07 10:54:42 +02:00
Jacob Laursen
258b0991d8
Provide unit hint for system channel type atmospheric-humidity ( #4170 )
...
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-04-07 10:53:47 +02:00
lolodomo
619762a297
[sitemap] Extend chart periods to cover past and future ( #4172 )
...
* [sitemap] Extend chart periods to cover past and future
Closes openhab/openhab-webui#2518
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-04-07 10:51:24 +02:00
Mark Herwege
c2cbefe55c
Unit hint in thing channels ( #4079 )
2024-04-06 14:21:42 +02:00
lsiepel
f18c50f299
Add abbreviate method ( #4164 )
...
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
2024-04-06 14:14:20 +02:00
Holger Friedrich
875ebaaef7
[rest] Fix Java 21 build ( #4171 )
...
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-04-05 20:40:06 +02:00
Holger Friedrich
3e16027b72
Bump maven-compiler-plugin to 3.13.0 ( #4168 )
...
Avoid ZipException with ejc >3.30.0.
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-04-04 06:12:53 +02:00
lolodomo
dcfadaede6
Move to JUPnP v3.0.1 ( #4165 )
...
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-04-02 18:21:57 +02:00
Holger Friedrich
9f5a60d6fa
Allow for compiling with Java 21 ( #4161 )
...
* Support Java 17 and 21, default compilation to Java 17 class files,
use maven.compiler.release instead of source and target
* Add profile "j21" to compile to Java 21 class files
* Upgrade SAT to 0.16.0, adapt code which breaks build with new SAT
checks
* Use model-specific-profile to pin xtend to Java 17
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-04-01 13:46:57 +02:00
Florian Hotze
be9cbf2649
[automation] Avoid memory leak on script loading failure ( #4162 )
...
Core part of the fix for https://github.com/openhab/openhab-addons/issues/16462 .
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-27 22:32:20 +01:00
Florian Hotze
e871dcfa47
[rest] TokenResource: Set SameSite attribute for session id cookie ( #4160 )
...
* [rest] TokenResource: Properly set SameSite attribute for session id cookie
Fixes #4159 .
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-27 22:31:29 +01:00
Florian Hotze
7f47d825a0
[rest] Add caching for add-on resource ( #4107 )
...
* [rest] Introduce a CACHE_CONTROL constant
* [rest] Add caching for add-ons endpoint
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-27 19:37:36 +01:00
Arne Seime
bf8b131701
Add REST call to get orphan links ( #4115 )
...
* Add REST call to get orphan links
Signed-off-by: Arne Seime <arne.seime@gmail.com>
Co-authored-by: Jan N. Klug <github@klug.nrw>
2024-03-23 23:02:14 +01:00
Mark Herwege
2daf94d7fc
REST response default persistence strategy when no persistence configuration ( #4137 )
...
* default persistence strategy in REST response
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-03-23 18:11:34 +01:00
Jacob Laursen
b3047c675a
[oauth] Fix exception wrapping ( #4150 )
...
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-03-23 16:25:44 +01:00
Florian Hotze
c9ee992047
[automation] Allow empty script for script action & script condition ( #4148 )
...
* Script action: Allow script to be empty
* Short evaluate to reasonable defaults when script is empty
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-17 20:31:51 +01:00
Holger Friedrich
3850599163
Upgrade to Karaf 4.4.5 and Xtext 2.34 ( #4133 )
...
* Upgrade to Karaf 4.4.5 and Xtext 2.34
Upgrade Karaf from 4.4.4 to 4.4.5:
* Sync runtime dependencies with Karaf 4.4.5, most notably:
* Jetty 9.4.53.v20231009
* JNA 5.14.0
* Pax Logging 2.2.6
* Pax Web 8.0.24
* ASM 9.6
* Resolve itest runbundles
Upgrade Xtext from 2.32 to 2.34
* Sync depencencies, most notably:
* Guava 33.0.0
* classgraph 4.8.165 changing provider to io.github.classgraph
* Migrate old Xtext generator xtext.generator to xtext.xtext.generator
as xtext.generator has been removed from Xtext, affecting
org.openhab.core.model.lazygen
* resolve runbundles
* Remove org.openhab.core.model.lazygen
No longer in use since 2017, see eclipse-archived/smarthome#4122 .
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-03-17 09:41:15 +01:00
Holger Friedrich
9c1c88519b
Bump ecj to 3.36.0 ( #4154 )
...
Allow for compiling with Java 21
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-03-17 09:25:21 +01:00
Holger Friedrich
bf11a92f40
Bump maven-plugin-plugin to 3.11.0 ( #4153 )
...
Allow for compiling with Java 21
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-03-17 09:24:59 +01:00
Holger Friedrich
cf7bff88ee
Bump maven-shade-plugin to 3.5.2 ( #4152 )
...
Allow for compiling with Java 21
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-03-17 09:24:36 +01:00
Arne Seime
137cc5eb49
[rest] Allow skipping ignored things in inbox ( #4108 )
...
* Allow skipping ignored things in inbox
Signed-off-by: Arne Seime <arne.seime@gmail.com>
2024-03-15 15:51:36 +01:00
joerg1985
12a6742189
[rest] special handling for StreamingOutput ( #4145 )
...
Signed-off-by: Jörg Sautter <joerg.sautter@gmx.net>
2024-03-12 18:58:31 +01:00
joerg1985
3d83c70184
[rest] refactored the Stream2JSONInputStream to simplify the logic ( #4099 )
...
Signed-off-by: Jörg Sautter <joerg.sautter@gmx.net>
2024-03-10 17:24:01 +01:00
Florian Hotze
977fa0329a
[rest] Enable filters for cacheable items list ( #4119 )
...
This allows the usage of filters when using `staticDataOnly=true`.
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-10 11:41:52 +01:00
Mark Herwege
eeb69197c6
unitSymbol for GroupItem ( #4106 )
...
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-03-10 10:07:52 +01:00
Florian Hotze
38b73bf989
[auth] Set doctype for auth page ( #4129 )
...
Fixes https://github.com/openhab/openhab-webui/issues/2443 .
See https://developer.mozilla.org/en-US/docs/Web/HTML/Quirks_Mode_and_Standards_Mode .
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-10 09:59:38 +01:00
joerg1985
094e4a6e04
[rest] stream json without starting a new thread ( #4136 )
...
Signed-off-by: Jörg Sautter <joerg.sautter@gmx.net>
2024-03-10 09:46:39 +01:00
openhab-bot
942929973d
New Crowdin updates ( #4138 )
...
* New translations addons.properties (French)
* New translations addons.properties (Finnish)
* New translations addons.properties (Hebrew)
* New translations units.properties (Finnish)
* New translations scriptprofile.properties (Hebrew)
* New translations units.properties (Hebrew)
* New translations addons.properties (Polish)
* New translations voice.properties (Polish)
* New translations units.properties (Polish)
* New translations addons.properties (Russian)
* New translations marketplace.properties (Russian)
* New translations units.properties (Russian)
* New translations addons.properties (Ukrainian)
* New translations validation.properties (Danish)
* New translations languagesupport.properties (Portuguese)
* New translations languagesupport.properties (Portuguese, Brazilian)
* New translations addons.properties (Danish)
* New translations scriptprofile.properties (Italian)
2024-03-10 09:41:35 +01:00
jimtng
fc2d5375b7
Upgrade Tool: Fix NPE ( #4128 )
2024-03-04 07:19:51 +01:00
Florian Hotze
f4d6089eb0
Call, Contact, Image items: Don't create command descr from state descr ( #4097 )
...
* Contact item: Fix command descriptions provided even though commands are not accepted
If a state description is set on a contact item, currently a command description is automatically created as well.
This is wrong as contact items do not accept commands (except refresh) and caused the UI to display a control for the default (list) widget for these contacts.
* Also fix Call and Image items & Allow explicitly setting command description
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-03 13:20:10 +01:00
Holger Friedrich
bca1010c0e
Relax test to accept files with CRLF line endings ( #4126 )
...
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-03-03 13:05:16 +01:00
Florian Hotze
81805ae6d9
[rest] Set editable for members of an item ( #4118 )
...
* [rest] Set editable for members of an item
Required by the UI.
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-03 10:14:32 +01:00
Florian Hotze
d26aa080ab
Script profile: Fix deprecation warning ( #4110 )
...
Refs #4058 .
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-02 10:46:28 +01:00
Florian Hotze
45f8bff876
Upgrade tool: Add upgrade task for script profile changes ( #4117 )
...
* Upgrade tool: Add upgrade task for script profile changes
Refs #4058 .
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-02 10:41:34 +01:00
dependabot[bot]
3f27104e76
Bump org.bitbucket.b_c:jose4j from 0.9.3 to 0.9.5 ( #4121 )
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-03-02 10:32:00 +01:00
GiviMAD
a94dd51cd3
[net] Expose Jetty EndPoint in http requests ( #4092 )
...
Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
2024-03-02 09:08:48 +01:00
jimtng
97d64a156b
Add numericState and unit to StateDTO ( #4123 )
...
* Add numericState to StateDTO
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-03-01 18:43:02 +01:00
Gwendal Roulleau
06ee46dff6
Audio parsing : Fix byte / bit confusion ( #4116 )
...
Fix two errors for calculating bitrate and duration of sound.
In AudioSinkUtilsImpl : confusion between byte / bite
In AudioWaveUtils : confusion between byte / bite AND with the defintion of framesize (framesize already includes channels number)
Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
2024-03-01 18:06:04 +01:00