instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
ably__ably-java__1056
ably/ably-java
1,056
defect
2c0f111073fb070ef9e6c6fce2c44b883593e802
8c3d03ce380c5144b525610511ab431b1e2e5599
[ECO-5188] MessageAction enum changes
per https://github.com/ably/specification/pull/263 Breaking change but this was agreed, as no clients are currently using the action yet. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Breaking Changes** - Removed `MESSAGE_UNSET`, `ANNOTATION_CREATE`, and `...
diff --git a/lib/src/main/java/io/ably/lib/types/MessageAction.java b/lib/src/main/java/io/ably/lib/types/MessageAction.java index 8c80e914c..02439df2a 100644 --- a/lib/src/main/java/io/ably/lib/types/MessageAction.java +++ b/lib/src/main/java/io/ably/lib/types/MessageAction.java @@ -1,13 +1,11 @@ package io.ably.lib....
1
1
1
[{"id": "G0", "claim": "Fix the syntax error in the enum declaration: MESSAGE_SUMMARY is incorrectly terminated with a semicolon after META_OCCUPANCY;, which will cause a compilation error; additionally, use proper Javadoc comments for documenting ordinal values.", "category": "correctness", "verdict": "supported", "pr...
null
ably__ably-java__1059
ably/ably-java
1,059
defect
bbb3ec2f9a0e9fa1908760704e065a1765f4514d
4610d4d86aa18cfc8f36e1161693a77f49101b1f
[ECO-5193] Support message edits and deletes
- Fixed #1058 TODO - [x] TM2l = refSerial string – an opaque string that uniquely identifies some referenced message. - [x] TM2m = refType string – an opaque string that identifies the type of this reference. - [x] TM2n = operation – object that contain `clientId`, `description` and `metadata`. - [x] Add integr...
diff --git a/lib/src/main/java/io/ably/lib/types/Message.java b/lib/src/main/java/io/ably/lib/types/Message.java index 99eed55f5..463a361bb 100644 --- a/lib/src/main/java/io/ably/lib/types/Message.java +++ b/lib/src/main/java/io/ably/lib/types/Message.java @@ -3,6 +3,9 @@ import java.io.IOException; import java.lang....
14
4
1
[{"id": "G0", "claim": "Operation.write() always packs a map header of 3 even when some of clientId, description and metadata are null, so fewer fields are packed than announced and deserialization becomes inconsistent.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id"...
null
ably__ably-java__1077
ably/ably-java
1,077
defect
3c9bd095c21d3b4d3552f3b8b268f0369e73f972
2ec29e7ac1cdec7aadc520c1707f5cbb859c76d7
[ECO-5246] fix: Realtime Client Reconnection Logic
Resolves https://github.com/ably/ably-java/issues/1074 Previously, we cleared all channels on the close event, causing all previously acquired channels to become orphaned. We have now removed this logic and fixed the reconnection behavior to align with the spec <!-- This is an auto-generated comment: release note...
diff --git a/lib/src/main/java/io/ably/lib/realtime/AblyRealtime.java b/lib/src/main/java/io/ably/lib/realtime/AblyRealtime.java index 8e7c99a63..5c29a0dea 100644 --- a/lib/src/main/java/io/ably/lib/realtime/AblyRealtime.java +++ b/lib/src/main/java/io/ably/lib/realtime/AblyRealtime.java @@ -64,14 +64,6 @@ public AblyR...
2
2
0
[{"id": "G0", "claim": "The connect_on_closed_client test should check the connection closed state and that msgSerial is non-zero before reconnecting.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The connect_on_closing_client test may flake because th...
null
ably__ably-java__1085
ably/ably-java
1,085
defect
aedfd9b3b76b5ca78ab7c21397ae894ba38431e4
abe200c3fe5e29688ad9ba1a124bb88ded9231ea
Setup : LiveObject plugin
Fixed https://github.com/ably/ably-java/issues/1084 1. Declared required liveobject java interfaces 2. Implemented liveobject interface for LiveObjectsPlugin <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced Live Objects support, ...
diff --git a/android/src/main/java/io/ably/lib/realtime/Channel.java b/android/src/main/java/io/ably/lib/realtime/Channel.java index daafe5188..baf086cbc 100644 --- a/android/src/main/java/io/ably/lib/realtime/Channel.java +++ b/android/src/main/java/io/ably/lib/realtime/Channel.java @@ -3,6 +3,8 @@ import io.ably.lib...
23
9
1
[{"id": "G0", "claim": "The plugin caches LiveObjects instances in a plain mutable map with no synchronization, so concurrent Ably operations may corrupt it; use a thread-safe collection instead.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Ko...
null
ably__ably-java__1158
ably/ably-java
1,158
defect
39c62f64751628030367a4c2615cb9b608f65509
367a751f85d2c5f2266e1038b42a35aca87c2396
[ECO-5056] use server-provided GC grace period for garbage collection
- Fixed #1116 - Add support for server-configured objectsGCGracePeriod from connection details, with fallback to default 24-hour period. Updates ObjectsPool and all LiveObjects - Implementations to use the server-provided value for tombstone cleanup timing. <!-- This is an auto-generated comment: release notes by c...
diff --git a/lib/src/main/java/io/ably/lib/objects/Adapter.java b/lib/src/main/java/io/ably/lib/objects/Adapter.java index e9a084ae7..76c35cc37 100644 --- a/lib/src/main/java/io/ably/lib/objects/Adapter.java +++ b/lib/src/main/java/io/ably/lib/objects/Adapter.java @@ -2,7 +2,7 @@ import io.ably.lib.realtime.AblyReal...
17
3
1
[{"id": "G0", "claim": "If the client is already connected and objectsGCGracePeriod is still null, no further connected event fires and the retrieveObjectsGCGracePeriod callback is never invoked; guard the already-connected case.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduce...
null
ably__ably-java__1163
ably/ably-java
1,163
defect
3f9d007f2f0bd71e516765064c09c0b47bab8104
80b7009265aa3db4bd3d6c9540155376144a85ef
feat: implement protocol v4 support for enhanced message annotations and versioning
Resolves https://github.com/ably/ably-java/issues/1162 Introduce `MessageAnnotations` and `MessageVersion` classes for protocol v4. Replace `summary` with `annotations` in `Message`. Enhance version tracking with detailed metadata, ensuring compatibility with the new protocol. Update tests and protocol version to `4...
diff --git a/lib/src/main/java/io/ably/lib/transport/Defaults.java b/lib/src/main/java/io/ably/lib/transport/Defaults.java index 1c1b6c0a6..d55bce53e 100644 --- a/lib/src/main/java/io/ably/lib/transport/Defaults.java +++ b/lib/src/main/java/io/ably/lib/transport/Defaults.java @@ -12,7 +12,7 @@ public class Defaults { ...
20
10
1
[{"id": "G0", "claim": "MsgPack decoding of Message.version unconditionally reads a map, so legacy payloads that encoded version as a string will fail to decode; handle both STRING and MAP.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The JSON dec...
null
ably__ably-java__1165
ably/ably-java
1,165
defect
3f9d007f2f0bd71e516765064c09c0b47bab8104
0c75dbc3c00912aa1fcc5bdb8abe8916485dbfea
[ECO-5514] fix: improve WebSocket transport lifecycle and activity management
Resolves https://github.com/ably/ably-java/issues/1144 * Force-cancel hanging socket connections * Replace synchronized blocks with fine-grained locking using `activityTimerMonitor` to avoid deadlocks. * Refactor `close()` for safer access to shared fields and handle uninitialized cases gracefully. * Simplify act...
diff --git a/lib/src/main/java/io/ably/lib/transport/WebSocketTransport.java b/lib/src/main/java/io/ably/lib/transport/WebSocketTransport.java index 69ce91a34..715255b5d 100644 --- a/lib/src/main/java/io/ably/lib/transport/WebSocketTransport.java +++ b/lib/src/main/java/io/ably/lib/transport/WebSocketTransport.java @@ ...
14
2
2
[{"id": "G0", "claim": "webSocketClient, webSocketHandler and connectListener are read and written from multiple threads after this PR removed synchronization, so they should be marked volatile to restore memory-visibility guarantees.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introd...
null
ably__ably-java__1171
ably/ably-java
1,171
defect
96fbe1b2809628e52ea00f726b9c9df8a3daf145
0433d9faec1f1456bf8586bc1361ade1c3e5ced3
[ECO-5613] fix: resolve presence re-entry on channel re-attach
- Ensure presence update messages are correctly sent. - Add logging for presence updates in `Presence`, improving debuggability. - Update presence re-entry tests. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Presence callbacks now run after ...
diff --git a/lib/src/main/java/io/ably/lib/realtime/ChannelBase.java b/lib/src/main/java/io/ably/lib/realtime/ChannelBase.java index d12114fcb..283e9879d 100644 --- a/lib/src/main/java/io/ably/lib/realtime/ChannelBase.java +++ b/lib/src/main/java/io/ably/lib/realtime/ChannelBase.java @@ -461,13 +461,13 @@ private void ...
9
1
1
[{"id": "G0", "claim": "Remove the unused waitForPresence helper stub and the unused java.util.function.Predicate import (wire the helper up with real logic or delete it).", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The wrongPresenceEmitted f...
null
ably__ably-java__1174
ably/ably-java
1,174
defect
f76f5a8fdd94fe43462e45b0bbcac9db1bae41f7
1c996833bfda021deda7ba047c6ee3f5bc930d06
Release v1.4.1
### What's Changed * Handled null check for empty `data` in `Message` decoding logic in https://github.com/ably/ably-java/pull/1168 * Resolved presence re-entry on channel re-attach in https://github.com/ably/ably-java/pull/1171 * Added`toString` method in `ChannelStateChange` class for improved debugging in https...
diff --git a/CHANGELOG.md b/CHANGELOG.md index f9c82de50..ec100e74d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Change Log +## [1.4.1](https://github.com/ably/ably-java/tree/v1.4.1) + +[Full Changelog](https://github.com/ably/ably-java/compare/v1.4.0...v1.4.1) + +### What's Changed + +* Handled n...
3
1
0
[{"id": "G0", "claim": "The new 1.4.1 changelog entries on lines 9-12 use bare URLs that violate markdownlint (MD034) and are inconsistent with the changelog's own [#XXXX](url) link style; they should be wrapped or converted to markdown links (raised as optional in M002, as a minor potential issue in M005).", "category...
null
ably__ably-java__1176
ably/ably-java
1,176
defect
6d66f58431354dde0c217f4417b57f4e1ee45850
764e71cdd84870ec7b067a6ac94d91930862de3e
fix: reconnect breaks async requests
Resolves https://github.com/ably/ably-java/issues/1175 Introduced `connect()` in `AblyBase` to reset thread pools when `AblyRealtime.connect()` is called after `close()` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added explicit connect...
diff --git a/lib/src/main/java/io/ably/lib/http/AsyncHttpScheduler.java b/lib/src/main/java/io/ably/lib/http/AsyncHttpScheduler.java index 285cd856c..38b45905f 100644 --- a/lib/src/main/java/io/ably/lib/http/AsyncHttpScheduler.java +++ b/lib/src/main/java/io/ably/lib/http/AsyncHttpScheduler.java @@ -33,16 +33,23 @@ pub...
4
2
2
[{"id": "G0", "claim": "The assertion `ablyTime.get() > timestamp` is racy when the actions runner's system clock runs ahead of server time, since the server time may not be strictly greater than the locally captured timestamp.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {...
null
ably__ably-java__1182
ably/ably-java
1,182
defect
16d372d6c8c378bce7fea0a19401fc512e8d8e59
9153b207ad49194b514bc599b828d033294c72db
[AIT-99] feat: protocol v5 + message appends
Adds message appends and protocol v5 upgrade, Spec PR: https://github.com/ably/specification/pull/406/files <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added message append operation and message version history retrieval. * **Improvemen...
diff --git a/lib/src/main/java/io/ably/lib/realtime/ChannelBase.java b/lib/src/main/java/io/ably/lib/realtime/ChannelBase.java index b43bf363c..ded2c967d 100644 --- a/lib/src/main/java/io/ably/lib/realtime/ChannelBase.java +++ b/lib/src/main/java/io/ably/lib/realtime/ChannelBase.java @@ -43,6 +43,7 @@ import io.ably.l...
16
5
1
[{"id": "G0", "claim": "UpdateDeleteResult.readMsgpack does not consume (skip) the value of unknown fields, which corrupts the MessagePack stream or throws an IOException when the server sends any field other than versionSerial.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced...
null
ably__ably-java__1183
ably/ably-java
1,183
defect
16d372d6c8c378bce7fea0a19401fc512e8d8e59
2846cdecfaade470905557308057f1e11a3c725d
[AIT-98] feat: realtime edits and deletes
Replaced rest message edits and deletes with realtime for realtime client. Spec PR https://github.com/ably/specification/pull/406/files <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Callbacks now return per-message publish results (includ...
diff --git a/lib/src/main/java/io/ably/lib/realtime/ChannelBase.java b/lib/src/main/java/io/ably/lib/realtime/ChannelBase.java index b43bf363c..5bac5f249 100644 --- a/lib/src/main/java/io/ably/lib/realtime/ChannelBase.java +++ b/lib/src/main/java/io/ably/lib/realtime/ChannelBase.java @@ -31,6 +31,7 @@ import io.ably.l...
26
12
4
[{"id": "G0", "claim": "The AblyRealtime instance created in @Before is never closed, which can leak connections and threads across test runs; add an @After that closes it.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "updateDeleteImpl builds updatedMe...
null
ably__ably-java__1184
ably/ably-java
1,184
defect
31969a8a124acf977ae8fe981d0e076d7e79306f
e3a601ce5ea03e13b6b73bec0d0c3d2b9f42da2e
[AIT-84] feat: add support for returning serials on `publish`
- Introduced `publishWithResult` API to include message serials in the response. - Added callback-based `publishAsync` method for asynchronous publishing with serials. - Deprecated older `CompletionListener`-based publish methods in favor of `Callback<PublishResult>`. <!-- This is an auto-generated comment: release ...
diff --git a/android/src/main/java/io/ably/lib/push/PushChannel.java b/android/src/main/java/io/ably/lib/push/PushChannel.java index 8ac796368..55b3a96d8 100644 --- a/android/src/main/java/io/ably/lib/push/PushChannel.java +++ b/android/src/main/java/io/ably/lib/push/PushChannel.java @@ -49,7 +49,7 @@ public void subsc...
10
5
1
[{"id": "G0", "claim": "In updateMessage_updateEncodedData the AsyncWaiter is created but never passed to channel.publish, so waitFor() hangs indefinitely and the integration test times out after 300 seconds.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "cl...
null
ably__ably-java__1185
ably/ably-java
1,185
defect
90387feeb3fa6da01d95f7e99a8be663e1e6f015
1b7d440fef6b44ca0c9648b4eeba2610b448bf79
Release/1.6.0
### What's Changed * Message Updates and Deletes updated, Appends API added in https://github.com/ably/ably-java/pull/1182 * Mutable Message API over Realtime added in https://github.com/ably/ably-java/pull/1183 * Updated publish API to include message serials in the response in https://github.com/ably/ably-java/p...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8312651d4..f8fe6f74e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,69 @@ # Change Log +## [1.6.0](https://github.com/ably/ably-java/tree/v1.6.0) + +[Full Changelog](https://github.com/ably/ably-java/compare/v1.5.0...v1.6.0) + +### What's Changed + +* Message U...
2
2
0
[{"id": "G0", "claim": "The changelog's Realtime API bullet should read \"now use WebSocket transport\" instead of the ungrammatical \"are now use WebSocket transport\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The three 'What's Changed' bul...
null
ably__ably-java__1189
ably/ably-java
1,189
defect
f868cbce6a4c18c2b285be298b4572af0044f0ff
c2e453637e9682bd91bdca333b5fdb8c72aa0d36
Release/1.6.1
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Released v1.6.1 with an updated underlying dependency included in the patch. * **Chores** * Bumped version references across documentation and build configuration to 1.6.1. * Test expectations ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 43c29aedf..159d28e08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## [1.6.1](https://github.com/ably/ably-java/tree/v1.6.1) + +[Full Changelog](https://github.com/ably/ably-java/compare/v1.6.0...v1.6.1) + +**Fixed bugs:** + +- Upgrade msgp...
1
1
0
[{"id": "G0", "claim": "The 1.6.1 changelog entry should not present the msgpack-core upgrade as a bug fix — the \"**Fixed bugs:**\" heading the PR adds should be replaced with more neutral phrasing such as \"What's changed\", since the upgrade is a dependency change to fix an upstream vulnerability, not an SDK bug.", ...
null
ably__ably-java__1200
ably/ably-java
1,200
defect
5bf2dabb7427baac2a95e77d4444d632c1698b9a
8753178b00fe230af1c9f652d9d701946c1b4ffc
Release/1.7.0
### What's Changed - Introduce version 6 of the Ably protocol; add operation-specific payload fields to `ObjectOperation` and typed value fields to `ObjectData` [#1195](https://github.com/ably/ably-java/pull/1195) - Add support for partial sync of LiveObjects state [#1197](https://github.com/ably/ably-java/pull/11...
diff --git a/CHANGELOG.md b/CHANGELOG.md index ff4956ef9..d601704ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Change Log +## [1.7.0](https://github.com/ably/ably-java/tree/v1.7.0) + +[Full Changelog](https://github.com/ably/ably-java/compare/v1.6.1...v1.7.0) + +### What's Changed + +- Introduce...
2
1
0
[{"id": "G0", "claim": "Update the Live Objects install snippet in README.md from liveobjects:1.6.1 to liveobjects:1.7.0 so both install snippets show the same version.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test should not hard-code t...
null
ably__ably-java__176
ably/ably-java
176
defect
ba296063ec93d07e58f4ba2b1fd455a2419cc177
66ca17067ace38bd20d6b565d8e485c01bdfb5a9
custom fallback support
This is a tidy-up of what is in https://github.com/ably/ably-java/pull/141 based on the commits from Piotr. Don't merge it yet, as I am currently unable to run tests due to sandbox being down. But, @mattheworiordan, could you comment please on whether this addresses your comments in the earlier PR? Also moved the htt...
diff --git a/lib/src/main/java/io/ably/lib/http/AsyncHttp.java b/lib/src/main/java/io/ably/lib/http/AsyncHttp.java index 5d178fec2..889487955 100644 --- a/lib/src/main/java/io/ably/lib/http/AsyncHttp.java +++ b/lib/src/main/java/io/ably/lib/http/AsyncHttp.java @@ -2,6 +2,7 @@ import java.net.HttpURLConnection; impo...
4
4
1
[{"id": "G0", "claim": "The fallback hosts are shuffled unnecessarily on every HTTP request instead of being shuffled once at the outset when custom fallback hosts are provided.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new HostsTest.java i...
null
ably__ably-java__210
ably/ably-java
210
defect
eb4e91a5b92d6492389c412c821041e2cfc8acce
ecda9940be59002ba46300653fb7335460b79892
0.9: removed AuthOptions.force
The public authorize() now always forces. We do not yet have 0.9 authorize in place, so for now this always forces a disconnect and reconnect.
diff --git a/lib/src/main/java/io/ably/lib/http/Http.java b/lib/src/main/java/io/ably/lib/http/Http.java index 2ea1f85f5..b69e4f481 100644 --- a/lib/src/main/java/io/ably/lib/http/Http.java +++ b/lib/src/main/java/io/ably/lib/http/Http.java @@ -287,13 +287,7 @@ private String getAuthorizationHeader(boolean renew) throw...
3
3
2
[{"id": "G0", "claim": "The authorise() deprecation warning should be more explicit, e.g. \"authorise() is deprecated and will be removed in 1.0. Please use authorize() instead\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The public three-arg...
null
ably__ably-java__214
ably/ably-java
214
defect
5ec492f7d23978836a54659567573f4ebd4b711e
e7e28855ec19c65d93cb80dc7ef24aa4264cbda9
0.9 RTC8 in-place authorization
I'm doing a PR for this now so @paddy can start code review, but: 1. It includes the commit "RSA8e,RSA9h,RSA10j: do not merge TokenParams and AuthOptions", which also has its own PR. Once that other PR is merged, I can rebase to get rid of that commit. 2. I think this causes a rest test failure, but I haven't wor...
diff --git a/lib/src/main/java/io/ably/lib/http/Http.java b/lib/src/main/java/io/ably/lib/http/Http.java index f0a7be8a2..cd733c92a 100644 --- a/lib/src/main/java/io/ably/lib/http/Http.java +++ b/lib/src/main/java/io/ably/lib/http/Http.java @@ -288,7 +288,7 @@ private String getAuthorizationHeader(boolean renew) throws...
4
4
0
[{"id": "G0", "claim": "The verbose response-body log line should use System.lineSeparator() instead of a hard-coded \"\\n\" so output is Windows-friendly.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "ConnectionWaiter should not be static; mak...
null
ably__ably-java__215
ably/ably-java
215
defect
66454d223f4957204ce1738aa69269ab3de4da0f
eccac6c639b7333a992b550faba35dade1082aa4
RSL6b test, log errors
Fixed decoding message bugs, added logging for decoding/decryption problems, added test for inconsistent message encoding
diff --git a/lib/src/main/java/io/ably/lib/types/BaseMessage.java b/lib/src/main/java/io/ably/lib/types/BaseMessage.java index ef32b068e..2808bfba9 100644 --- a/lib/src/main/java/io/ably/lib/types/BaseMessage.java +++ b/lib/src/main/java/io/ably/lib/types/BaseMessage.java @@ -78,7 +78,12 @@ public void decode(ChannelOp...
3
3
1
[{"id": "G0", "claim": "Throwing an AblyException when base64 decoding fails is wrong: the data and encoding should be left unchanged, a message logged, and the event delivered to the listener as RSL6b requires (and the JSON decode case should do the same).", "category": "correctness", "verdict": "supported", "priority...
null
ably__ably-java__218
ably/ably-java
218
defect
21a9ffa9b6dab46821b16fed435ca894e55e0fc4
0abe16e73639dee0de4f6d8c805c6b92e1db65dc
0.9 RTL2,3 channel suspended state
This PR is the changes for the new channel suspended state, plus the new resumed flag in the attached message, and the new ChannelStateChange object. I believe the code is complete, but there is no test coverage for it yet. @paddy I don't know whether you want to 1. approve and merge it anyway on the basis that exi...
diff --git a/lib/src/main/java/io/ably/lib/realtime/Channel.java b/lib/src/main/java/io/ably/lib/realtime/Channel.java index 8512c4172..8cfb02afb 100644 --- a/lib/src/main/java/io/ably/lib/realtime/Channel.java +++ b/lib/src/main/java/io/ably/lib/realtime/Channel.java @@ -5,6 +5,7 @@ import io.ably.lib.http.Http.BodyH...
6
4
0
[{"id": "G0", "claim": "The pull request should have at least some tests covering the principal requirements before it is merged.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The RTL3d comment in setConnected() should be amended to reflect the lates...
null
ably__ably-java__274
ably/ably-java
274
defect
2094b63693cae0efb42cc2c7c05af695bd007e46
cb234adf975fcac0f5e59549f7b480482850a41a
Rename fromJSON() -> fromJson() and support Strings; rename *JSON* to *Json*
Fixes: https://github.com/ably/ably-java/issues/235
diff --git a/lib/src/main/java/io/ably/lib/http/Http.java b/lib/src/main/java/io/ably/lib/http/Http.java index 1c58dfa40..cb3b8ef16 100644 --- a/lib/src/main/java/io/ably/lib/http/Http.java +++ b/lib/src/main/java/io/ably/lib/http/Http.java @@ -116,9 +116,9 @@ public List<String> getHeaderFields(String name) { /** ...
1
1
1
[{"id": "G0", "claim": "The pull request comments out all but one of the test classes in RestSuite's @SuiteClasses, silently disabling those tests.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
ably__ably-java__275
ably/ably-java
275
defect
2094b63693cae0efb42cc2c7c05af695bd007e46
cac08e395dea39335208773e26a6ffded039f6f2
Request API support (RSC19)
This is an initial implementation and tests for the generic request API. There are issues with the API in Java that are not evident in dynamic languages, and also implementation issues in Java. Firstly, our `PaginatedQuery<T>` primitive is parameterised by the type `T` of the members of a collection that are the ...
diff --git a/lib/src/main/java/io/ably/lib/http/AsyncHttp.java b/lib/src/main/java/io/ably/lib/http/AsyncHttp.java index 60be06d36..091c2bb92 100644 --- a/lib/src/main/java/io/ably/lib/http/AsyncHttp.java +++ b/lib/src/main/java/io/ably/lib/http/AsyncHttp.java @@ -11,7 +11,6 @@ import io.ably.lib.http.Http.RequestBo...
11
5
3
[{"id": "G0", "claim": "The API shape (separate paginatedRequest/request methods returning PaginatedResult vs JsonElement) is unintuitive and should be reworked so users get a single generic request method instead of having to discover paginatedRequest and pick the response type in advance.", "category": "design", "ver...
null
ably__ably-java__385
ably/ably-java
385
defect
2de1ba46c3ca09bf2f857c9a94ab050a168ce696
a209402d421a837a86b047e467f19bf5665f835f
Fix invalid data test
Fixes this kind of failures https://travis-ci.org/ably/ably-java/jobs/363024037#L2177
diff --git a/lib/src/main/java/io/ably/lib/types/BaseMessage.java b/lib/src/main/java/io/ably/lib/types/BaseMessage.java index 666981fd4..285388df6 100644 --- a/lib/src/main/java/io/ably/lib/types/BaseMessage.java +++ b/lib/src/main/java/io/ably/lib/types/BaseMessage.java @@ -131,6 +131,7 @@ public void encode(ChannelO...
1
1
0
[{"id": "G0", "claim": "The test should also have a catch block for a Throwable that is not an AblyException, so that the test fails in that case.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ably__ably-java__389
ably/ably-java
389
defect
a4c33adc9988e823ddbb71c45766042cfee1d5e0
56c30f2c73622e3deeaf8201cd2fbd0b642b8033
Add connectionStateTtl
In preparation for https://github.com/ably/ably-java/issues/358 - [x] Remove `TIMEOUT_SUSPEND` - [x] add `connectionStateTtl` and use it instead of `TIMEOUT_SUSPEND`
diff --git a/lib/src/main/java/io/ably/lib/transport/ConnectionManager.java b/lib/src/main/java/io/ably/lib/transport/ConnectionManager.java index 0f7950327..eaf5977a0 100644 --- a/lib/src/main/java/io/ably/lib/transport/ConnectionManager.java +++ b/lib/src/main/java/io/ably/lib/transport/ConnectionManager.java @@ -145...
3
3
1
[{"id": "G0", "claim": "The connection_details_has_ttl test has no wait, so the registered onConnectionStateChanged callback is not necessarily waited for and the test cannot be known to have run or its assertion to have succeeded.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"...
null
ably__ably-java__393
ably/ably-java
393
defect
ee731b415719fe09943fcc76f7ae2425eff16203
0d1b1e704614113c6f9c34c4890bb9229978fcc3
Add jwt tests
Fix #384 - [X] Add tests that use `ClientOptions` - [X] Add tests that use `authURL` - [X] Add tests that use `authCallback` - [X] Add tests with JWT wrapping an Ably native token `x-ably-token` - [X] Add tests with encrypted token - [X] Add example when token is returned with `application/jwt` Content-Type -...
diff --git a/lib/src/main/java/io/ably/lib/rest/Auth.java b/lib/src/main/java/io/ably/lib/rest/Auth.java index 6f463cba7..e6c86a1e0 100644 --- a/lib/src/main/java/io/ably/lib/rest/Auth.java +++ b/lib/src/main/java/io/ably/lib/rest/Auth.java @@ -607,7 +607,7 @@ public Object handleResponse(HttpCore.Response response, Er...
17
17
5
[{"id": "G0", "claim": "In RealtimeJWTTest the hardcoded jwtRequesterOptions field should not be set up in setUpBefore; use createOptions() so it can be obtained from the environment, with a helper to create fresh options for each test.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introdu...
null
ably__ably-java__411
ably/ably-java
411
defect
aec15fba862d16b65666621a1afbd16a8c68b9d2
e89f420afde1ec7ebb10563a0112b4065b9b3170
RTL13b: ensure that detached+error responses form the server do not result in a busy loop of attach requests
Fixes: https://github.com/ably/ably-java/issues/410 See https://docs.ably.io/client-lib-development-guide/features/#RTL13 for spec.
diff --git a/lib/src/main/java/io/ably/lib/realtime/Channel.java b/lib/src/main/java/io/ably/lib/realtime/Channel.java index f64da5324..fa7238488 100644 --- a/lib/src/main/java/io/ably/lib/realtime/Channel.java +++ b/lib/src/main/java/io/ably/lib/realtime/Channel.java @@ -136,6 +136,7 @@ private void attachImpl(final C...
2
2
0
[{"id": "G0", "claim": "A Log.d statement would be worth adding in the catch block around attachWithTimeout(), where the reattach failure is otherwise handled without logging.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The fail() message in ...
null
ably__ably-java__446
ably/ably-java
446
defect
562b71ed4fd36d123c47d40100537ffda931a0d2
2ee72dd99a6c1ee55752e1865430efc99c5f435e
Implemented Spec: TM3, Message.fromEncoded
Implemented: 1. Message.fromEncoded(JsonObject) 2. Message.fromEncoded(String) 3. Message.fromEncoded(JsonArray) 4. Added Test cases for above methods. 5. Added negative test case for above methods.
diff --git a/lib/src/main/java/io/ably/lib/types/Message.java b/lib/src/main/java/io/ably/lib/types/Message.java index 19bee8e5f..34576ed1d 100644 --- a/lib/src/main/java/io/ably/lib/types/Message.java +++ b/lib/src/main/java/io/ably/lib/types/Message.java @@ -4,15 +4,12 @@ import java.lang.reflect.Type; import java....
10
10
2
[{"id": "G0", "claim": "The fromEncoded methods report exceptions with e.printStackTrace(), writing directly to stdout/stderr instead of using the library's Logger.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The fromEncoded methods should ha...
null
ably__ably-java__513
ably/ably-java
513
defect
368114a96c223cf0289a6c8d40fc60a62b7f6b07
dd3bfca6bba55b856e0b60d1503570c8afd3817d
ChannelOptions.withCipherKey + tests
PR for #492 Changes: * Commit 1: moved attributes of ChannelOptions at the top + javadocs * Commit 2: formatted method ``getCipher()`` (we should avoid inline ``if``s) * Commit 3: - Added method ``withChiperKey`` as per spec and deprecated ``fromCipherKey``. - Added tests. * Commit 4: cosmetic change...
diff --git a/lib/src/main/java/io/ably/lib/types/ChannelOptions.java b/lib/src/main/java/io/ably/lib/types/ChannelOptions.java index 5b58f8b89..2a59e7ebc 100644 --- a/lib/src/main/java/io/ably/lib/types/ChannelOptions.java +++ b/lib/src/main/java/io/ably/lib/types/ChannelOptions.java @@ -5,9 +5,22 @@ import io.ably.li...
1
1
0
[{"id": "G0", "claim": "The javadoc for the encrypted field should not be phrased as a question ('Are these options encrypted or not?').", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
ably__ably-java__535
ably/ably-java
535
defect
368114a96c223cf0289a6c8d40fc60a62b7f6b07
930e1338876d9f205b270341f506f6c4de5aba11
[WIP]Channel parameters implementation
This is an updated version of https://github.com/ably/ably-java/pull/504 based on delta decoding implemented as library plugin as per https://github.com/ably/wiki/issues/380#issuecomment-556189239
diff --git a/.gitmodules b/.gitmodules index ea3d64e15..9bc061c8b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "lib/src/test/resources/ably-common"] path = lib/src/test/resources/ably-common url = https://github.com/ably/ably-common.git +[submodule "submodules/ably-delta-codec-java"] + pat...
1
1
0
[{"id": "G0", "claim": "The TODO comment in shouldReattachToSetOptions (\"Check if the new options are different than the old ones\") should either still be actioned or be removed if it is no longer needed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
ably__ably-java__618
ably/ably-java
618
defect
ff72ddee2d93b1f5d0281d808c564328719e267b
207db4f98d88b6733483da5dfa662eef101f8da6
Defaults: Generate environment fallbacks
Fixes #603
diff --git a/lib/src/main/java/io/ably/lib/transport/Defaults.java b/lib/src/main/java/io/ably/lib/transport/Defaults.java index 2345388a4..fc7688a5f 100644 --- a/lib/src/main/java/io/ably/lib/transport/Defaults.java +++ b/lib/src/main/java/io/ably/lib/transport/Defaults.java @@ -53,4 +53,15 @@ public static int getPor...
10
9
2
[{"id": "G0", "claim": "The new tests could state the array normalisation more clearly (perhaps even comparing as sets), could cover the case where the set of fallbacks is exhausted (RSC15a), and should be moved into the same package within src/test as the class under test (io.ably.lib.transport) as pure unit tests.", ...
null
ably__ably-java__648
ably/ably-java
648
defect
f5e8466c99f5ad453a1e0682eb460ee83b9bca36
b0cf6f8261dd93a56f64eec36f1d4f1ad0b710c9
Remove empty capability query parameter
Fixes #647 The check was extended to transparently handle null and empty strings. If the value is null we should also return null and in this case, it shouldn't add this query parameter.
diff --git a/lib/src/main/java/io/ably/lib/rest/Auth.java b/lib/src/main/java/io/ably/lib/rest/Auth.java index 314238b0e..f25227eb6 100644 --- a/lib/src/main/java/io/ably/lib/rest/Auth.java +++ b/lib/src/main/java/io/ably/lib/rest/Auth.java @@ -708,8 +708,7 @@ public TokenRequest createTokenRequest(TokenParams params, ...
1
1
1
[{"id": "G0", "claim": "Capability.c14n should return null when the capability is empty, so that an empty capability is not sent to the server.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
ably__ably-java__672
ably/ably-java
672
defect
73d211c1f7da1abd3e583dedbf0431625491568f
08939d002da76695fced5909d81e04e8ef2119bc
Checking if error code is 403 and failing connection
- If server replies with 403 status code on authorisation attempt, connection state turns to Failed - Fixes [#620](https://github.com/ably/ably-java/issues/620)
diff --git a/lib/src/main/java/io/ably/lib/rest/Auth.java b/lib/src/main/java/io/ably/lib/rest/Auth.java index f25227eb6..1fd2b806a 100644 --- a/lib/src/main/java/io/ably/lib/rest/Auth.java +++ b/lib/src/main/java/io/ably/lib/rest/Auth.java @@ -491,7 +491,7 @@ public interface TokenCallback { * * - ttl: ...
3
2
2
[{"id": "G0", "claim": "The 403 handler should not set connection.state directly but emit the change through the connection's state-change mechanism (setState), which broadcasts the change to components that need to act on it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}...
null
ably__ably-java__678
ably/ably-java
678
defect
65b65c411e03cef643bb63bc57c04ed8af6dccd4
bed7b21b1e484de3eb59a86dcfaa2356d2f2ad06
Add request_id query param if addRequestIds is enabled
- Fixes [574](https://github.com/ably/ably-java/issues/574) - Implementation of `RSC7c`. Adds `addRequestIds` parameter to client options. If this option is enabled every REST request to Ably should include in a request_id query string parameter a random string obtained by url-safe base64-encoding a sequence of at lea...
diff --git a/android/src/main/java/io/ably/lib/push/ActivationStateMachine.java b/android/src/main/java/io/ably/lib/push/ActivationStateMachine.java index d478b4549..07d386ee7 100644 --- a/android/src/main/java/io/ably/lib/push/ActivationStateMachine.java +++ b/android/src/main/java/io/ably/lib/push/ActivationStateMach...
3
2
0
[{"id": "G0", "claim": "The params-building code repeated at the ActivationStateMachine call site (doubling the existing pushFullWait/addRequestIds repetition) should be DRYed up by moving it somewhere common within the scope of this pull request.", "category": "maintainability", "verdict": "supported", "priority": "P2...
null
ably__ably-java__681
ably/ably-java
681
defect
f06fde424a7d51c9f83023017939022bd729c8e8
8c5bd79a200f71a71148fffdfd71481ac523b5af
Support for encryption of shared preferences
- Fixes [593](https://github.com/ably/ably-java/issues/593) - Default SharedPreferences could be replaced with custom Storage implementation, ClientOptions allows to inject custom object. If nothing is injected current behaviour using SharedPreferences is used so no need to do any changes to keep current functionality...
diff --git a/android/src/androidTest/java/io/ably/lib/push/LocalDeviceStorageTest.java b/android/src/androidTest/java/io/ably/lib/push/LocalDeviceStorageTest.java new file mode 100644 index 000000000..7297a485a --- /dev/null +++ b/android/src/androidTest/java/io/ably/lib/push/LocalDeviceStorageTest.java @@ -0,0 +1,149 ...
8
6
1
[{"id": "G0", "claim": "The `reset` method should be renamed to something like `clear`, `flush` or `delete`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The SharedPreferences lookup repeated in every interface method should be taken out somew...
null
ably__ably-java__689
ably/ably-java
689
defect
31d8ae442e36610158565a86069bff7e7b6782eb
7eb7cacd039f68fe216e490b40b6c97153a40904
Removed forName method
- fixes [686](https://github.com/ably/ably-java/issues/686) and [685](https://github.com/ably/ably-java/issues/685) - Removed use of `forName` method in push activation state machine implementation and replaced by switch constructing Event object based on name
diff --git a/android/src/main/java/io/ably/lib/push/ActivationStateMachine.java b/android/src/main/java/io/ably/lib/push/ActivationStateMachine.java index d478b4549..5ded00ef5 100644 --- a/android/src/main/java/io/ably/lib/push/ActivationStateMachine.java +++ b/android/src/main/java/io/ably/lib/push/ActivationStateMach...
3
3
2
[{"id": "G0", "claim": "The catch branch that silently skips improperly persisted events (InstantiationException) should also log the error out, like the ClassNotFoundException branch above it does.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
ably__ably-java__722
ably/ably-java
722
defect
9d7d999d01f578b9e368bda28ac6bd948718de55
a30ee9401ff85744e9d7894fcd3b6085ba6f8b01
Added explicit locale for string manipulation methods
- fixes [#713](https://github.com/ably/ably-java/issues/713) - to prevent unexpected results, methods which do string manipulation or parsing should have explicit localisation (`Locale.ROOT`)
diff --git a/android/src/androidTest/java/io/ably/lib/test/android/AndroidSuite.java b/android/src/androidTest/java/io/ably/lib/test/android/AndroidSuite.java index 299218ec1..1f9b16429 100644 --- a/android/src/androidTest/java/io/ably/lib/test/android/AndroidSuite.java +++ b/android/src/androidTest/java/io/ably/lib/te...
3
3
0
[{"id": "G0", "claim": "Tests should be added for other parseable forms of the token type names, such as lower and mixed case (\"fcm\", \"gcm\", \"Fcm\").", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Tests should be added for forms that look correct b...
null
ably__ably-java__727
ably/ably-java
727
defect
af9ac0878ca2e0beebafa9e7ab6291a1066d3afb
03a8fe5e71d56c82daa96548168954ae6668b705
Simplified code to use FCM token type as default
- fixes [#703](https://github.com/ably/ably-java/issues/703) - By default FCM token type will be used, deprecated GCM type is kept only for cases when it's loaded from storage
diff --git a/android/src/androidTest/java/io/ably/lib/push/LocalDeviceStorageTest.java b/android/src/androidTest/java/io/ably/lib/push/LocalDeviceStorageTest.java index 2b88d3b5e..f2e3b438e 100644 --- a/android/src/androidTest/java/io/ably/lib/push/LocalDeviceStorageTest.java +++ b/android/src/androidTest/java/io/ably/...
3
3
2
[{"id": "G0", "claim": "This is a breaking change that forces users to change their code on upgrade; the original two-argument method should first be deprecated and kept for a few releases alongside a new recommended method so the upgrade process is more comfortable.", "category": "design", "verdict": "supported", "pri...
null
ably__ably-java__729
ably/ably-java
729
defect
af9ac0878ca2e0beebafa9e7ab6291a1066d3afb
c444c15368baae6bf16b9dd979b930a12e9547aa
Throw exception on unsupported json type
- fixes [#501](https://github.com/ably/ably-java/issues/501) - when object type doesn't match any json supported value type `JsonParseException` is thrown
diff --git a/lib/src/main/java/io/ably/lib/util/JsonUtils.java b/lib/src/main/java/io/ably/lib/util/JsonUtils.java index 5f028ecb4..3647abb74 100644 --- a/lib/src/main/java/io/ably/lib/util/JsonUtils.java +++ b/lib/src/main/java/io/ably/lib/util/JsonUtils.java @@ -2,6 +2,7 @@ import com.google.gson.JsonElement; imp...
3
2
1
[{"id": "G0", "claim": "JsonUtils is used by clients as well as internal code, so the new exception should be a checked exception (a breaking API change, with the docs updated) or be dropped in favour of a log statement, rather than an unchecked exception.", "category": "design", "verdict": "opposed", "priority": "P1",...
null
ably__ably-java__746
ably/ably-java
746
defect
bcd3bd9c12d8f4b34201a5d4b13493aa03d6aad1
0bd270c91c4cf9dafbc521fb4267d7d0f3ea3ab8
Split ChannelCipher implementation into encrypt and decrypt specialisms
I've made the cipher get method on `ChannelOptions` safe to be called from any thread. I've also added a lightweight protection to each cipher implementation to fail early with a `ConcurrentModificationException` if the cipher is asked to operate from multiple threads concurrently. This refactor ended up being a ...
diff --git a/lib/src/main/java/io/ably/lib/types/BaseMessage.java b/lib/src/main/java/io/ably/lib/types/BaseMessage.java index b5aa6c1cb..1dc39eaea 100644 --- a/lib/src/main/java/io/ably/lib/types/BaseMessage.java +++ b/lib/src/main/java/io/ably/lib/types/BaseMessage.java @@ -8,7 +8,7 @@ import com.google.gson.JsonPar...
3
2
1
[{"id": "G0", "claim": "The javadoc on the encrypt/decrypt methods should be clarified to say explicitly that the method is not thread safe, rather than only documenting the ConcurrentModificationException @throws tag.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id...
null
ably__ably-java__816
ably/ably-java
816
defect
faa89afa8b6dc4fb535a6f488e3b776c4a0ab8a7
718d5826517a4e9cd955ab4c1ce64f7bf766d3f8
Add new renew async method
On this PR, I added a new `renewAuth` to `Auth` that accepts a token and a completion handler. I also deprecated the old `renew`. This is done to prevent callers blocked and provide a handler for completion. The essential change here is moving the "waiting for connection state change" part to a background thread...
diff --git a/lib/src/main/java/io/ably/lib/realtime/AblyRealtime.java b/lib/src/main/java/io/ably/lib/realtime/AblyRealtime.java index 2a27a50fe..2626a2790 100644 --- a/lib/src/main/java/io/ably/lib/realtime/AblyRealtime.java +++ b/lib/src/main/java/io/ably/lib/realtime/AblyRealtime.java @@ -2,6 +2,7 @@ import java....
7
5
4
[{"id": "G0", "claim": "AblyBase.onAuthUpdatedAsync should be an abstract method, since its comment says it must be overridden by subclasses, rather than a concrete stub that returns null.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The @deprecated Java...
null
ably__ably-java__834
ably/ably-java
834
defect
ac5314efcbf63c9e81f46035791a797bf28ca530
5a23d44937600499d271d4166da0106492b9d869
Fail Ably connection if auth callback throws specific errors
The [RSA4d](https://docs.ably.com/client-lib-development-guide/features/#RSA4d) was not implemented properly as it only applied when you called `ably.auth.authorize()`. Now it applies whenever the token auth is being used. When an exception is thrown from the token auth callback that has the `statusCode` set to 403 ...
diff --git a/lib/src/main/java/io/ably/lib/rest/Auth.java b/lib/src/main/java/io/ably/lib/rest/Auth.java index 576db5745..5640c886c 100644 --- a/lib/src/main/java/io/ably/lib/rest/Auth.java +++ b/lib/src/main/java/io/ably/lib/rest/Auth.java @@ -23,6 +23,7 @@ import io.ably.lib.types.Capability; import io.ably.lib.typ...
5
3
0
[{"id": "G0", "claim": "New code in the auth-callback catch block of requestToken should use `final` rigorously: the catch parameter and the local boolean/int variables within that scope.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The NonRetriableToke...
null
ably__ably-java__887
ably/ably-java
887
defect
8c619a62e32483bea0b1be102541096654e430e4
9f5265077423b2497d3b62b5b5973947f8475f8b
Fix attach/detach race condition
This PR improves spec conformance for [RTL4h](https://sdk.ably.com/builds/ably/specification/main/features/#RTL4h) and [RTL5i](https://sdk.ably.com/builds/ably/specification/main/features/#RTL5i) However I think the spec might be a bit misleading (Please correct me if I'm wrong) In RTL4h, it writes > If the channe...
diff --git a/lib/src/main/java/io/ably/lib/realtime/ChannelBase.java b/lib/src/main/java/io/ably/lib/realtime/ChannelBase.java index 4dbb81644..258e39a86 100644 --- a/lib/src/main/java/io/ably/lib/realtime/ChannelBase.java +++ b/lib/src/main/java/io/ably/lib/realtime/ChannelBase.java @@ -88,6 +88,24 @@ public abstract ...
4
4
0
[{"id": "G0", "claim": "The log message in the pending-detach error handler reads \"Channel ailed to detach after attach\" and should say \"failed\".", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The assertEquals calls in the new tests pass actual ...
null
ably__ably-java__906
ably/ably-java
906
defect
e57183f8801615a2a9ca916f745928f49f192cba
b74ede1370095c1af2774b48817ce7d9bd8b1a1b
Improve after resume failure logic
This PR fixes two issues * When `queueEvents` is false, pending messages will also be cleared which was missing before. * Fixes the issue of reattachment when a connection resume failed. Previously as soon as connected message was received by connection manager, channels would directly attempt to attach. I have...
diff --git a/lib/src/main/java/io/ably/lib/realtime/AblyRealtime.java b/lib/src/main/java/io/ably/lib/realtime/AblyRealtime.java index 4a1f9b02d..6f052bdc5 100644 --- a/lib/src/main/java/io/ably/lib/realtime/AblyRealtime.java +++ b/lib/src/main/java/io/ably/lib/realtime/AblyRealtime.java @@ -1,7 +1,10 @@ package io.ab...
10
10
4
[{"id": "G1", "claim": "As written, the resume-failure transfer is very inefficient because it iterates through all queued messages multiple times, once for each channel.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The stray blank line added insi...
null
ably__ably-java__909
ably/ably-java
909
defect
a1e2c46266df1a6304b72aa1afd736f95f252c2e
0f789623784ccba8b6f3561338a7523db4db8bb6
908 presence message superseded
This change: - Changes Presence.pendingPresence to a List from a HashMap - When waiting for channel to attach, if multiple presence updates are received, these are all queued up for sending once attach completes (resulting in all completion listeners being called). This is a change from before, whereby only the mos...
diff --git a/lib/src/main/java/io/ably/lib/realtime/ChannelBase.java b/lib/src/main/java/io/ably/lib/realtime/ChannelBase.java index 3d219b33f..fb28d9665 100644 --- a/lib/src/main/java/io/ably/lib/realtime/ChannelBase.java +++ b/lib/src/main/java/io/ably/lib/realtime/ChannelBase.java @@ -196,8 +196,7 @@ synchronized vo...
3
3
2
[{"id": "G0", "claim": "The new CountingCompletionListener class should be placed together with the existing test helper classes instead of inline in the test file.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The validation loop could spin fo...
null
ably__ably-java__922
ably/ably-java
922
defect
f4a3671fb9ebacebb7adffb8655f56a5aba08441
70a4708333c6072757dde15ffa0272c3a1eae2fc
Add reason to pending message instead of creating an ErrorInfo
This PR passes `reason` to `fail()` from `failQueuedMessages` instead of creating an empty `ErrorInfo`. Fixes https://github.com/ably/ably-java/issues/920
diff --git a/lib/src/main/java/io/ably/lib/transport/ConnectionManager.java b/lib/src/main/java/io/ably/lib/transport/ConnectionManager.java index 7dbe8b068..7db3a8b4d 100644 --- a/lib/src/main/java/io/ably/lib/transport/ConnectionManager.java +++ b/lib/src/main/java/io/ably/lib/transport/ConnectionManager.java @@ -168...
1
1
0
[{"id": "G0", "claim": "The pull request should add an assertion in a test somewhere that makes sure the error message passed to the pending-message failure listener is set, so a future regression can be avoided.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ably__ably-java__928
ably/ably-java
928
defect
99a4ca601093e5a25fe017cccd152aa9bbe405e7
a147df8701d5cc8bd13e70081a9b52c97f0f3ed1
Suspend timer is set when transport is unavailable and last state was connected
Previously, a connection that had been connected for longer than the suspend timer period (set in onConnected) would have immediately transitioned to suspended when the transport became unavailable. This is because the timer is not reset the first time the transport fails. This change fixes this by resetting the sus...
diff --git a/lib/src/main/java/io/ably/lib/transport/ConnectionManager.java b/lib/src/main/java/io/ably/lib/transport/ConnectionManager.java index 09ab6505a..12b83284d 100644 --- a/lib/src/main/java/io/ably/lib/transport/ConnectionManager.java +++ b/lib/src/main/java/io/ably/lib/transport/ConnectionManager.java @@ -146...
1
1
0
[{"id": "G0", "claim": "The pull request should also remove the pre-existing setSuspendTime() call in Disconnected.enact (ConnectionManager.java line 313), since onTransportUnavailable now sets the timer while connected and the timer would otherwise be set twice.", "category": "design", "verdict": "supported", "priorit...
null
ably__ably-java__962
ably/ably-java
962
defect
63e5b9a6908f3954b8cbded94c393285499483f1
55f2c5ef92ceb343dfe5c3399f1593357c0cb3a6
Release/1.2.31
Updates version numbers and changelog for the 1.2.31 release
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7af6d94da..158ffb61e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # Change Log +## [1.2.31](https://github.com/ably/ably-java/tree/v1.2.31) + +[Full Changelog](https://github.com/ably/ably-java/compare/v1.2.30...v1.2.31) + +**Fixed bugs:** + +- Error co...
1
1
1
[{"id": "G0", "claim": "The release branch should merge PR #957 (a small PR) before releasing 1.2.31.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
ably__ably-java__982
ably/ably-java
982
defect
aedc32095542f9997604162824480c490e429303
b704dfba37283ef4e4475b6bca58077df4546c28
no-connection-serial-presence
Fixed #975
diff --git a/lib/src/main/java/io/ably/lib/realtime/AblyRealtime.java b/lib/src/main/java/io/ably/lib/realtime/AblyRealtime.java index c9b9a9d4d..d7ef25d53 100644 --- a/lib/src/main/java/io/ably/lib/realtime/AblyRealtime.java +++ b/lib/src/main/java/io/ably/lib/realtime/AblyRealtime.java @@ -243,9 +243,8 @@ public void...
3
1
1
[{"id": "G0", "claim": "Deleting the public sync() method from ChannelBase is a breaking change for users who may have used it, and it should be kept (e.g. marked deprecated) rather than silently removed.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
abramenal__cypress-file-upload__29
abramenal/cypress-file-upload
29
defect
aed63264aeecf71aabdc956d77775a2dfb40ac7a
1b2bc726e22c1587db71dd3524aa16548f38abd4
Fix select file in chrome 73
Problem: in Chrome 73 select file not working with out trigger change event Related to: https://github.com/cypress-io/cypress/issues/3730 also fix example import lib fir test
diff --git a/example/cypress/support/commands.js b/example/cypress/support/commands.js index bbd509c..b3d393b 100644 --- a/example/cypress/support/commands.js +++ b/example/cypress/support/commands.js @@ -24,4 +24,4 @@ // -- This is will overwrite an existing command -- // Cypress.Commands.overwrite("visit", (origina...
5
3
1
[{"id": "G0", "claim": "The example's relative import '../../../index.js' is unclear compared to a package-name import; at minimum it should carry a comment noting that in a real application it would be replaced with importing 'cypress-file-upload'.", "category": "maintainability", "verdict": "supported", "priority": "...
null
abrensch__brouter__896
abrensch/brouter
896
defect
5e742b1f51570209a4bfdd280ae63fae1f6b2673
ea99042bfb2e44a8d7d421e2fcf7b102ba048b2f
Added expressions for weights and new output options
This added - calculation for weight measurements - direct output for values when they are index based - error output option (please add -DshowErrors to java call to display it) The new tests show how this will work It contains test for - value based input and conversion - index based output direct as value -...
diff --git a/brouter-expressions/src/main/java/btools/expressions/BExpressionContext.java b/brouter-expressions/src/main/java/btools/expressions/BExpressionContext.java index e94677eb0..a30433d5f 100644 --- a/brouter-expressions/src/main/java/btools/expressions/BExpressionContext.java +++ b/brouter-expressions/src/main...
1
1
0
[{"id": "G0", "claim": "The trailing `10` values on the incline rows of lookups_test.dat look stale — on the 20% row it should be removed or replaced by 20, and on the 10% row the seemingly duplicated `10` should be removed.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}...
null
abseil__abseil-cpp__1028
abseil/abseil-cpp
1,028
defect
7143e49e74857a009e16c51f6076eb197b6ccb49
31cda4ab472d45f5b8cee58c66306118d1561bf5
Fix hashing on big endian platforms
`std::hash` does not work correctly on big endian platforms using the following key types: - std::hash<std::bitset> - std::hash<std::vector<bool>> This PR creates two AbslHashValue functions as a workaround to avoid using std::hash, more details on this bug can be seen here: https://gcc.gnu.org/bugzilla/show_bu...
diff --git a/absl/hash/internal/hash.h b/absl/hash/internal/hash.h index f5174096cb8..1b266101329 100644 --- a/absl/hash/internal/hash.h +++ b/absl/hash/internal/hash.h @@ -21,6 +21,7 @@ #include <algorithm> #include <array> +#include <bitset> #include <cmath> #include <cstring> #include <deque> @@ -489,8 +490,8...
7
7
2
[{"id": "G0", "claim": "Since the bug appears specific to libstdc++'s std::hash, the comments should say the code is a workaround for a libstdc++ bug and the #if condition should be limited to libstdc++.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The...
null
abseil__abseil-cpp__1403
abseil/abseil-cpp
1,403
defect
bd624d9f9825f76f14453beb3df81d82b9e17062
f16aea230863b4cfc3cbb0ce5b98e03eb91b4bda
Resolve TODO: remove C++11 workarounds
We no longer support C++11 as per the Google C++ support documentation: we support C++14 and up, so we can remove these workarounds.
diff --git a/absl/strings/cord_buffer.h b/absl/strings/cord_buffer.h index 15494b31e06..e39c84cd3cc 100644 --- a/absl/strings/cord_buffer.h +++ b/absl/strings/cord_buffer.h @@ -460,9 +460,7 @@ inline constexpr size_t CordBuffer::MaximumPayload() { } inline constexpr size_t CordBuffer::MaximumPayload(size_t block_si...
1
1
0
[{"id": "G0", "claim": "The PR should remove the `Round()` helper entirely and replace its uses with `std::round()` now that C++11 support is dropped, rather than reimplementing `Round()` on top of `std::round()`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
abseil__abseil-cpp__316
abseil/abseil-cpp
316
defect
8a394b19c149cab50534b04c5e21d42bc2217a7d
6a9031be88df8f83fc29ee9acbce47001a8e11ae
Fix #315 when null ptr is passed to memcpy with size 0
Fix #315 when null ptr is passed to memcpy with size 0
diff --git a/absl/strings/str_cat.cc b/absl/strings/str_cat.cc index 2667976d99a..4e9377c86f0 100644 --- a/absl/strings/str_cat.cc +++ b/absl/strings/str_cat.cc @@ -89,7 +89,7 @@ static char* Append(char* out, const AlphaNum& x) { // memcpy is allowed to overwrite arbitrary memory, so doing this after the // call...
3
2
1
[{"id": "G0", "claim": "Please use !x.empty() instead of x.size(), and use curly braces around the new if statement guarding the memcpy call.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A test should be added that exercises the empty-string c...
null
absmach__magistrala__1110
absmach/magistrala
1,110
defect
d8dca28072693374a0941e106cb337ac01793123
2ae59c2e2285fb53a49ef2cfbdb2a4d6a6b4a53d
NOISSUE - Create func to encode SDK errors
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
diff --git a/cli/things.go b/cli/things.go index 1445827965..d99e9772b3 100644 --- a/cli/things.go +++ b/cli/things.go @@ -10,8 +10,6 @@ import ( "github.com/spf13/cobra" ) -const thingsEP = "things" - var cmdThings = []cobra.Command{ cobra.Command{ Use: "create", diff --git a/sdk/go/channels.go b/sdk/go/c...
2
1
0
[{"id": "G0", "claim": "The reviewer questions whether the new encodeError helper is needed, suggesting http.StatusText(statusCode) would be enough to map status codes.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Revert the short declaration `t := Thi...
null
absmach__magistrala__1404
absmach/magistrala
1,404
defect
00dc197fa60d7bb82892069fcbef04c57a8bf896
c08c45bccf131e125d5344334a2217779f5266fd
NOISSUE - Add tests and connection route-map to lora-adapter
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
diff --git a/cmd/lora/main.go b/cmd/lora/main.go index fb93d7e670..57dfbd12be 100644 --- a/cmd/lora/main.go +++ b/cmd/lora/main.go @@ -4,7 +4,6 @@ package main import ( - "context" "encoding/json" "fmt" "log" @@ -56,10 +55,11 @@ const ( envRouteMapPass = "MF_LORA_ADAPTER_ROUTE_MAP_PASS" envRouteMapDB ...
2
2
0
[{"id": "G0", "claim": "The topic constant should keep the name loraServer instead of the cryptic chirpStack.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The README should call the service LoRa Server rather than ChirpStack.", "category": "do...
null
absmach__magistrala__1441
absmach/magistrala
1,441
defect
19f0437f577fa24ae0fe280fda3a0cf0a6a1c674
4199d7b3ab4aaea0364874644601b64230325cab
MF-1439 - Add support for Basic Authentication in HTTP Adapter
### What does this do? This pull request adds support for the Basic Authentication schema in HTP Adapter. ### Which issue(s) does this PR fix/relate to? This pull request resolves #1439. ### List any changes that modify/break current functionality There are no such changes. ### Have you included tests for y...
diff --git a/api/http.yml b/api/http.yml index 7940f55517..a511d14972 100644 --- a/api/http.yml +++ b/api/http.yml @@ -6,6 +6,9 @@ info: paths: /channels/{id}/messages: post: + security: + - jwtAuth: [] + - basicAuth: [] summary: Sends message to the communication channel descr...
1
1
0
[{"id": "G0", "claim": "The token retrieval lines in decodeRequest can be inlined.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
absmach__magistrala__1518
absmach/magistrala
1,518
defect
db6fab961e01135fef63ca3f8891f938193ac34e
65717822e8f1dcfa62d28e55f96c4adc98ae68b4
MF-1425 - Support external UUIDs for Things and Channels
MF-1425 Enhancement to supply an external UUID for Things and Channels. ### What does this do? This is the same PR for [ MF-1425 - Enhancement for external UUID #1426 ](https://github.com/mainflux/mainflux/pull/1426), but tried to resolve the conflicts ### Which issue(s) does this PR fix/relate to? Resolves #MF...
diff --git a/api/things.yml b/api/things.yml index 591091165b..6166a6c179 100644 --- a/api/things.yml +++ b/api/things.yml @@ -636,7 +636,10 @@ components: id: type: string format: uuid - description: Thing unique identifier + description: Thing unique identifier. This ...
6
5
0
[{"id": "G0", "claim": "CI is broken because an `email` variable is declared somewhere but not used, and qs-wang should fix it.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "The redundant `validateUUID:` comment prefix should be dropped (or the whole ...
null
absmach__magistrala__1633
absmach/magistrala
1,633
defect
6bd745b658ff1e04c40394a732c731fa99882c32
6219f1d0ff8c9cef2594ef85a2783357c3518d30
MF-1630 - Replace old subscriptions with a new one instead of throwing an error
Signed-off-by: AryanGodara [aryangodara03@gmail.com](mailto:aryangodara03@gmail.com) ### What does this do? Replaced old subscriptions instead the `pubsub.Subscribe()`, instead of returning an `alreadySubscribed` error ### Which issue(s) does this PR fix/relate to? Resolves #1630 ### List any changes that mo...
diff --git a/pkg/messaging/nats/pubsub.go b/pkg/messaging/nats/pubsub.go index c7b406584e..6777d7664a 100644 --- a/pkg/messaging/nats/pubsub.go +++ b/pkg/messaging/nats/pubsub.go @@ -69,6 +69,8 @@ func (ps *pubsub) Subscribe(id, topic string, handler messaging.MessageHandler) if topic == "" { return ErrEmptyTopic ...
6
4
4
[{"id": "G0", "claim": "Subscribe should not return ErrAlreadySubscribed when the client is already subscribed; it should only replace the old client with the new one.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The replace-instead-of-error behaviour ...
null
absmach__magistrala__1794
absmach/magistrala
1,794
defect
6b674e2265a3f47f37a92e28255743e57d027a09
8cde8a647adc32a5feb10f601a0ea166c23ad1db
NOISSUE - Fix List Users When It is Admin
### What does this do? List all users when it is admin ### Which issue(s) does this PR fix/relate to? Noissue ### List any changes that modify/break current functionality No ### Have you included tests for your changes? Yes ### Did you document any new/modified functionality? No ### Notes N/A
diff --git a/users/clients/service.go b/users/clients/service.go index dd8863b454..451f5b77c5 100644 --- a/users/clients/service.go +++ b/users/clients/service.go @@ -163,6 +163,15 @@ func (svc service) ListClients(ctx context.Context, token string, pm mfclients.P if err != nil { return mfclients.ClientsPage{}, er...
3
3
1
[{"id": "G0", "claim": "Do not use labels and `goto` in ListClients; restructure the admin branch without them.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the local variable `pol` to `p`.", "category": "maintainability", "verdict": "s...
null
absmach__magistrala__1866
absmach/magistrala
1,866
defect
41be96a6e7776009d6ec4f695b83ec430d51f95f
61728dbc3efba8c477ab65e1e7790bc4e92c78d9
NOISSUE - SDK : Handling non JSON error messages from service
Pull request title should be `MF-XXX - description` or `NOISSUE - description` where XXX is ID of issue that this PR relate to. Please review the [CONTRIBUTING.md](https://github.com/mainflux/mainflux/blob/master/CONTRIBUTING.md) file for detailed contributing guidelines. ### What does this do? - SDK handles non ...
diff --git a/pkg/errors/sdk_errors.go b/pkg/errors/sdk_errors.go index e039310e243..8ae37b659f8 100644 --- a/pkg/errors/sdk_errors.go +++ b/pkg/errors/sdk_errors.go @@ -7,17 +7,15 @@ import ( "encoding/json" "errors" "fmt" + "io" "net/http" ) -const err = "error" +const errorKey = "error" var ( - // ErrJS...
3
3
0
[{"id": "G0", "claim": "The error format string should be `%w: %w` without the space before the colon, which could be why semaphore CI is failing.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The error string should not be capitalized or end with a punc...
null
absmach__magistrala__2130
absmach/magistrala
2,130
defect
65941368b872b44be6a799ca83e5e4a88cb0f30f
1651cc8b777f3b0c0b24a6009c8b3c89f4d7325f
MG-2069 - Remove relation requirement from entity unassignment
# What type of PR is this? This is a refactor because it changes the following functionality: Unassign entity. ## What does this do? Removes the relation requirement from unassigning an entity. When the relation is provided, only the user with that relation is removed, when not provided - all relations are removed. ...
diff --git a/api/openapi/auth.yml b/api/openapi/auth.yml index 5d798276fd1..e2e97abdd84 100644 --- a/api/openapi/auth.yml +++ b/api/openapi/auth.yml @@ -301,7 +301,7 @@ paths: security: - bearerAuth: [] responses: - "200": + "204": description: Users successfully unassign...
6
5
2
[{"id": "G0", "claim": "Rewriting DeletePolicies to call DeletePolicy per item drops the filtering of options that the batched DeletePolicies supported.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Wrapping the unassign authorization in `if relati...
null
absmach__magistrala__2146
absmach/magistrala
2,146
defect
ddb90a046aba64916ce16ff7e24f498804043c9a
331f46d2aaf81414226e597256b85c53e0bca29c
MG-2145 - Generate mocks with mockery for Lora service
<!-- Copyright (c) Abstract Machines SPDX-License-Identifier: Apache-2.0 --> <!-- Pull request title should be `MG-XXX - description` or `NOISSUE - description` where XXX is ID of the issue that this PR relate to. Please review the [CONTRIBUTING.md](https://github.com/absmach/magistrala/blob/master/CONTRIBUTING...
diff --git a/.github/workflows/check-generated-files.yml b/.github/workflows/check-generated-files.yml index 308a5a6fb4f..81f19416383 100644 --- a/.github/workflows/check-generated-files.yml +++ b/.github/workflows/check-generated-files.yml @@ -23,7 +23,7 @@ jobs: with: go-version: 1.21.x ...
8
7
2
[{"id": "G0", "claim": "The workflow's mock-check label for the LoRa mock should read \"LoRa Routemap Repository\" rather than \"LoRa Repository\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The tests should avoid `mock.Anything` where the con...
null
absmach__magistrala__2171
absmach/magistrala
2,171
defect
76788d3ae2ab111a583bdf22c858d04919acde56
dc6b0b44b645026dfe2be7403d4ee3944f639cb0
MG-2170 - Generate mocks with mockery for HTTP service
<!-- Copyright (c) Abstract Machines SPDX-License-Identifier: Apache-2.0 --> <!-- Pull request title should be `MG-XXX - description` or `NOISSUE - description` where XXX is ID of the issue that this PR relate to. Please review the [CONTRIBUTING.md](https://github.com/absmach/magistrala/blob/main/CONTRIBUTING.m...
diff --git a/http/api/endpoint_test.go b/http/api/endpoint_test.go index 325e4ba1000..4e0ed72f50e 100644 --- a/http/api/endpoint_test.go +++ b/http/api/endpoint_test.go @@ -15,9 +15,9 @@ import ( authmocks "github.com/absmach/magistrala/auth/mocks" server "github.com/absmach/magistrala/http" "github.com/absmach/m...
1
1
1
[{"id": "G0", "claim": "The new tests stub Publish with mock.Anything for every argument and always return nil; the mocks should use concrete arguments and in some cases return non-nil errors.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
absmach__magistrala__2271
absmach/magistrala
2,271
defect
31d0e8c4529339a6626c9ff03a65972bf407dd89
d4774a1b9add18f0aa10525268f4760f2727caa9
MG-888 - Update consumers SDK tests
<!-- Copyright (c) Abstract Machines SPDX-License-Identifier: Apache-2.0 --> <!-- Pull request title should be `MG-XXX - description` or `NOISSUE - description` where XXX is ID of the issue that this PR relate to. Please review the [CONTRIBUTING.md](https://github.com/absmach/magistrala/blob/main/CONTRIBUTING.m...
diff --git a/pkg/sdk/go/consumers.go b/pkg/sdk/go/consumers.go index 24b8433d170..ad3cdb3b0bf 100644 --- a/pkg/sdk/go/consumers.go +++ b/pkg/sdk/go/consumers.go @@ -51,9 +51,9 @@ func (sdk mgSDK) ListSubscriptions(pm PageMetadata, token string) (SubscriptionP return SubscriptionPage{}, errors.NewSDKError(err) } ...
2
2
0
[{"id": "G0", "claim": "Apply the same change to the TestCreateSubscription test loop in pkg/sdk/go/consumers_test.go that was requested in the linked discussion on PR #2267.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test case exercising inva...
null
absmach__magistrala__2298
absmach/magistrala
2,298
defect
95badeee62e9b63341fbbb4bb376f45ec7ef930e
74338ef821ebd5c46068fe1febe9cf2176b8668c
MG-2026 - Fix JSON page response key from `groups` to `channels`
<!-- Copyright (c) Abstract Machines SPDX-License-Identifier: Apache-2.0 --> <!-- Pull request title should be `MG-XXX - description` or `NOISSUE - description` where XXX is ID of the issue that this PR relate to. Please review the [CONTRIBUTING.md](https://github.com/absmach/magistrala/blob/main/CONTRIBUTING.m...
diff --git a/internal/groups/api/responses.go b/internal/groups/api/responses.go index a9fbcc5efde..66ca4671d20 100644 --- a/internal/groups/api/responses.go +++ b/internal/groups/api/responses.go @@ -82,7 +82,7 @@ func (res createGroupRes) Empty() bool { type groupPageRes struct { pageRes - Groups []viewGroupRes ...
1
1
1
[{"id": "G0", "claim": "groupPageRes should not use channel terminology: its JSON key was renamed from \"groups\" to \"channels\" even though not all groups are channels.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
absmach__magistrala__2364
absmach/magistrala
2,364
defect
06cb004a9bffcce445cb56f5f472c48aaebfb45c
cbf75db5115541406ecdda2b0bb0f048cacbdb0f
MG-2363 - Fix users with member relation are able to list things
# What type of PR is this? This is a bug fix because it fixes the following issue: #2363 ## What does this do? It change how `listClients` method work. It checks IDs that are authorized for view for a user. ## Which issue(s) does this PR fix/relate to? - Related Issue #2363 - Resolves #2363 ## Have yo...
diff --git a/things/service.go b/things/service.go index 8ece3b59b5..06a0acd647 100644 --- a/things/service.go +++ b/things/service.go @@ -180,6 +180,9 @@ func (svc service) ListClients(ctx context.Context, token, reqUserID string, pm } pm.IDs = ids + if len(pm.IDs) == 0 && pm.Domain == "" { + return mgclients.C...
1
1
0
[{"id": "G0", "claim": "The assignment `pm.IDs = ids` should be moved below the `if len(pm.IDs) == 0 && pm.Domain == \"\"` early-return condition so the guard checks `ids` directly.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
absmach__magistrala__2642
absmach/magistrala
2,642
defect
a9169276e54c60b754f2853ea52204713749fba5
d16df03623b4d9e316515b7acd01b3ffccd291d3
NOISSUE - Update CLI
<!-- Copyright (c) Abstract Machines SPDX-License-Identifier: Apache-2.0 --> <!-- Pull request title should be `SMQ-XXX - description` or `NOISSUE - description` where XXX is ID of the issue that this PR relate to. Please review the [CONTRIBUTING.md](https://github.com/absmach/supermq/blob/main/CONTRIBUTING.md)...
diff --git a/cli/clients.go b/cli/clients.go index d59489eef5..6220bb8bd1 100644 --- a/cli/clients.go +++ b/cli/clients.go @@ -198,22 +198,29 @@ var cmdClients = []cobra.Command{ }, }, { - Use: "connect <client_id> <channel_id> <domain_id> <user_auth_token>", + Use: "connect <client_id> <channel_id> <conn_...
1
1
0
[{"id": "G0", "claim": "The newly added defReaderURL and defBootstrapURL constants should not be present in the CLI config (should we have Reader and Bootstrap here?).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
absmach__magistrala__2659
absmach/magistrala
2,659
defect
d77d0056592f4dce224dd63c2a26e30f148c1023
5fd66b6f92cb111113f94b82d92ef14f0bb7eeef
SMQ-2546 - Add events to adapters
<!-- Copyright (c) Abstract Machines SPDX-License-Identifier: Apache-2.0 --> <!-- Pull request title should be `SMQ-XXX - description` or `NOISSUE - description` where XXX is ID of the issue that this PR relate to. Please review the [CONTRIBUTING.md](https://github.com/absmach/supermq/blob/main/CONTRIBUTING.md)...
diff --git a/cmd/coap/main.go b/cmd/coap/main.go index 0ad2b73727c..917eadd7708 100644 --- a/cmd/coap/main.go +++ b/cmd/coap/main.go @@ -15,6 +15,7 @@ import ( "github.com/absmach/supermq" "github.com/absmach/supermq/coap" httpapi "github.com/absmach/supermq/coap/api" + "github.com/absmach/supermq/coap/events" ...
3
3
1
[{"id": "G0", "claim": "The new Unsubscribe code in ws/handler.go should use the existing extractClientSecret helper instead of a hand-rolled switch that strips the \"Client \" prefix from the password.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai...
null
absmach__magistrala__2661
absmach/magistrala
2,661
defect
07dbb86203c75da783612662590c1c4539dc6268
db903c4876c68c1a168803c931c759ef2ea6c63d
SMQ - 2546 - Add telemetry aggregation for clients telemetry
<!-- Copyright (c) Abstract Machines SPDX-License-Identifier: Apache-2.0 --> <!-- Pull request title should be `SMQ-XXX - description` or `NOISSUE - description` where XXX is ID of the issue that this PR relate to. Please review the [CONTRIBUTING.md](https://github.com/absmach/supermq/blob/main/CONTRIBUTING.md)...
diff --git a/cmd/mqtt/main.go b/cmd/mqtt/main.go index 8f527daf04..76162c959d 100644 --- a/cmd/mqtt/main.go +++ b/cmd/mqtt/main.go @@ -135,13 +135,6 @@ func main() { defer bsub.Close() bsub = brokerstracing.NewPubSub(serverConfig, tracer, bsub) - bsub, err = msgevents.NewPubSubMiddleware(ctx, bsub, cfg.ESURL) - i...
1
1
0
[{"id": "G0", "claim": "MQTT events handling is messy: remove the event store from the MQTT handler and reimplement it as an events middleware wrapping the handler.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}]
null
absmach__magistrala__2696
absmach/magistrala
2,696
defect
6121c180889a0b159c706e56cd92b39a4d4a8068
d1f954ab2be56ea4be4f102fb245dbbc1cecdb64
SMQ-2689 - Allow user defined ids for domains
<!-- Copyright (c) Abstract Machines SPDX-License-Identifier: Apache-2.0 --> <!-- Pull request title should be `SMQ-XXX - description` or `NOISSUE - description` where XXX is ID of the issue that this PR relate to. Please review the [CONTRIBUTING.md](https://github.com/absmach/supermq/blob/main/CONTRIBUTING.md)...
diff --git a/domains/api/http/endpoint.go b/domains/api/http/endpoint.go index b50fe898a6e..6c46cae59bb 100644 --- a/domains/api/http/endpoint.go +++ b/domains/api/http/endpoint.go @@ -28,6 +28,7 @@ func createDomainEndpoint(svc domains.Service) endpoint.Endpoint { } d := domains.Domain{ + ID: req.ID, ...
4
4
2
[{"id": "G0", "claim": "Move the custom-ID validation out of domains/service.go into api/http/common.go, rename validateID to ValidateName, and for now validate a user-supplied ID with ValidateUUID in the transport layer.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "...
null
absmach__magistrala__2700
absmach/magistrala
2,700
defect
17b5224090866790a67d02e7bedd2033326caa8b
fd776cc15058106541984aa882d9d104536e15b2
NOISSUE - Fix Websocket Adapter
<!-- Copyright (c) Abstract Machines SPDX-License-Identifier: Apache-2.0 --> <!-- Pull request title should be `SMQ-XXX - description` or `NOISSUE - description` where XXX is ID of the issue that this PR relate to. Please review the [CONTRIBUTING.md](https://github.com/absmach/supermq/blob/main/CONTRIBUTING.md)...
diff --git a/cmd/mqtt/main.go b/cmd/mqtt/main.go index 26ce523c2b5..c0e126d91b5 100644 --- a/cmd/mqtt/main.go +++ b/cmd/mqtt/main.go @@ -272,9 +272,10 @@ func proxyMQTT(ctx context.Context, cfg config, logger *slog.Logger, sessionHand func proxyWS(ctx context.Context, cfg config, logger *slog.Logger, sessionHandler se...
1
1
0
[{"id": "G0", "claim": "The reviewer requested that the pull request be updated before it can be accepted.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
absmach__magistrala__2723
absmach/magistrala
2,723
defect
72c762f9cb9d11836ff9d7a31d51b0301a4b103f
5d72e07607b369b349fe1d1c2ea5f94a89721e2a
NOISSUE - Fix Invitations test
<!-- Copyright (c) Abstract Machines SPDX-License-Identifier: Apache-2.0 --> <!-- Pull request title should be `SMQ-XXX - description` or `NOISSUE - description` where XXX is ID of the issue that this PR relate to. Please review the [CONTRIBUTING.md](https://github.com/absmach/supermq/blob/main/CONTRIBUTING.md)...
diff --git a/domains/invitations_test.go b/domains/invitations_test.go index 197dfceab76..dc4d32ea996 100644 --- a/domains/invitations_test.go +++ b/domains/invitations_test.go @@ -38,7 +38,7 @@ func TestInvitation_MarshalJSON(t *testing.T) { }, }, }, - res: `{"total":1,"offset":0,"limit":0,"invitation...
2
1
1
[{"id": "G0", "claim": "The CI is still failing on the current head and should be fixed.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The codecov report notes project coverage dropped 4.50% versus main.", "category": "testing", "verdict": "uncertain",...
null
absmach__magistrala__2763
absmach/magistrala
2,763
defect
b0493e03af8a4da1e7f72b175eeb4409fb90df46
3f44eab4d9912c88de0d030f549c77ab3e4843e5
SMQ-2758 - Add option Auth to call webhook for only for certain authz
<!-- Copyright (c) Abstract Machines SPDX-License-Identifier: Apache-2.0 --> <!-- Pull request title should be `SMQ-XXX - description` or `NOISSUE - description` where XXX is ID of the issue that this PR relate to. Please review the [CONTRIBUTING.md](https://github.com/absmach/supermq/blob/main/CONTRIBUTING.md)...
diff --git a/auth/callback.go b/auth/callback.go index 5bed70b7ab3..9ddff4ef08f 100644 --- a/auth/callback.go +++ b/auth/callback.go @@ -17,9 +17,10 @@ import ( ) type callback struct { - httpClient *http.Client - urls []string - method string + httpClient *http.Client + urls []string ...
4
4
2
[{"id": "G0", "claim": "The new SMQ_AUTH_CALL_WEBHOOK_PERMISSIONS variable added to docker/.env should also be documented in the auth README.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "SMQ_AUTH_CALL_WEBHOOK_PERMISSIONS should default to empty ...
null
absmach__magistrala__2825
absmach/magistrala
2,825
defect
cc9fc70d6dfe27d8100f395e6a818e3875c55fa2
c8fb4a82e088170d5805af662b67354cb95f8935
NOISSUE - Update mGate version in http and ws adapters
<!-- Copyright (c) Abstract Machines SPDX-License-Identifier: Apache-2.0 --> <!-- Pull request title should be `SMQ-XXX - description` or `NOISSUE - description` where XXX is ID of the issue that this PR relate to. Please review the [CONTRIBUTING.md](https://github.com/absmach/supermq/blob/main/CONTRIBUTING.md)...
diff --git a/cmd/http/main.go b/cmd/http/main.go index 4e9dfdb82d..19fdee6dea 100644 --- a/cmd/http/main.go +++ b/cmd/http/main.go @@ -43,14 +43,16 @@ import ( ) const ( - svcName = "http_adapter" - envPrefix = "SMQ_HTTP_ADAPTER_" - envPrefixClients = "SMQ_CLIENTS_GRPC_" - envPrefixChannels = "SM...
1
1
1
[{"id": "G0", "claim": "The WS handshake should not set the custom X-SMQ-WS-Session-ID response header (the reviewer questions why it is used).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
absmach__magistrala__2871
absmach/magistrala
2,871
defect
16eff6bebbfe8aa19bf93d7a874c01f587a8f436
d60bf743a28a1023eac1108e26978c458b09cbbf
NOISSUE - Add ability to handle both tls cert file and raw cert data
<!-- Copyright (c) Abstract Machines SPDX-License-Identifier: Apache-2.0 --> <!-- Pull request title should be `SMQ-XXX - description` or `NOISSUE - description` where XXX is ID of the issue that this PR relate to. Please review the [CONTRIBUTING.md](https://github.com/absmach/supermq/blob/main/CONTRIBUTING.md)...
diff --git a/pkg/server/grpc/grpc.go b/pkg/server/grpc/grpc.go index 0acf06b5ec3..edb13bb5e9b 100644 --- a/pkg/server/grpc/grpc.go +++ b/pkg/server/grpc/grpc.go @@ -56,7 +56,7 @@ func (s *grpcServer) Start() error { switch { case s.Config.CertFile != "" || s.Config.KeyFile != "": - certificate, err := tls.LoadX5...
2
2
2
[{"id": "G0", "claim": "The temp-file mechanism for handling the TLS cert/key in the HTTP server should be dropped in favour of the standard tls.X509KeyPair/LoadX509KeyPair approach, passing the certificates via server.TLSConfig and calling ListenAndServeTLS(\"\", \"\").", "category": "design", "verdict": "supported", ...
null
absmach__magistrala__2876
absmach/magistrala
2,876
defect
16eff6bebbfe8aa19bf93d7a874c01f587a8f436
e05f38e37f726a3739a6d106c930dbe81c5fbfd8
SMQ-2874 - Allow empty update for user profile picture, tags and metadata
<!-- Copyright (c) Abstract Machines SPDX-License-Identifier: Apache-2.0 --> <!-- Pull request title should be `SMQ-XXX - description` or `NOISSUE - description` where XXX is ID of the issue that this PR relate to. Please review the [CONTRIBUTING.md](https://github.com/absmach/supermq/blob/main/CONTRIBUTING.md)...
diff --git a/pkg/sdk/users_test.go b/pkg/sdk/users_test.go index fa23f39d82f..6b13178d362 100644 --- a/pkg/sdk/users_test.go +++ b/pkg/sdk/users_test.go @@ -904,7 +904,8 @@ func TestUpdateUser(t *testing.T) { token string session smqauthn.Session updateUserReq sdk.User - svcReq us...
1
1
1
[{"id": "G0", "claim": "Add test cases for empty values (the empty-update behaviour this pull request enables for profile picture, tags and metadata is untested).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
absmach__magistrala__2877
absmach/magistrala
2,877
defect
9a9e22fbcebdc980a72c8642f089039d462e0d7b
f360ccf0dcb14236aec0af660d031a1f58b661e6
NOISSUE - Add Nullable type for optional values handling
<!-- Copyright (c) Abstract Machines SPDX-License-Identifier: Apache-2.0 --> <!-- Pull request title should be `SMQ-XXX - description` or `NOISSUE - description` where XXX is ID of the issue that this PR relate to. Please review the [CONTRIBUTING.md](https://github.com/absmach/supermq/blob/main/CONTRIBUTING.md)...
diff --git a/channels/api/http/decode.go b/channels/api/http/decode.go index 7aa8969b143..33181ef8bf7 100644 --- a/channels/api/http/decode.go +++ b/channels/api/http/decode.go @@ -12,6 +12,7 @@ import ( api "github.com/absmach/supermq/api/http" apiutil "github.com/absmach/supermq/api/http/util" "github.com/absma...
3
3
0
[{"id": "G0", "claim": "The package doc comment in internal/nullable/doc.go misspells \"nullable\" as \"nullabele\" and should be corrected.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The package doc comment in internal/nullable/doc.go misspel...
null
absmach__magistrala__2999
absmach/magistrala
2,999
defect
a0044c51be06e2010d684bbb25067bfd6f668621
6ad3f51770eac00ddc5bf2ec709fa802c27f4d06
NOISSUE - Update nullable handling
<!-- Copyright (c) Abstract Machines SPDX-License-Identifier: Apache-2.0 --> <!-- Pull request title should be `SMQ-XXX - description` or `NOISSUE - description` where XXX is ID of the issue that this PR relate to. Please review the [CONTRIBUTING.md](https://github.com/absmach/supermq/blob/main/CONTRIBUTING.md)...
diff --git a/groups/api/grpc/endpoint_test.go b/groups/api/grpc/endpoint_test.go index fa532fb93b4..e9cf7f6a60d 100644 --- a/groups/api/grpc/endpoint_test.go +++ b/groups/api/grpc/endpoint_test.go @@ -30,7 +30,7 @@ const port = 7004 var ( validID = testsutil.GenerateUUID(&testing.T{}) valid = "vali...
3
3
0
[{"id": "G0", "claim": "Constrain the nullable type parameter with a Nullable union (as in the suggestion block) so pointer/interface types cannot be passed and no nil check is needed in New.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "New(v, set) is ...
null
absmach__magistrala__3024
absmach/magistrala
3,024
defect
1d935f05198e8f22f4ca764a6726670222d37141
61fa2f9694990f89ed0b630b7f5d64a1f6f1f991
SMQ-2801 - Add health check endpoint for MQTT adapter
<!-- Copyright (c) Abstract Machines SPDX-License-Identifier: Apache-2.0 --> <!-- Pull request title should be `SMQ-XXX - description` or `NOISSUE - description` where XXX is ID of the issue that this PR relate to. Please review the [CONTRIBUTING.md](https://github.com/absmach/supermq/blob/main/CONTRIBUTING.md)...
diff --git a/coap/api/transport.go b/coap/api/transport.go index ed7f86e559..29db4af0ec 100644 --- a/coap/api/transport.go +++ b/coap/api/transport.go @@ -154,9 +154,9 @@ func (h *CoAPHandler) decodeMessage(msg *mux.Message) (*messaging.Message, error var domainID, channelID, subTopic string switch msg.Code() { c...
8
8
4
[{"id": "G0", "claim": "The MQTT health check should not have the service send a heartbeat to the broker; it should enable devices to verify connectivity by publishing to an unauthorized reserved topic dedicated to that purpose.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id...
null
absmach__magistrala__3038
absmach/magistrala
3,038
defect
9b77130f6ec104c0e9c4a1f6327d16a2cfcd9baa
33591818745e6f231934ef5f898da58141b7cbd5
NOISSUE - List domain invitations on sdk
<!-- Copyright (c) Abstract Machines SPDX-License-Identifier: Apache-2.0 --> <!-- Pull request title should be `SMQ-XXX - description` or `NOISSUE - description` where XXX is ID of the issue that this PR relate to. Please review the [CONTRIBUTING.md](https://github.com/absmach/supermq/blob/main/CONTRIBUTING.md)...
diff --git a/pkg/sdk/invitations.go b/pkg/sdk/invitations.go index 8b92208f04..2641dbe32a 100644 --- a/pkg/sdk/invitations.go +++ b/pkg/sdk/invitations.go @@ -68,6 +68,26 @@ func (sdk mgSDK) Invitation(ctx context.Context, userID, domainID, token string) return invitation, nil } +func (sdk mgSDK) DomainInvitations...
1
1
0
[{"id": "G0", "claim": "Build the URL with fmt.Sprintf instead of manual string concatenation, and do the same in all the other cases across the SDK package.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
absmach__magistrala__3052
absmach/magistrala
3,052
defect
0f20663cfb17c20f6f286d30c89ff90765f2f369
cc494ae047f96650211a1c3d11bfb848e3b79121
NOISSUE - Allow sorting
<!-- Copyright (c) Abstract Machines SPDX-License-Identifier: Apache-2.0 --> <!-- Pull request title should be `SMQ-XXX - description` or `NOISSUE - description` where XXX is ID of the issue that this PR relate to. Please review the [CONTRIBUTING.md](https://github.com/absmach/supermq/blob/main/CONTRIBUTING.md)...
diff --git a/api/http/common.go b/api/http/common.go index d496b8308e5..9b0cfacde80 100644 --- a/api/http/common.go +++ b/api/http/common.go @@ -28,10 +28,12 @@ const ( LimitKey = "limit" OnlyTotal = "only_total" - NameOrder = "name" - IDOrder = "id" - AscDir = "asc" - DescDir = "desc" + NameOrder = ...
5
3
2
[{"id": "G0", "claim": "The transport layer should also validate the direction (Dir) query parameter, and the same check should be added in the other entity request validators.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The order-validation if-c...
null
absmach__magistrala__3055
absmach/magistrala
3,055
defect
bc7b988098dec135e59f0ca68c546e44a837c6d0
1ef1d93b3bf12bf303d64167b6b2cac745365cc3
NOISSUE - Update removal of view invitation endpoint in sdk and cli
<!-- Copyright (c) Abstract Machines SPDX-License-Identifier: Apache-2.0 --> <!-- Pull request title should be `SMQ-XXX - description` or `NOISSUE - description` where XXX is ID of the issue that this PR relate to. Please review the [CONTRIBUTING.md](https://github.com/absmach/supermq/blob/main/CONTRIBUTING.md)...
diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 11ab1ddd29..d624925332 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -206,12 +206,13 @@ jobs: - "certs/**" - "http/**" - "internal/*" - - "internal/a...
6
2
1
[{"id": "G0", "claim": "The domains API docs still contain the GET /domains/{domainID}/invitations/{userID} view-invitation endpoint that this pull request set out to remove.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The SDK should expose sep...
null
absmach__magistrala__3191
absmach/magistrala
3,191
defect
42b2a8c166e68e066938e7e9ef5e20de3d091083
17f6fa522068b1aa6a950b4dc6fa49881e3bfbff
NOISSUE - Use structured requests in callouts
<!-- Copyright (c) Abstract Machines SPDX-License-Identifier: Apache-2.0 --> <!-- Pull request title should be `SMQ-XXX - description` or `NOISSUE - description` where XXX is ID of the issue that this PR relate to. Please review the [CONTRIBUTING.md](https://github.com/absmach/supermq/blob/main/CONTRIBUTING.md)...
diff --git a/channels/middleware/authorization.go b/channels/middleware/authorization.go index 688129e7f7..fc8b716ce4 100644 --- a/channels/middleware/authorization.go +++ b/channels/middleware/authorization.go @@ -6,7 +6,6 @@ package middleware import ( "context" "fmt" - "maps" "time" "github.com/absmach/su...
5
4
2
[{"id": "G0", "claim": "The comment on the Callout function should read \"Callout sends a request to an external service.\" (grammar fix supplied as a suggestion).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The POST branch sets headers on r wi...
null
absmach__magistrala__3252
absmach/magistrala
3,252
defect
5c12bc8c9131643ec9a02f7146fa20cbaf53734a
6ce9a162a2a04af77c6e0fb8f478a5938b217916
SMQ-3253 - Update CLI usage
<!-- Copyright (c) Abstract Machines SPDX-License-Identifier: Apache-2.0 --> <!-- Pull request title should be `SMQ-XXX - description` or `NOISSUE - description` where XXX is ID of the issue that this PR relate to. Please review the [CONTRIBUTING.md](https://github.com/absmach/supermq/blob/main/CONTRIBUTING.md)...
diff --git a/cli/channels.go b/cli/channels.go index 20e38d4c59..84448fcfa8 100644 --- a/cli/channels.go +++ b/cli/channels.go @@ -23,7 +23,7 @@ const ( sendVerification = "send-verification" verifyEmail = "verify-email" - usageCreate = "cli channels <channel_id> create <JSON_channel> <domain_id> <user_auth...
2
2
0
[{"id": "G0", "claim": "The per-case empty-argument handling added in the token case (calling handlers such as handleUserToken with an empty first parameter) is unnecessary — the previous approach was cleaner; explain why it is needed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduc...
null
absmach__magistrala__3406
absmach/magistrala
3,406
defect
08249c045bac55325021c270aa667bb425bf5acb
5546b9211b27c3fd5ee71d86f55dddc1a626718c
NOISSUE - Fix EOF error
<!-- Copyright (c) Abstract Machines SPDX-License-Identifier: Apache-2.0 --> <!-- Pull request title should be `SMQ-XXX - description` or `NOISSUE - description` where XXX is ID of the issue that this PR relate to. Please review the [CONTRIBUTING.md](https://github.com/absmach/supermq/blob/main/CONTRIBUTING.md)...
diff --git a/pkg/sdk/sdk.go b/pkg/sdk/sdk.go index f1fd5c10b64..dbc61bf2ad0 100644 --- a/pkg/sdk/sdk.go +++ b/pkg/sdk/sdk.go @@ -1514,11 +1514,14 @@ func NewSDK(conf Config) SDK { HostURL: conf.HostURL, msgContentType: conf.MsgContentType, - client: &http.Client{Transport: otelhttp.NewTransport(&http.Tr...
2
2
2
[{"id": "G0", "claim": "DisableKeepAlives: true may not be the right fix: the reviewer questions whether it is the cause of the EOF errors, says it looks like it gives up the performance, resource-overhead and throughput benefits of connection pooling by opening a new connection per request, and asks whether a longer t...
null
absmach__magistrala__861
absmach/magistrala
861
defect
b83439fcc2b48d5682441fd1b6f43e5687b9db00
16a1943ec10b7b871f009ae773fe8d4021a7f785
MF-858 Users metadata
#196 # What does this do? ### Which issue(s) does this PR fix/relate to? `Resolves #858` ### List any changes that modify/break current functionality ### Have you included tests for your changes? ### Did you document any new/modified functionality? ### Notes
diff --git a/scripts/run.sh b/scripts/run.sh index 45802ee7d78..54d8a03897d 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -22,6 +22,7 @@ function cleanup { # NATS ### gnatsd & +sleep 3 ### # Users diff --git a/things/postgres/things.go b/things/postgres/things.go index 3b64d570b2b..6901e429e96 100644 --- a...
21
21
4
[{"id": "G0", "claim": "The 3-second sleep after starting gnatsd should be lowered (e.g. to 0.1, 0.5 or 1 second) and a comment added explaining why it is there.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The single-package import in users/api/h...
null
academy-agents__academy__177
academy-agents/academy
177
defect
c5dd64e2214b4ba7c74340b3ca0191219c8c49da
91d2fc04175f16551756b5480448d7e8e0fc5fd1
Read exchange client from context in handle
## Summary In a handle read the exchange client from a contextvar by default, using only the set exchange when the contextvar is not present. This change limits the need for re-binding handles based on the current use. Previously, we had to search for handles as properties of agents and bind them to the agent exch...
diff --git a/academy/agent.py b/academy/agent.py index ea5353c6..829c7598 100644 --- a/academy/agent.py +++ b/academy/agent.py @@ -33,11 +33,6 @@ from academy.event import wait_event_async from academy.exception import AgentNotInitializedError from academy.handle import Handle -from academy.handle import HandleDict ...
11
10
1
[{"id": "G0", "claim": "The ContextVar created in handle.py should be constructed with the name 'exchange_context' to match the variable name.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "HandleNotBoundError should be renamed (e.g. ExchangeCli...
null
academy-agents__academy__181
academy-agents/academy
181
defect
3841488d7b3610cbed4555af4f794f330ede1dd3
ba39ea909f80e53b21c5e3d581c4c49c08202c11
Allow handles to be used by multiple clients
## Summary Follow up to #177. A RemoteHandle is now almost completely decoupled from the exchange client it uses. Every time a message is sent, the handle reads the exchange from the context. This allows the same handle to be used by multiple clients without making copies. The only state that is modified within the ha...
diff --git a/academy/context.py b/academy/context.py index d56915d7..f50106fc 100644 --- a/academy/context.py +++ b/academy/context.py @@ -55,7 +55,6 @@ def source_handle(self) -> Handle[Any]: if self._source_handle is None: self._source_handle = RemoteHandle( self.source_id, - ...
13
11
3
[{"id": "G0", "claim": "Format the RemoteHandle(...) construction in source_handle to a single line.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The docstring of ExchangeClient.close still says it closes all handles produced by the client, wh...
null
academy-agents__academy__190
academy-agents/academy
190
defect
f93323dc43440459959f5edc8ae061b74c5a43ef
468d5ac58a4be16d257cfdff6d38c17d87278c84
Auth ID Cacheing
## Summary Added cache and local client to import auth performance. Previously, a `oauth2_token_introspect` call was made for every API call to the cloud hosted server. In addition, the AuthClient was protected by a lock, so only one call could proceed even with asyncio. To fix these issues, I moved the AuthClient to ...
diff --git a/academy/exchange/cloud/authenticate.py b/academy/exchange/cloud/authenticate.py index 293770fd..e0dad30f 100644 --- a/academy/exchange/cloud/authenticate.py +++ b/academy/exchange/cloud/authenticate.py @@ -2,13 +2,17 @@ from __future__ import annotations +import asyncio +import threading import uuid ...
3
3
1
[{"id": "G0", "claim": "The TOKEN_TTL class attribute should be renamed to include its unit, i.e. TOKEN_TTL_SECONDS.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ThreadPoolExecutor created in __init__ should be given a thread_name_prefix s...
null
academy-agents__academy__193
academy-agents/academy
193
defect
df98d8624415a08881081306cb637c820ce1656d
01447d5ec09c2f88477b38fb7baa812ac78bbbce
Create storage protocol for HTTP exchange with local and Redis implementations
## Summary We talked about supporting a Redis backend to the exchange server so we can have multiple workers serving requests to the same mailboxes. We still need to support a local http exchange to work with local processes (or even local cluster deployments). To support both Redis and the local exchange, I've refac...
diff --git a/academy/exception.py b/academy/exception.py index dd013ffa..66ee7935 100644 --- a/academy/exception.py +++ b/academy/exception.py @@ -53,6 +53,17 @@ class ForbiddenError(ExchangeError): pass +class MessageTooLargeError(ExchangeError): + """Message payload is too large for exchange. + + If en...
2
2
1
[{"id": "G0", "claim": "MessageTooLargeError should tell the user both the size of the offending message and the limit.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "message_size_limit_kb on RedisBackendConfig should be capped at Redis' limit of 512MB."...
null
academy-agents__academy__230
academy-agents/academy
230
defect
a1d8864353ed6851503bb296b12a0d86b87af9a1
a8bcfd348b2a855f490c9d97bc3c5e6c9ec157d4
Add Agent Describe Method
## Summary Provide a default action inside of the base agent class to describe the agent from provided documentation. This came up when trying to implement an MCP server that connects to the academy exchange. In the future this could be used as part of enhanced indexing/discovery of agents if we want to go that direct...
diff --git a/academy/agent.py b/academy/agent.py index ca179cfa..04bab41b 100644 --- a/academy/agent.py +++ b/academy/agent.py @@ -12,12 +12,15 @@ from typing import Any from typing import Callable from typing import Generic +from typing import get_type_hints from typing import Literal from typing import overload ...
1
1
1
[{"id": "G0", "claim": "The new describe action should be named agent_describe for consistency with the other library-provided methods, since the agent_ namespace exists to minimize name collisions when users convert existing classes into an Agent and to distinguish library features from user-defined ones.", "category"...
null
academy-agents__academy__291
academy-agents/academy
291
defect
5b1501dc58ab5924d816f1be7e89b712d62ce509
14aa382eca105770ef6e4a560b93717d206ed430
Implement internal timeout and retry for recv on http exchange
## Summary Currently `recv` on the `HttpExchangeTransport` are implemented by an Http request that sits and wait until a timeout. This can cause issues. Specifically, when we put the server behind a reverse proxy, `nginx` has a default timeout on requests that returned. To implement longer timeouts, we put the receive...
diff --git a/academy/exchange/cloud/client.py b/academy/exchange/cloud/client.py index a66c540e..6939d467 100644 --- a/academy/exchange/cloud/client.py +++ b/academy/exchange/cloud/client.py @@ -55,6 +55,7 @@ class _HttpConnectionInfo(NamedTuple): url: str additional_headers: dict[str, str] | None = None ...
4
2
1
[{"id": "G0", "claim": "Add a docstring to recv covering the unit of the timeout argument and its blocking/non-blocking behavior depending on the argument.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The debug-log message uses an f-string with no...
null
academy-agents__academy__379
academy-agents/academy
379
defect
4839c1118a6b51b6608408bbc68dee67030ca33e
b61977c95a6717c956b52ca5f8fac21bf37dbfd0
Fix issue #366 - Heartbeat feature to keep track of last activity time
## Summary Added a heartbeat feature that tracks the last activity time of mailboxes across all exchange transports ## Related Issues #366 ## Changes - [ ] Breaking (backwards incompatible changes to public interfaces) - [ ] Bug fix (non-breaking change which fixes an issue) - [!] Enhancement (non-break...
diff --git a/academy/exchange/client.py b/academy/exchange/client.py index 523038a9..c290c57c 100644 --- a/academy/exchange/client.py +++ b/academy/exchange/client.py @@ -206,6 +206,23 @@ async def terminate(self, uid: EntityId) -> None: """ await self._transport.terminate(uid) + async def update...
6
6
4
[{"id": "G0", "claim": "The heartbeat timestamps written into Redis should come from the Redis server clock rather than the client clock to avoid clock synchronization issues, and the mock redis should expose a `time` method to support that.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope"...
null
academy-agents__academy__398
academy-agents/academy
398
defect
a4075a7d4d4e3bacace77a85823a3c8fdbf50470
ae49bad0df65b7a082572abc68635de2ea416ff0
Add `Manager.launch_batch()` for batched agent
## Summary This PR improves the UX around user-facing auth prompts on the Globus Exchange. The underlying logic for batching auth was added in [a previous PR](https://github.com/academy-agents/academy/pull/387#issue-4257618820); this PR introduces the public API for it. Before this PR, batching auth across a set ...
diff --git a/academy/exchange/client.py b/academy/exchange/client.py index 54c3cd05..6160952d 100644 --- a/academy/exchange/client.py +++ b/academy/exchange/client.py @@ -184,17 +184,36 @@ async def register_agents( batch_fn = getattr(self._transport, 'register_agents', None) if batch_fn is not None: ...
20
19
2
[{"id": "G0", "claim": "If `_commit()` raises, the placeholder handles created by `batch.launch()` remain in `manager._handles`; evict the placeholder handles on any `_commit()` exception and only clear `_intents` after that cleanup.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intro...
null
acassen__keepalived__415
acassen/keepalived
415
defect
16018247a408ad7c500054790f1714f27f7f42e7
cd187390255ce1fce85b10943321d548b6ca2c46
Adding libipvs flags support
Support passing libipvs flags by configuration file. keyword for flags is lb_flags for example: lb_flags flag-1 flag-2 hashed
diff --git a/keepalived/check/check_data.c b/keepalived/check/check_data.c index a19115e7e6..0ddd7e9bd2 100644 --- a/keepalived/check/check_data.c +++ b/keepalived/check/check_data.c @@ -265,6 +265,7 @@ alloc_vs(char *ip, char *port) new->quorum = 1; new->hysteresis = 0; new->quorum_state = UP; + new->flags = 0; ...
4
4
2
[{"id": "G0", "claim": "The new lb_flags keyword duplicates the existing 'ops' keyword, since one-packet scheduling is already available via the 'ops' keyword.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Persistence can already be set using the existi...
null
acassen__keepalived__432
acassen/keepalived
432
defect
bc21563da70ad8f4da382b7a42788c788edbbb7e
fe9638b91b59e6c12a42bdfcd6551f5042eac894
Fix process increase
Hi, This is the proposal to the matter of mentioned in #429. - Script process does not respond to SIGTERM (fe9638b) ``` Sep 26 16:31:03 lb01 Keepalived_healthcheckers[28302]: Process [28304] didn't respond to SIGTERM Sep 26 16:31:03 lb01 Keepalived_healthcheckers[28302]: pid 28304 exited due to signal 9 Sep...
diff --git a/lib/signals.c b/lib/signals.c index 27b4f224f0..206c8ee68f 100644 --- a/lib/signals.c +++ b/lib/signals.c @@ -185,6 +185,7 @@ signal_handler_init(void) int sig; struct sigaction act, oact; int n; + static int remember = 1; #ifdef HAVE_PIPE2 n = pipe2(signal_pipe, O_CLOEXEC | O_NONBLOCK); @@ -224...
2
1
0
[{"id": "G0", "claim": "Rather than making `remember` a static variable in signal_handler_init(), it should be a parameter to the function, with only main.c calling it with remember = true since the vrrp and check children inherit the modified signal disposition set by the parent process.", "category": "maintainability...
null
acassen__keepalived__616
acassen/keepalived
616
defect
fa04910f18db7cb863388107e46d2048d9e09f44
4ce6efbde6eea69bfb5112e5407184dd6440f17c
Migrate failed checkers at reload
This patch is a proposal to #608. As pointed out by issue, there is a problem that inconsistency will occur in the checker_id before and after reload. Between the old_rs and the new_rs, it is necessary to correctly migrate the checker_id stored in failed_checkers. However, comparing the definitions of the chec...
diff --git a/keepalived/check/check_api.c b/keepalived/check/check_api.c index 43e033a066..2967782053 100644 --- a/keepalived/check/check_api.c +++ b/keepalived/check/check_api.c @@ -42,8 +42,9 @@ #include "check_dns.h" /* Global vars */ -static checker_id_t ncheckers = 0; +checker_id_t ncheckers = 0; list checker...
8
5
1
[{"id": "G0", "claim": "old_checkers_queue should not be a global but a local variable in reload_check_thread(), passed as a parameter to the functions that need it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The compare functions (compare_conn_opts ...
null
accomplish-ai__accomplish__295
accomplish-ai/accomplish
295
defect
7245d3b15c68d1da517337b6ad4b804a757c60da
4d911dd3533b03da071fe36fc4c944ced7dcd07a
fix: persist user data across app updates
## Summary - Remove fresh install cleanup mechanism that was resetting data on every app update - Hardcode userData path to `Openwork` instead of deriving from package.json name (`@accomplish/desktop`) - Remove `DATA_SCHEMA_VERSION` directory versioning (SQLite migrations handle schema changes) - Add one-time migratio...
diff --git a/apps/desktop/__tests__/integration/main/store/freshInstallCleanup.integration.test.ts b/apps/desktop/__tests__/integration/main/store/freshInstallCleanup.integration.test.ts deleted file mode 100644 index f014c1145..000000000 --- a/apps/desktop/__tests__/integration/main/store/freshInstallCleanup.integrati...
1
1
1
[{"id": "G0", "claim": "Hardcoding userData to 'Openwork' changes the encryption key derived by getDerivedKey, which includes app.getPath('userData') in its key material, so after legacyMigration copies secure-storage.json into the new path the key no longer matches and getApiKey returns null — users upgrading from @ac...
null
accomplish-ai__accomplish__302
accomplish-ai/accomplish
302
defect
76eb29fc995e25958c91adccf74c46e64900f04d
7c16599bef22647d290f4e57a28a94babdd5e5c9
refactor(ui): Add reusable SearchableSelect component
## Summary - Add a new `SearchableSelect` component in the UI folder with consistent styling for all list sizes - Refactor `ModelSelector` and `RegionSelector` to use the shared `SearchableSelect` component - Update `LMStudioProviderForm` and `OllamaProviderForm` to use `ModelSelector` instead of custom selects - A...
diff --git a/CLAUDE.md b/CLAUDE.md index 98b1bfe1c..fae5252ee 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -78,6 +78,9 @@ Renderer - Shared types go in `packages/shared/src/types/` - Renderer state via Zustand store actions - IPC handlers in `src/main/ipc/handlers.ts` must match `window.accomplish` API in preload +- **...
4
1
1
[{"id": "G0", "claim": "In the bedrock:validate handler, JSON.parse(credentials) is executed outside the try/catch, so a malformed credentials string throws an unhandled IPC exception instead of returning the clean { valid: false } response it used to.", "category": "correctness", "verdict": "supported", "priority": "P...
null