Commit Graph
3212 Commits
Author SHA1 Message Date
Holger FriedrichandGitHub 7f7741d1ef Use Java 21 language features (#5374)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2026-02-20 07:30:15 +01:00
Holger FriedrichandGitHub 669b7918e2 Fix dependencies (#5371)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2026-02-18 13:34:28 +01:00
Holger FriedrichandGitHub 8084755af0 Upgrade Karaf to 4.4.10 (#5353)
Upgrade Karaf from 4.4.9 to 4.4.10.
This includes upgrades for the following libraries:
* pax-logging from 2.3.1 to 2.3.2
* xbean from 4.28 to 4.29

Reverts downgrade of karaf-maven-plugin to 4.4.8.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2026-02-16 20:25:24 +01:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
e6ca14c9e1 Bump org.codehaus.gmavenplus:gmavenplus-plugin from 4.3.0 to 4.3.1 (#5369)
Bumps [org.codehaus.gmavenplus:gmavenplus-plugin](https://github.com/groovy/GMavenPlus) from 4.3.0 to 4.3.1.
- [Release notes](https://github.com/groovy/GMavenPlus/releases)
- [Commits](https://github.com/groovy/GMavenPlus/compare/4.3.0...4.3.1)

---
updated-dependencies:
- dependency-name: org.codehaus.gmavenplus:gmavenplus-plugin
  dependency-version: 4.3.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-16 20:13:06 +01:00
David PaceandGitHub 5c4ce916d6 Improve Javadoc for QuantityType (#5360)
Signed-off-by: David Pace <dev@davidpace.de>
2026-02-15 13:01:49 +01:00
lolodomoandGitHub 3bc47c09a2 [YAML thing provider] Remove unsued and unneeded variable "modelLoaded" (#5362)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2026-02-15 12:57:18 +01:00
b19ac57df7 Add support for short-form syntax in YAML Semantic Tags (#5313)
* Add support for short-form YAML semantic tags

Implemented hybrid mapping for YamlSemanticTagDTO to allow tags to be defined as either a simple string (label) or a detailed object (label, description, synonyms). Includes Jackson creator/value logic for round-trip serialization.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
Co-authored-by: Laurent Garnier <lg.hc@free.fr>
2026-02-15 12:54:35 +01:00
Andrew Fiddian-GreenandGitHub 48e1442e6b [mDNS] Only consider fully qualified discovery results (#5348)
* [mDNS] only consider fully qualified results

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2026-02-14 21:55:37 +01:00
Andrew Fiddian-GreenandGitHub 70144e3cc5 Support 'keywords' field in addon.xml schema (#5352)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2026-02-14 20:04:06 +01:00
NadaharandGitHub 767e809e5a Rule file provider (#4633)
Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
2026-02-14 19:57:24 +01:00
jimtngandGitHub f9776bcb7f Restore model validation not to fail on diagnostic errors for rules and scripts (#5351)
* Restore model validation not to fail on diagnostic errors

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2026-02-14 13:28:52 +01:00
Chris JacksonandGitHub 50aea478ca Add comment to ProgressCallback doc (#5286)
Signed-off-by: Chris Jackson <chris@cd-jackson.com>
2026-02-14 08:25:53 +01:00
lolodomoandGitHub 3706443006 [YAML] Enhance removedModel method in all providers (#5341)
The enhancement consists in just getting the UID of the elements to be removed rather than building a full object.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2026-02-14 08:21:06 +01:00
lolodomoandGitHub 5391ba2cbf [DSL generator] Do not generate thing label if same as in thing type (#5305)
Apply the same logic as for YAML.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2026-02-14 08:15:21 +01:00
openhab-botandGitHub 7efd3e0f0a New Crowdin updates (#5347)
* New translations tags.properties (Danish)
* New translations tags.properties (German)
2026-02-14 08:04:16 +01:00
Christoph WeitkampandGitHub 15ec1c8aa3 Add utility method to cast profile configurations to specific classes (#5333)
* Add utility method to cast profile configurations to specific classes
* Replace ProfileContext implementation in ScriptProfileTest by a mock

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2026-02-13 17:47:07 +01:00
Mark HerwegeandGitHub d12b1f8456 implicit RiemannType import (#5349)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2026-02-12 21:23:50 +01:00
lolodomoandGitHub 60331d1d65 [YAML thing] Allow "configuration" in syntax as alternative to "config" (#5332)
For thing and channel.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2026-02-12 06:32:17 +01:00
lolodomoandGitHub 759d6b27dc [YAML] Move YAML test files in sub-folders (#5331)
Move YAML test files in sub-folders

Tests for YamlThingProvider moved in a separate class.
Also test that a thing change listener is properly called when loading a YAML file containing things.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2026-02-12 06:26:06 +01:00
lolodomoandGitHub 0e9ca965f2 [YAML] Use Objects.equals for Map + adjust hashCode methods (#5335)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2026-02-11 11:18:09 +01:00
jimtngandGitHub 6beadca4c4 Add StateOfCharge Semantic Tag Property (#5316)
* change groovycsv to jackson csv library

groovycsv caused an error in Groovy 5.x, even in its "latest" version 1.3.

Rerun the script which fixed a few errors in the manually generated tags (Property_Price, Equipment_HVAC_AirConditioner)

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>

* Add Property_StateOfCharge semantic tag

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>

* add readValues guard

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>

---------

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2026-02-11 11:09:38 +01:00
jimtngandGitHub 2cf0fc8051 Validate ThingUID part during ChannelUID construction (#5342)
The ThingUID portion of a ChannelUID was previously only validated
lazily when getThingUID() was called. This could lead to
ChannelUID objects existing in an invalid state.

This change moves validation to the constructor to ensure
fail-fast behavior and provides a more descriptive error
message if the ThingUID part is malformed.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2026-02-11 10:59:33 +01:00
Дилян ПалаузовandGitHub 8f258ff610 DSL Rule - allow using PersistenceExtensions.RiemannType.TRAPEZOIDAL (#5334) 2026-02-09 01:02:18 +01:00
dependabot[bot]andGitHub 3b4b5b9279 Bump org.apache.maven.plugins:maven-dependency-plugin (#5337)
Bumps [org.apache.maven.plugins:maven-dependency-plugin](https://github.com/apache/maven-dependency-plugin) from 3.9.0 to 3.10.0.
- [Release notes](https://github.com/apache/maven-dependency-plugin/releases)
- [Commits](https://github.com/apache/maven-dependency-plugin/compare/maven-dependency-plugin-3.9.0...maven-dependency-plugin-3.10.0)

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-09 00:52:47 +01:00
Florian HotzeandGitHub 9b854e264f [auth] UserRegistryImpl: Allow registering additional ManagedProviders & Allow field access for subclasses of GenericUser (#5328)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2026-02-06 11:19:47 +01:00
NadaharandGitHub 7343711214 Adjust REST HTTP response status codes (#5236)
Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
2026-02-05 18:57:27 +01:00
Holger FriedrichandGitHub cca4f2fcdc Upgrade to Pax Web 8.0.34 / Jetty 9.4.58.v20250814 (#5324)
* Upgrade Pax Web from 8.0.33 to 8.0.34
* Upgrade Jetty from 9.4.57 to 9.4.58
* Upgrade log4j-api from 2.0.16 to 2.0.17

This was missed when Karaf was upgraded to 4.4.9 in #5195.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2026-02-05 08:51:13 +01:00
Florian HotzeandGitHub 450c104d5a [auth] Decouple session & API token management from ManagedUser implementation & JaasAuthenticationProvider fixes (#5325)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2026-02-04 23:07:44 +01:00
dependabot[bot]andGitHub 4644636284 Bump org.apache.maven.plugins:maven-compiler-plugin (#5322)
Bumps [org.apache.maven.plugins:maven-compiler-plugin](https://github.com/apache/maven-compiler-plugin) from 3.14.1 to 3.15.0.
- [Release notes](https://github.com/apache/maven-compiler-plugin/releases)
- [Commits](https://github.com/apache/maven-compiler-plugin/compare/maven-compiler-plugin-3.14.1...maven-compiler-plugin-3.15.0)

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-02 08:46:37 +01:00
lolodomoandGitHub 1a41209d9c [REST] API /file-format/parse: do not extend thing/channel config (#5295)
* [REST] API /file-format/parse: do not extend thing/channel config

The /file-format/parse API does no more extend the thing and channel configuration with parameters having a default value. The output will contain hte thing/channel configuration parameters provided in the input.

It is fixed for YAML and DSL formats.

Unit tests added for YAML models containing Thing


Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2026-01-27 16:04:54 +01:00
Jeff JamesandGitHub 84d284514b Updated item and persistent REST services to use itemName vs. itemname. (#5308)
Signed-off-by: Jeff James <jeff@james-online.com>
2026-01-26 20:22:02 +01:00
dependabot[bot]andGitHub 62a1da0c07 Bump org.codehaus.plexus:plexus-compiler-eclipse from 2.16.1 to 2.16.2 (#5311)
Bumps org.codehaus.plexus:plexus-compiler-eclipse from 2.16.1 to 2.16.2.

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-26 20:16:43 +01:00
Holger FriedrichandGitHub 33d0e2af63 Fix test failures in DiscoveryServiceRegistryOSGiTest (#5309)
* Fix test failures in DiscoveryServiceRegistryOSGiTest

Follow-up to #5307. Apply the fix to more test cases.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2026-01-26 08:07:06 +01:00
Jacob LaursenandGitHub c543c214ee Optimize ZonedDateTime.now().toInstant() (#5303)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2026-01-25 16:53:39 +01:00
CopilotGitHubcopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>holgerfriedrich
73c65c5213 Fix test failures in DiscoveryServiceRegistryOSGiTest by resetting mock after cached result replay (#5307)
* Initial plan

* Fix Mockito verification failures in DiscoveryServiceRegistryOSGiTest

Add reset(discoveryListenerMock) after addDiscoveryListener() in both testRemoveOlderResultsOnlySameService() and testRemoveOlderResultsOnlyOfSpecificBridge() to clear the mock invocation counter after cached results are replayed.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: holgerfriedrich <2121139+holgerfriedrich@users.noreply.github.com>
2026-01-25 14:54:35 +01:00
Jacob LaursenandGitHub 9a4193a89e Fix LogDTO.compareTo to avoid overflow and contract violation (#5304)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2026-01-25 13:29:25 +01:00
Jacob LaursenandGitHub 01eb3d27c7 Fix Instant deserialization for action inputs (#5296)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2026-01-24 16:49:23 +01:00
Holger FriedrichandGitHub 1b77da10cd Add JDK25 generating Java21 bytecode (#5290)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2026-01-23 21:15:39 +01:00
dependabot[bot]andGitHub d1d4e42228 Bump jackson.version from 2.20.1 to 2.21.0 (#5294)
* Bump jackson.version from 2.20.1 to 2.21.0

Bumps `jackson.version` from 2.20.1 to 2.21.0.

Updates `com.fasterxml.jackson.core:jackson-core` from 2.20.1 to 2.21.0
- [Commits](https://github.com/FasterXML/jackson-core/compare/jackson-core-2.20.1...jackson-core-2.21.0)

Updates `com.fasterxml.jackson.core:jackson-databind` from 2.20.1 to 2.21.0
- [Commits](https://github.com/FasterXML/jackson/commits)

Updates `com.fasterxml.jackson.dataformat:jackson-dataformat-cbor` from 2.20.1 to 2.21.0
- [Commits](https://github.com/FasterXML/jackson-dataformats-binary/compare/jackson-dataformats-binary-2.20.1...jackson-dataformats-binary-2.21.0)

Updates `com.fasterxml.jackson.dataformat:jackson-dataformat-xml` from 2.20.1 to 2.21.0
- [Commits](https://github.com/FasterXML/jackson-dataformat-xml/compare/jackson-dataformat-xml-2.20.1...jackson-dataformat-xml-2.21.0)

Updates `com.fasterxml.jackson.dataformat:jackson-dataformat-yaml` from 2.20.1 to 2.21.0
- [Commits](https://github.com/FasterXML/jackson-dataformats-text/compare/jackson-dataformats-text-2.20.1...jackson-dataformats-text-2.21.0)

Updates `com.fasterxml.jackson.datatype:jackson-datatype-jdk8` from 2.20.1 to 2.21.0

Updates `com.fasterxml.jackson.datatype:jackson-datatype-jsr310` from 2.20.1 to 2.21.0

Updates `com.fasterxml.jackson.jaxrs:jackson-jaxrs-base` from 2.20.1 to 2.21.0
- [Commits](https://github.com/FasterXML/jackson-jaxrs-providers/compare/jackson-jaxrs-providers-2.20.1...jackson-jaxrs-providers-2.21.0)

Updates `com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider` from 2.20.1 to 2.21.0

Updates `com.fasterxml.jackson.module:jackson-module-jaxb-annotations` from 2.20.1 to 2.21.0
- [Commits](https://github.com/FasterXML/jackson-modules-base/compare/jackson-modules-base-2.20.1...jackson-modules-base-2.21.0)

---
updated-dependencies:
- dependency-name: com.fasterxml.jackson.core:jackson-core
  dependency-version: 2.21.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.core:jackson-databind
  dependency-version: 2.21.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.dataformat:jackson-dataformat-cbor
  dependency-version: 2.21.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.dataformat:jackson-dataformat-xml
  dependency-version: 2.21.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.dataformat:jackson-dataformat-yaml
  dependency-version: 2.21.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.datatype:jackson-datatype-jdk8
  dependency-version: 2.21.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.datatype:jackson-datatype-jsr310
  dependency-version: 2.21.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.jaxrs:jackson-jaxrs-base
  dependency-version: 2.21.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider
  dependency-version: 2.21.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.module:jackson-module-jaxb-annotations
  dependency-version: 2.21.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2026-01-23 21:06:11 +01:00
Holger FriedrichandGitHub 352e81b201 [io.rest] Restore disabled iTests (#5302)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2026-01-23 20:58:28 +01:00
jimtngandGitHub e206397672 Add support for short-form expire property in Item Yaml config (#5252)
* Add support for short-form expire property in Item Yaml config

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2026-01-23 19:55:47 +01:00
jimtngandGitHub 4b7ad7a23e Add support for short-form metadata namespace in Item Yaml config (#5250)
* Support deserializing short-form metadata in YamlMetadataDTO

So we can set
`metadata: value`

instead of
```
metadata:
  value: value
```

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2026-01-23 19:53:12 +01:00
Holger FriedrichandGitHub 9e9409b98b Pin xtext/xtend to target Java version (#5289)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2026-01-23 19:43:37 +01:00
dependabot[bot]andGitHub 8fbc72eabf Bump ch.qos.logback:logback-core from 1.5.24 to 1.5.25 in /bundles/org.openhab.core.test (#5298)
* Bump ch.qos.logback:logback-core in /bundles/org.openhab.core.test

Bumps [ch.qos.logback:logback-core](https://github.com/qos-ch/logback) from 1.5.24 to 1.5.25.
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.24...v_1.5.25)

---
updated-dependencies:
- dependency-name: ch.qos.logback:logback-core
  dependency-version: 1.5.25
  dependency-type: direct:production
...

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2026-01-23 19:41:24 +01:00
dependabot[bot]andGitHub c1ac5de12f Upgrade bndtools to 7.2.1 and re-establish iTests (#5279)
* Bump bnd.version from 7.1.0 to 7.2.1

Bumps `bnd.version` from 7.1.0 to 7.2.1.

Updates `biz.aQute.bnd:bnd-maven-plugin` from 7.1.0 to 7.2.1
- [Release notes](https://github.com/bndtools/bnd/releases)
- [Commits](https://github.com/bndtools/bnd/compare/7.1.0...7.2.1)

Updates `biz.aQute.bnd:bnd-indexer-maven-plugin` from 7.1.0 to 7.2.1
- [Release notes](https://github.com/bndtools/bnd/releases)
- [Commits](https://github.com/bndtools/bnd/compare/7.1.0...7.2.1)

Updates `biz.aQute.bnd:bnd-resolver-maven-plugin` from 7.1.0 to 7.2.1
- [Release notes](https://github.com/bndtools/bnd/releases)
- [Commits](https://github.com/bndtools/bnd/compare/7.1.0...7.2.1)

Updates `biz.aQute.bnd:bnd-export-maven-plugin` from 7.1.0 to 7.2.1
- [Release notes](https://github.com/bndtools/bnd/releases)
- [Commits](https://github.com/bndtools/bnd/compare/7.1.0...7.2.1)

Updates `biz.aQute.bnd:bnd-testing-maven-plugin` from 7.1.0 to 7.2.1
- [Release notes](https://github.com/bndtools/bnd/releases)
- [Commits](https://github.com/bndtools/bnd/compare/7.1.0...7.2.1)

Updates `biz.aQute.bnd:bnd-baseline-maven-plugin` from 7.1.0 to 7.2.1
- [Release notes](https://github.com/bndtools/bnd/releases)
- [Commits](https://github.com/bndtools/bnd/compare/7.1.0...7.2.1)

Updates `biz.aQute.bnd:biz.aQute.tester.junit-platform` from 7.1.0 to 7.2.1
- [Release notes](https://github.com/bndtools/bnd/releases)
- [Commits](https://github.com/bndtools/bnd/compare/7.1.0...7.2.1)

---
updated-dependencies:
- dependency-name: biz.aQute.bnd:bnd-maven-plugin
  dependency-version: 7.2.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: biz.aQute.bnd:bnd-indexer-maven-plugin
  dependency-version: 7.2.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: biz.aQute.bnd:bnd-resolver-maven-plugin
  dependency-version: 7.2.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: biz.aQute.bnd:bnd-export-maven-plugin
  dependency-version: 7.2.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: biz.aQute.bnd:bnd-testing-maven-plugin
  dependency-version: 7.2.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: biz.aQute.bnd:bnd-baseline-maven-plugin
  dependency-version: 7.2.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: biz.aQute.bnd:biz.aQute.tester.junit-platform
  dependency-version: 7.2.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

* adapt folder structure, add timeouts and dependencies
* Fix bnd warnings about backslashes in pom.xml
* Activate javaagent for tests to avoid JDK warnings

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2026-01-23 19:39:49 +01:00
dependabot[bot]andGitHub 7bd83e580f Bump org.codehaus.gmavenplus:gmavenplus-plugin from 4.2.1 to 4.3.0 (#5300)
Bumps [org.codehaus.gmavenplus:gmavenplus-plugin](https://github.com/groovy/GMavenPlus) from 4.2.1 to 4.3.0.
- [Release notes](https://github.com/groovy/GMavenPlus/releases)
- [Commits](https://github.com/groovy/GMavenPlus/compare/4.2.1...4.3.0)

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-22 23:13:16 +01:00
dependabot[bot]andGitHub a60dfbc176 Bump org.apache.groovy:groovy-all from 5.0.3 to 5.0.4 (#5299)
Bumps [org.apache.groovy:groovy-all](https://github.com/apache/groovy) from 5.0.3 to 5.0.4.
- [Commits](https://github.com/apache/groovy/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-22 23:12:30 +01:00
jimtngandGitHub 2d4793a829 [YAML Thing Provider] Log warning on Thing config errors (#5282)
Catch IAE during Thing configuration loading to prevent
the entire file from failing. Errors are now logged as warnings
instead of throwing a full stack trace.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2026-01-22 17:16:20 +01:00
Jeff JamesandGitHub fbd0d987ea Enhancements and corrections in openapi spec (#5203)
- 'config' in RootUIComponent/UIComponent was of the wrong type in openapi spec
- getType accessor in UIComponent generated a property
- Updated the naming of data structures in openapi spec w/o the internal DTO nomenclature for consistency and simplicity

Also-by: Florian Hotze <dev@florianhotze.com>
Also-by: Wouter Born <github@maindrain.net>
Signed-off-by: Jeff James <jeff@james-online.com>
2026-01-22 14:49:20 +01:00
Florian HotzeandGitHub aff119cd19 IconServlet: Remove error & warn logging when client disconnected while sending response (#5257)
When a client disconnected while receiving the icon byte stream response,
an error and a warning were logged, making users worried:

```
2022-08-15 20:09:31.387 [ERROR] [ab.core.ui.icon.internal.IconServlet] - Failed sending the icon byte stream as a response: null
2022-08-15 20:09:31.390 [WARN ] [org.eclipse.jetty.server.HttpChannel] - /icon/autarky
java.lang.IllegalStateException: ABORTED
	at org.eclipse.jetty.server.HttpChannelState.sendError(HttpChannelState.java:915) ~[?:?]
    ...
```

IMO, there is no need to log at ERROR or WARN level in such cases,
so I decided to reduce to DEBUG logging.

The following script can be used to reproduce the above case:

```python
import socket
import struct

host = 'localhost'
port = 8080
path = '/icon/BatteryLevel?format=svg&anyFormat=true&state=94+%25&iconset=classic'
request = f"GET {path} HTTP/1.1\r\nHost: {host}\r\nConnection: keep-alive\r\n\r\n"

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((host, port))

# Send the request
s.sendall(request.encode())

# FORCE an immediate hard reset (RST)
# This ensures the server sees a connection failure while it's inside doGet
s.setsockopt(socket.SOL_SOCKET, socket.SO_LINGER, struct.pack('ii', 1, 0))
s.close()
```

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2026-01-17 19:45:21 +01:00