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
zenstackhq__zenstack__2590
zenstackhq/zenstack
2,590
defect
09b96e4ed382b98112acb37495bae50a5b167530
e6e46df5ce973fa97a0f1bdf7eac230570d3ff9d
fix(orm): return @db.Time fields as Date instead of raw string (#2589)
## Summary Fixes #2589. Postgres builds nested includes as `LEFT JOIN LATERAL (... jsonb_build_object(...))`, so the per-OID type parsers pg-node registers don't fire on the leaves — `transformOutputDate` has to do the string→`Date` conversion itself. For `@db.Time` / `@db.Timetz` values (e.g. `09:30:00`, `09:30:00+0...
diff --git a/packages/orm/src/client/crud/dialects/base-dialect.ts b/packages/orm/src/client/crud/dialects/base-dialect.ts index 16c37a233..6fddecdcd 100644 --- a/packages/orm/src/client/crud/dialects/base-dialect.ts +++ b/packages/orm/src/client/crud/dialects/base-dialect.ts @@ -95,7 +95,7 @@ export abstract class Bas...
2
1
1
[{"id": "G0", "claim": "The offset-normalization regex runs on all DateTime strings indiscriminately, so a date-only value like '2024-06-15' has its trailing '-15' rewritten as a timezone offset ('2024-06-15:00'), which fails parsing and comes back as a raw string instead of a Date; the ±HH expansion should be restrict...
null
zenstackhq__zenstack__2591
zenstackhq/zenstack
2,591
defect
09b96e4ed382b98112acb37495bae50a5b167530
a5510c920ffcc64588b32f85e43e9a0fe8079ffc
fix(orm): resolve delegate-inherited fields in cursor pagination
## Summary Closes #2588. `buildCursorFilter` hardcoded the child model alias for both the outer reference and the sub-select projection, so `findMany({ cursor, orderBy: { <delegate-parent-field>: ... } })` errored with `column "Child.field" does not exist`. The fix mirrors the `originModel`-aware field resolution alr...
diff --git a/packages/orm/src/client/crud/dialects/base-dialect.ts b/packages/orm/src/client/crud/dialects/base-dialect.ts index 16c37a233..c90f1f4d0 100644 --- a/packages/orm/src/client/crud/dialects/base-dialect.ts +++ b/packages/orm/src/client/crud/dialects/base-dialect.ts @@ -252,12 +252,17 @@ export abstract class...
1
1
1
[{"id": "G0", "claim": "Relying on a 2ms setTimeout between create calls makes createdAt-based delegate-field ordering tests potentially nondeterministic under CI load; pass explicit createdAt values (or increase the delay) to make them robust.", "category": "testing", "verdict": "supported", "priority": "P1", "scope":...
null
zenstackhq__zenstack__2627
zenstackhq/zenstack
2,627
defect
d30ebade7f88ec8e7a3a7badce12450b2af0bb8d
96ac1aac3692b8e088c49a9ec2cf30597d4d328c
fix(orm): export UncheckedCreateInput/CheckedCreateInput and add XOR to UpdateInput
Fixes #2567 ## Problem Spreading `Partial<PostCreateArgs['data']>` alongside an explicit FK field caused a TypeScript error because `CreateArgs['data']` is an XOR union — its exclusive keys become `?: never` in each branch, and `Partial<XOR<A,B>>` collapses that to `?: T | undefined` which is not assignable to `?: ne...
diff --git a/packages/orm/src/client/crud-types.ts b/packages/orm/src/client/crud-types.ts index 6f82aaba1..cc25c5774 100644 --- a/packages/orm/src/client/crud-types.ts +++ b/packages/orm/src/client/crud-types.ts @@ -1456,10 +1456,14 @@ type CreateRelationPayload< } >; -type CreateWithFKInput< +/** + * Create i...
2
1
1
[{"id": "G0", "claim": "UpdateManyPayload.data accepts only UpdateScalarInput, which excludes ForeignKeyFields — unlike CreateManyPayload.data and single UpdateInput (which include UpdateFKPayload) — so if FK updates should be supported in updateMany, data should be aligned with the CreateManyPayload pattern by interse...
null
zenstackhq__zenstack__2630
zenstackhq/zenstack
2,630
defect
9cef0272e71601cdf922403507a82dc13cfc8816
67da8840191c6ad120f60ce302c758d381111563
fix(tanstack-query): support DbNull/JsonNull/AnyNull serialization over the wire
## Summary - Registers SuperJSON custom serializers for `DbNull`, `JsonNull`, and `AnyNull` in `@zenstackhq/client-helpers` fetch layer, so these sentinels survive HTTP round-trips when passed as query filters or mutation input from tanstack-query hooks - Registers the same serializers in the server package's `registe...
diff --git a/packages/clients/client-helpers/src/fetch.ts b/packages/clients/client-helpers/src/fetch.ts index e4f3e8c7e..de3700d6c 100644 --- a/packages/clients/client-helpers/src/fetch.ts +++ b/packages/clients/client-helpers/src/fetch.ts @@ -1,4 +1,5 @@ import { lowerCaseFirst } from '@zenstackhq/common-helpers'; +...
1
1
1
[{"id": "G0", "claim": "The mutation and server-response tests should use the real DbNull sentinel instance instead of the `{ __brand: 'DbNull' }` plain object, which bypasses the `instanceof DbNullClass` serializer registration and lets the tests pass without validating the actual custom-serialization behavior.", "cat...
null
zentinelproxy__zentinel__197
zentinelproxy/zentinel
197
defect
3df25ef220f705d367f34d76ed3c1e2c29c39b7c
0cd0447bda73b39a58b08a3c8e95d674a46d05f9
feat(acme): add cloudflare dns and custom acme server support with EAB
- Implement Cloudflare DNS-01 provider for ACME challenges - Add support for custom ACME directory URLs (e.g., ZeroSSL, Step-ca) - Implement External Account Binding (EAB) support for ACME account creation - Fix a bug in the renewal scheduler that caused infinite renewal loops when using multiple domains (SAN) in a ...
diff --git a/config/examples/README.md b/config/examples/README.md index aaf29f7d..e0364762 100644 --- a/config/examples/README.md +++ b/config/examples/README.md @@ -14,6 +14,9 @@ Example configurations demonstrating Zentinel features and patterns. | Example | Description | |---------|-------------| | [api-schema-v...
4
4
3
[{"id": "G0", "claim": "CloudflareResponse<T>'s required `result: T` field will fail to deserialize when the Cloudflare API returns \"result\": null on error responses, before the `success` check runs; it should use Option<T> (or #[serde(default)]) and be unwrapped after checking success.", "category": "correctness", "...
null
zentinelproxy__zentinel__199
zentinelproxy/zentinel
199
defect
2d400132383100af351122c9ef1d602af0f54c35
9aec3226f0df5e3a32677b9ad3fa3375ac1ba4a5
feat(acme): support specifying certificate key type
## Summary This PR enables users to specify the encryption algorithm and key size for ACME-issued certificates. It adds a new `key-type` field to the ACME configuration block, supporting `ecdsa-p256` (default), `ecdsa-p384`, `rsa-2048`, and `rsa-4096`. This is essential for users requiring higher security levels (...
diff --git a/config/examples/README.md b/config/examples/README.md index e0364762..6b07997f 100644 --- a/config/examples/README.md +++ b/config/examples/README.md @@ -16,6 +16,7 @@ Example configurations demonstrating Zentinel features and patterns. | [api-schema-validation.kdl](api-schema-validation.kdl) | JSON Schem...
3
3
2
[{"id": "G0", "claim": "RSA key generation will fail at runtime because rcgen::KeyPair::generate_for(&PKCS_RSA_SHA256) needs the aws_lc_rs feature that zentinel's default ring backend does not enable, and even with it rcgen hardcodes Rsa2048 so rsa-4096 would silently produce a 2048-bit key; the reviewer asks to drop R...
null
zentinelproxy__zentinel__213
zentinelproxy/zentinel
213
defect
021a4e23766b3c39a3d491b20afd16df557c0378
d4c8561566c5fa1e2e2dd9abe67281b90bb2884c
feat: Support for ACME-managed SNI Certificates (Multi-tenant TLS)
## Summary This PR enables independent ACME certificate management for SNI blocks, a key feature for multi-tenant TLS environments. It allows different tenants/domains on the same listener to have their own ACME configurations (e.g., different account emails, storage locations, or challenge providers) and independen...
diff --git a/crates/config/src/kdl/server.rs b/crates/config/src/kdl/server.rs index 6ae65c70..aca024ab 100644 --- a/crates/config/src/kdl/server.rs +++ b/crates/config/src/kdl/server.rs @@ -643,44 +643,58 @@ fn parse_sni_certificate(node: &kdl::KdlNode, listener_id: &str) -> Result<SniCe )); } - let...
5
4
3
[{"id": "G0", "claim": "Tighten the KDL parser to reject a config that supplies both manual cert/key files and an acme block, since the current check only rejects 'neither' and tls.rs then matches the manual arm first, leaving the acme block as silent dead config.", "category": "correctness", "verdict": "supported", "p...
null
zeroc-ice__ice__1830
zeroc-ice/ice
1,830
defect
b00c80382a86f8f1db0ec550b3c465a22b29a875
0df0981f7a4c47894f5cca2890318127f9d3635c
Replace Ice_invokeResult by a tuple
This PR replaces Ice_invokeResult by a tuple and performs other related clean-ups. Fixes #1828.
diff --git a/cpp/include/Ice/Object.h b/cpp/include/Ice/Object.h index 540f7a22b22..430e23b9880 100644 --- a/cpp/include/Ice/Object.h +++ b/cpp/include/Ice/Object.h @@ -101,7 +101,6 @@ class ICE_API Object */ static const std::string& ice_staticId(); -// TODO: temporary. To remove it, we need to refactor I...
2
1
0
[{"id": "G0", "claim": "Asks whether to apply the 3.7 empty-result fix (commit 49f99d1) to the newly moved ice_invoke code or refactor it further, implying its empty-response branch (`R { ok, { 0, 0 }}`) may still mishandle the empty out-params case.", "category": "correctness", "verdict": "uncertain", "priority": "P1"...
null
zeroc-ice__ice__2152
zeroc-ice/ice
2,152
defect
4568302237695832e753921536bb280b9cfe07c5
ec9ff4c836a8383cf5664b24d51f80de954a5498
Ssl tests
This PR adds tests for using the macOS/iOS SSL APIs
diff --git a/cpp/src/Ice/SSL/SecureTransportTransceiverI.cpp b/cpp/src/Ice/SSL/SecureTransportTransceiverI.cpp index fc254ab7b0d..93c9a8372f6 100644 --- a/cpp/src/Ice/SSL/SecureTransportTransceiverI.cpp +++ b/cpp/src/Ice/SSL/SecureTransportTransceiverI.cpp @@ -239,6 +239,14 @@ Ice::SSL::SecureTransport::TransceiverI::i...
1
1
0
[{"id": "G0", "claim": "Remove the word \"explicitly\" from the certificate-verification SecurityException message and capitalize the first word after the period: \"The certificate was rejected...\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zeroc-ice__ice__2196
zeroc-ice/ice
2,196
defect
9b86f942d90a3cd3ed4440d3cfcf5d810841f096
dca0ca0383d8a59257c8101c84adde8921c1b803
Update certificate selection callback to use SCHANNEL_CRED
This PR replaces #2191, it updates the certificate selection callbacks used with Schannel to return a credentials object. This PR intentionally keeps SCHANNEL_CRED and an upgrade to the newer SCH_CREDENTIALS would be done in a follow-up PR.
diff --git a/cpp/include/Ice/SSL/ClientAuthenticationOptions.h b/cpp/include/Ice/SSL/ClientAuthenticationOptions.h index c1780d1bb65..fb6f52fa984 100644 --- a/cpp/include/Ice/SSL/ClientAuthenticationOptions.h +++ b/cpp/include/Ice/SSL/ClientAuthenticationOptions.h @@ -19,30 +19,33 @@ namespace Ice::SSL struct Scha...
4
4
1
[{"id": "G0", "claim": "The doc comment should read \"and hRootStore, and releases them when the connection is closed.\" instead of the doubled \"and\" without a comma.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment should read \"a...
null
zeroc-ice__ice__2209
zeroc-ice/ice
2,209
defect
8263a0b929dad744b426eaee22feef1edcc6e241
a3f00f88f6bd35934138aac6513c975a6e9683eb
Use SCH_CREDENTIALS
This PR updates the Schannel SSL transport implementation to use the new SCH_CREDENTIALS API instead of the deprecated SCHANNEL_CRED. The SCH_CREDENTIALS update brings support for TLS 1.3 to Windows. It appears that TLS 1.3 is not negotiated when using the old SCHANNEL_CRED version.
diff --git a/cpp/include/Ice/SSL/ClientAuthenticationOptions.h b/cpp/include/Ice/SSL/ClientAuthenticationOptions.h index ac145787449..cf46f8f07ff 100644 --- a/cpp/include/Ice/SSL/ClientAuthenticationOptions.h +++ b/cpp/include/Ice/SSL/ClientAuthenticationOptions.h @@ -22,7 +22,7 @@ namespace Ice::SSL * A call...
1
1
0
[{"id": "G0", "claim": "Drop \"remote\" from the SecurityException message \"The certificate was rejected by the remote certificate validation callback\" because it reads as if the remote host rejected the certificate.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zeroc-ice__ice__2211
zeroc-ice/ice
2,211
defect
3795bee613f1d5991183675227b979f303973847
e3e1431aaabfc3c73e6aa2945a0a5e1975fbf1a4
Disallow Optional Classes at the Slice Level
This PR adds a check to the Slice parser which will emit an error if you mark a type as `optional` if that type uses classes. It also fixes the last few random places where we were using optional classes in the tests. Now that this is complete, it also re-enables cross testing of the `csharp/Ice/optional` test. An...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f60cef10f96..dd517c1f8e4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -78,7 +78,7 @@ jobs: # Cross tests - os: ubuntu-22.04 config: "cross" - test_flags: "--all-cross --rfilter...
2
1
0
[{"id": "G0", "claim": "The rename of SmallStruct to LargeStruct in the Java Ice/stream test is unexplained and makes the test diverge from the equivalent C++ test, which still names the struct SmallStruct.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "...
null
zeroc-ice__ice__2320
zeroc-ice/ice
2,320
defect
ea346ecb90b5acf57eba0e1b367c3fc52e1b898f
c14a513a01d5ec6a7c24d33e4edb988f6592aec0
JavaScript Idle timeout impl
This PR implements idle timeout for JavaScript, similar to #2313
diff --git a/js/gulpfile.js b/js/gulpfile.js index 03d4067d5b7..e2f99417678 100644 --- a/js/gulpfile.js +++ b/js/gulpfile.js @@ -162,6 +162,7 @@ const tests = [ "test/Ice/exceptions", "test/Ice/facets", "test/Ice/hold", + "test/Ice/idleTimeout", "test/Ice/info", "test/Ice/inheritance", ...
10
9
1
[{"id": "G0", "claim": "The JS idle-timeout tests in Client.ts check the C++ server's behavior instead of the JS code, so they need to be rewritten to check the client-side JS behavior.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Most of these adapte...
null
zeroc-ice__ice__3592
zeroc-ice/ice
3,592
defect
e86867391e1aa13a4e9e1ebf96fc7790a1caa2f4
2d89366bec2413773bf23c6219365584222cc6c5
Complete Dispatch exception implementation
This PR makes the dispatch exception implementation and test more consistent across languages and reenables cross-testing for Ice/exceptions. Fixes #3548.
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ddf025c9c7c..6f4d950e508 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,10 +24,10 @@ jobs: - os: macos-15 config: "release" # We want to test C++ and Swift only (in each direction) - ...
1
1
0
[{"id": "G0", "claim": "std::move should be called when returning *message from createDispatchExceptionMessage to avoid an unnecessary copy.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zeroc-ice__ice__3762
zeroc-ice/ice
3,762
defect
102d2ce376cc537dc847de3b5b6c9dcd7b68c10b
a7d1e0da3396880b747a37a1c262f1076e67ede6
Update doc-comments for Ice and Glacier2 slice files
Also: - updates first lines of all the top-level Slice files to be consistent - rename DataStorm/Sample.ice -> SampleEvent.ice (this file defines enum SampleEvent) - deprecate Glacier2 metrics that are no longer relevant for the 3.8 Glacier2 router
diff --git a/cpp/include/DataStorm/DataStorm.h b/cpp/include/DataStorm/DataStorm.h index f67d2deeb59..45832b1e005 100644 --- a/cpp/include/DataStorm/DataStorm.h +++ b/cpp/include/DataStorm/DataStorm.h @@ -4,7 +4,7 @@ #define DATASTORM_DATASTORM_H #include "Config.h" -#include "DataStorm/Sample.h" +#include "DataSto...
14
10
0
[{"id": "G0", "claim": "The `@see` tag on the new SSLInfo doc-comment is not very good at present and should use the link resolver instead.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Consider adding a link or @see to PermissionsVerifier in the...
null
zeroc-ice__ice__3778
zeroc-ice/ice
3,778
defect
e00da608f9f76422ce420cebe4412794b309b6b5
1eb6c5cc630a8998c9cddc6d7af29474c27ab34f
Update Communicator, Initialize and Properties doc in C++
This PR updates the doc-comments for Communicator, Properties and Intialize.h in C++.
diff --git a/cpp/include/Ice/Communicator.h b/cpp/include/Ice/Communicator.h index ed69d3af598..690d9c6eb45 100644 --- a/cpp/include/Ice/Communicator.h +++ b/cpp/include/Ice/Communicator.h @@ -20,41 +20,37 @@ namespace Ice class LocatorPrx; class RouterPrx; - /// The central object in Ice. One or more co...
24
17
0
[{"id": "G0", "claim": "The random `@see` tags (including `@see` pointing at types used in function signatures) add no value and should go.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "A summary/description should never say that passing a bad ...
null
zeroc-ice__ice__3865
zeroc-ice/ice
3,865
defect
1f7391720a9d6d1ec37e79914dc8cebbc2c98f3e
8358d570e6dc38679764c97d139955f21aedfab6
Simplify ProtocolPluginFacade in C++, C# and Java
The ProtocolPluginFacade is what transport plug-ins use to register their endpoint factory(ies) with a communicator.
diff --git a/cpp/src/Ice/ProtocolPluginFacade.cpp b/cpp/src/Ice/ProtocolPluginFacade.cpp index 376f4dc1c83..1ff38de341a 100644 --- a/cpp/src/Ice/ProtocolPluginFacade.cpp +++ b/cpp/src/Ice/ProtocolPluginFacade.cpp @@ -11,20 +11,6 @@ using namespace std; using namespace Ice; using namespace IceInternal; -IceInternal:...
1
1
0
[{"id": "G0", "claim": "Remove the findClass method from ProtocolPluginFacade, since it is only a wrapper around the instance one, which itself wraps the already-public static Util.findClass.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zeroc-ice__ice__3912
zeroc-ice/ice
3,912
defect
efb71711ac0e53fa1843b19854b326db030740b6
b6beb9f6fccb46492a614eb14fa1794a51fdf133
Remove ValueFactory(Manager) from C++
This PR removes ValueFactory and ValueFactoryManager from C++. It includes #3911.
diff --git a/cpp/include/Ice/Communicator.h b/cpp/include/Ice/Communicator.h index bb1f8ee7f5c..5f07fb7ecb2 100644 --- a/cpp/include/Ice/Communicator.h +++ b/cpp/include/Ice/Communicator.h @@ -243,11 +243,6 @@ namespace Ice /// @see PluginManager [[nodiscard]] PluginManagerPtr getPluginManager() const...
4
2
0
[{"id": "G0", "claim": "The test should include the C++ header <complex> instead of the C header <complex.h> for better language consistency.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "With the valueFactoryManager fallback removed, the Custo...
null
zeroc-ice__ice__3947
zeroc-ice/ice
3,947
defect
930d68d99544c7189a7473eded4541c5e0961093
c34ff6728c16482e77a6055d1fdfa97dc4bbe94f
Remove view-type from dictionary, improve Ice/span test
This PR removes the cpp:view-type metadata from dictionary because: - we don't provide any type (such as span) to use it with - it was only useful in the event to added your own view-type handling with a StreamHelper - we didn't have any test for dictionary view-types This PR also improves the existing Ice/s...
diff --git a/cpp/src/slice2cpp/CPlusPlusUtil.cpp b/cpp/src/slice2cpp/CPlusPlusUtil.cpp index a324a3ac5c9..dddd1556b70 100644 --- a/cpp/src/slice2cpp/CPlusPlusUtil.cpp +++ b/cpp/src/slice2cpp/CPlusPlusUtil.cpp @@ -155,9 +155,9 @@ namespace { return true; } - if (dynamic_pointer_cast...
4
1
0
[{"id": "G0", "claim": "Constructing a temporary vector<string_view> from 'dataIn' in opStringSpanAsync may introduce extra copying overhead; consider a direct conversion to std::span to avoid the additional allocation.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id"...
null
zeroc-ice__ice__3954
zeroc-ice/ice
3,954
defect
73a4c8b387e30e4b24530c7a07d9008a5d83b3f1
33c778031432af48e66b9b4e15f6fc4f18df6df4
Remove --nowarn option
Fix #3635
diff --git a/cpp/src/Glacier2/Glacier2Router.cpp b/cpp/src/Glacier2/Glacier2Router.cpp index d0bff5ef68c..6b434762372 100644 --- a/cpp/src/Glacier2/Glacier2Router.cpp +++ b/cpp/src/Glacier2/Glacier2Router.cpp @@ -88,12 +88,9 @@ RouterService::RouterService() = default; bool RouterService::start(int argc, char* argv[]...
1
1
1
[{"id": "G0", "claim": "The man pages (man1/icegridnode.1, man1/glacier2router.1, man1/icegridregistry.1, man1/icebox.1) still document the --nowarn option and must be updated to remove it.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
zeroc-ice__ice__4060
zeroc-ice/ice
4,060
defect
90132f1dc01d202db8bbb62780f6cf9cc432e43d
6c5d1861086e5d4725226e0d001330b2bb1697a4
Replace ERR_get_error_line_data usage
fix #4022
diff --git a/cpp/include/Ice/SSL/Config.h b/cpp/include/Ice/SSL/Config.h index 76be07e49bc..9be44255c33 100644 --- a/cpp/include/Ice/SSL/Config.h +++ b/cpp/include/Ice/SSL/Config.h @@ -45,6 +45,9 @@ # include <Security/SecureTransport.h> # include <Security/Security.h> #else +# ifndef OPENSSL_API_COMPAT +# ...
6
2
0
[{"id": "G0", "claim": "Replace the magic literal 256 in the getErrors buffer declaration with a named constant (e.g. ERR_ERROR_STRING_BUF_SIZE) to clarify its purpose and keep it in sync with OpenSSL's requirements.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id...
null
zeroc-ice__ice__4175
zeroc-ice/ice
4,175
defect
c9ab82d649e23d2b1b915b1f9b7e5133348f0ce4
073d56c171b1518b2036a0882f5613dbb3e041dc
Add test for proxy hierarchy
This PR adds a new test for Slice interface inheritance, specially for the Proxy mapping. It also fixes the generated TypeScript definition to correctly support proxy hierarchies.
diff --git a/cpp/src/slice2js/Gen.cpp b/cpp/src/slice2js/Gen.cpp index 9c3578dca69..249a7b401b7 100644 --- a/cpp/src/slice2js/Gen.cpp +++ b/cpp/src/slice2js/Gen.cpp @@ -2347,9 +2347,28 @@ Slice::Gen::TypeScriptVisitor::visitInterfaceDefStart(const InterfaceDefPtr& p) // Define servant and proxy types. // ...
4
4
1
[{"id": "G0", "claim": "The generated TypeScript code should use _out.spar(\"\") followed by _out.epar(\"\") instead of a manual first flag to separate base interfaces.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Collocated test and the n...
null
zeroc-ice__ice__4330
zeroc-ice/ice
4,330
defect
a71c8313b6519434e3824896d3abfd64cf9c2632
2286d177ef1f8f88614212a6729ded4cb3332d92
MATLAB R2025a fixes
This PR back ports MATLAB R2025a from https://github.com/zeroc-ice/ice/pull/4133 into 3.7
diff --git a/cpp/test/Ice/adapterDeactivation/AllTests.cpp b/cpp/test/Ice/adapterDeactivation/AllTests.cpp index 3ff45871b37..5de073be5d2 100644 --- a/cpp/test/Ice/adapterDeactivation/AllTests.cpp +++ b/cpp/test/Ice/adapterDeactivation/AllTests.cpp @@ -8,6 +8,8 @@ #ifdef ICE_CPP11_MAPPING # include <thread> +# ...
3
1
0
[{"id": "G0", "claim": "The return line added in Ice_Communicator_stringToProxy uses a tab character while surrounding lines use spaces, and should use spaces for consistency with the rest of the codebase.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "c...
null
zeroc-ice__ice__4481
zeroc-ice/ice
4,481
defect
9a2fbb8cd583e50d2bc6fa6be86fd08bd2fa6b59
fd22464691d8f6bb3497c178194bc97a41867c3d
Add Connection::disableInactivityCheck in C++, use it in IceGrid
This PR adds a new disableInactivityCheck function on Ice::Connection (C++ only), and uses this new function in IceGrid. With this update, "regular" connections to the IceGrid (client) registry are again subject to the server-side inactivity check, while connections bound to sessions are not. Fixes #4402.
diff --git a/cpp/include/Ice/Connection.h b/cpp/include/Ice/Connection.h index bff5402310e..96413c16dd6 100644 --- a/cpp/include/Ice/Connection.h +++ b/cpp/include/Ice/Connection.h @@ -129,6 +129,9 @@ namespace Ice /// @param callback The close callback object. virtual void setCloseCallback(CloseCallb...
2
1
0
[{"id": "G0", "claim": "The comment added in AdminSessionI.cpp has two spaces between 'sent' and 'at'; it should use a single space (a suggestion block was provided).", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Why is the inactivity check disab...
null
zeroc-ice__ice__4582
zeroc-ice/ice
4,582
defect
087478f8b45c4864e164a976a4b05c2d77d769a4
a3d7c33b4544f70c27e183b73fe9ec362ab435e5
Update tests to use one log file per communicator
This PR updates the idleTimeout and inactivityTimeout tests to use a log file for each communicator.
diff --git a/cpp/test/Common/TestHelper.cpp b/cpp/test/Common/TestHelper.cpp index c83a5efe950..841becfbb74 100644 --- a/cpp/test/Common/TestHelper.cpp +++ b/cpp/test/Common/TestHelper.cpp @@ -255,6 +255,18 @@ Test::TestHelper::getTestPort(const Ice::PropertiesPtr& properties, int num) return properties->getProper...
7
6
3
[{"id": "G0", "claim": "If the log file name contains no period, find_last_of('.') returns string::npos and the substr() calls have undefined behavior; add a check for a period before using find_last_of.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim":...
null
zeroc-ice__ice__4628
zeroc-ice/ice
4,628
defect
b6378c949ade18ba85496cfbc993c7e1499e6257
1bd8b61e0be3a6a434f92758065c6d29e2124e9b
Test renamed classes
Fix #3583
diff --git a/cpp/test/Ice/objects/AllTests.cpp b/cpp/test/Ice/objects/AllTests.cpp index fd8677af785..755dd1f9aca 100644 --- a/cpp/test/Ice/objects/AllTests.cpp +++ b/cpp/test/Ice/objects/AllTests.cpp @@ -148,6 +148,19 @@ allTests(Test::TestHelper* helper) test(d); cout << "ok" << endl; + cout << "testin...
6
2
2
[{"id": "G0", "claim": "The new MATLAB checks call `test(...)`, which is not defined in AllTests.m, so they should use `assert(...)` like the rest of the file.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks whether adding `\"python...
null
zeroc-ice__ice__4633
zeroc-ice/ice
4,633
defect
614281c5621d7b43cf882b1e3f6110853e488592
ad9a7e5c6db71143d81e713324b867490e265b1e
Add ice_endpoints test
Fix #3627
diff --git a/cpp/test/Ice/proxy/AllTests.cpp b/cpp/test/Ice/proxy/AllTests.cpp index a1b2d00cd51..43622bd2716 100644 --- a/cpp/test/Ice/proxy/AllTests.cpp +++ b/cpp/test/Ice/proxy/AllTests.cpp @@ -778,7 +778,9 @@ allTests(TestHelper* helper) endpts1.end(), Ice::TargetCompare<Ice::EndpointPtr, std::les...
2
1
1
[{"id": "G0", "claim": "The JS test hardcodes the protocol to 'tcp' while the surrounding test code uses defaultProtocol (lines 696-703), which could cause test failures when running with non-TCP protocols; use `foo:${defaultProtocol}` instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "sco...
null
zeroc-ice__ice__4659
zeroc-ice/ice
4,659
defect
34294ff43b443054f5fb1f423d08c0d755b6d1df
0534a8b93ef148ccd10015004b5692d1dc3b641b
Add default for Ice.ProgramName in C++ and C++ based languages
Part of #4565 I originally used the term fallback. However, I feel that _default_ is more correct as it's what we say about other properties. In the case where we can't determine the program name, like in MATLAB, or we're running from the Python REPL, then we use `IceLANG`. Please let me know if you prefer someth...
diff --git a/CHANGELOG-3.8.md b/CHANGELOG-3.8.md index 4d26275c5d7..0a7720584d2 100644 --- a/CHANGELOG-3.8.md +++ b/CHANGELOG-3.8.md @@ -727,6 +727,14 @@ See `InitializationData::pluginFactories`. There is no clean way to recover from these errors, and keeping malfunctioning systems running is of no help; abortin...
22
19
1
[{"id": "G0", "claim": "The Swift test output string says \"Ice.Program\" but should say \"Ice.ProgramName\" to match the property name being tested.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new Ruby test block is missing a `puts \"ok\"`...
null
zeroc-ice__ice__4664
zeroc-ice/ice
4,664
defect
14bc2f79c269266297cd5ff431806b22f858f5d5
a9a7e6a772955be29726cfcca4ac70e17f47ce67
Remove Ice.ProgramName IceXXX fallback
This PR makes some amendments and fixes to my previous PR regarding Ice.ProgramName. - No long set `IceXXX` as a default fallback value in the C++ or C++ based languages. In the case of MATLAB or the Python REPL, you'll get the executable, for example: `matlab` or `python3`. If the C++ fails (possible but unlikely)...
diff --git a/CHANGELOG-3.8.md b/CHANGELOG-3.8.md index 94a5a2468a1..6ec3fdca2de 100644 --- a/CHANGELOG-3.8.md +++ b/CHANGELOG-3.8.md @@ -380,9 +380,9 @@ classDiagram - Added `getIceProperty`, `getIcePropertyAsInt`, and `getIcePropertyAsList` methods to `Properties`. These methods return the value of an Ice property...
4
3
0
[{"id": "G0", "claim": "The changelog has an extra space before the comma in \"Python , Ruby\", which should read \"Python, Ruby\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The MATLAB test asserts exact equality with 'matlab', but on Windows...
null
zeroc-ice__ice__4829
zeroc-ice/ice
4,829
defect
e6370135c4f1c4dbd75f28f22603346c9ebff6ec
df9fde0caa157f6f8f1081e37691f9ce0bd968b6
Replace 3DES by AES_128 in Schannel test
Fixes IceSSL/configuration CI failure on Windows Closes #4805
diff --git a/cpp/test/IceSSL/configuration/AllTests.cpp b/cpp/test/IceSSL/configuration/AllTests.cpp index 39ad6df98d8..8002e69dd9f 100644 --- a/cpp/test/IceSSL/configuration/AllTests.cpp +++ b/cpp/test/IceSSL/configuration/AllTests.cpp @@ -2621,25 +2621,25 @@ allTests(Test::TestHelper* helper, const string& /*testDir*...
1
1
0
[{"id": "G0", "claim": "The added comment is contradictory and incorrect; it should be rewritten to state that the client and server do not enable a common cipher (client: AES_128, server: AES_256) so the connection should fail.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduc...
null
zeroc-ice__ice__5142
zeroc-ice/ice
5,142
defect
859047391e5e07c9818df2097c3790b541ff0140
dd38519418c30b91061d9882058e9153edc79e91
Fix data races in test code found by ThreadSanitizer
## Summary Fixes data races in test infrastructure code detected by ThreadSanitizer (TSan): - **Ice/location**: `ServerLocator::_requestCount` and `ServerLocatorRegistry::_setRequestCount` were plain integers incremented from multiple dispatch threads via `const_cast`. Changed to `std::atomic` (with `mutable` for...
diff --git a/cpp/test/Ice/location/ServerLocator.cpp b/cpp/test/Ice/location/ServerLocator.cpp index 838c8ebfb68..88caf5de573 100644 --- a/cpp/test/Ice/location/ServerLocator.cpp +++ b/cpp/test/Ice/location/ServerLocator.cpp @@ -102,7 +102,7 @@ ServerLocator::ServerLocator(ServerLocatorRegistryPtr registry, const optio...
1
1
0
[{"id": "G0", "claim": "The `_adapters` map is mutated in the same places that modify `_setRequestCount`, so it also needs synchronization rather than being left unprotected.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}]
null
zeroc-ice__ice__5287
zeroc-ice/ice
5,287
defect
05768ca2907b39da5de9902d9000a54725f7fe18
5fbc5bc34a89c9cb82ca53bd3709df020281cc05
Add ["oneway"] metadata
Fixes #5224
diff --git a/.vscode/settings.json b/.vscode/settings.json index 070d764bf53..65801444c15 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,7 +1,8 @@ { "C_Cpp.autoAddFileAssociations": false, "files.associations": { - "Make.*": "makefile" + "Make.*": "makefile", + "**/...
12
10
5
[{"id": "G0", "claim": "The PR should add a CHANGELOG.md entry describing the new [\"oneway\"] metadata directive and OnewayOnlyException behavior.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The doc comments should say \"an oneway-only operati...
null
zeroc-ice__ice__5298
zeroc-ice/ice
5,298
defect
d882e62dc740ac00b81e7aad977ba739b248e496
73e02b728e67b4097006d23123aa4d18f5649e1a
Backport #5287 to 3.8: Add ["oneway"] metadata and OnewayOnlyException
Fixes #5224 Backport note: manually updated CHANGELOG-3.8.md (cherry picked from commit a9a38d2f27b9384e89a75f0160564e11ade259a8)
diff --git a/.vscode/settings.json b/.vscode/settings.json index 070d764bf53..7f915de899d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,7 +1,8 @@ { "C_Cpp.autoAddFileAssociations": false, "files.associations": { - "Make.*": "makefile" + "Make.*": "makefile", + "**/...
2
1
1
[{"id": "G0", "claim": "The generated Swift proxy code throws an unqualified OnewayOnlyException; the generator should emit it qualified via getUnqualified (e.g. Ice.OnewayOnlyException) to follow slice2swift's existing qualification convention and avoid name collisions in generated code.", "category": "correctness", "...
null
zeromicro__go-zero__2291
zeromicro/go-zero
2,291
defect
040c9e09543df737376f1bda4d4f65a1fdbe17f6
722cd7ae72edf5e2758db56c9b990d708f9f09e4
feat(redis): add ZaddFloat & ZaddFloatCtx
resolve #2289
diff --git a/core/stores/kv/store.go b/core/stores/kv/store.go index f7ee6b42c8e64..240ec0becadc9 100644 --- a/core/stores/kv/store.go +++ b/core/stores/kv/store.go @@ -110,7 +110,9 @@ type ( Ttl(key string) (int, error) TtlCtx(ctx context.Context, key string) (int, error) Zadd(key string, score int64, value s...
1
1
0
[{"id": "G0", "claim": "The new methods should be named ZaddFloat and ZaddFloatCtx instead of ZaddFloat64 and ZaddFloat64Ctx, to follow the naming style of ParseFloat and FormatFloat in the Go standard library.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zeromicro__go-zero__2463
zeromicro/go-zero
2,463
defect
e7acadb15df23bdcea84838f251bc66f2181d3bc
8cb138fe72fe914b710f5886333072199d912a3b
feat: add logc package, support AddGlobalFields for both logc and logx.
fix #2351
diff --git a/core/logc/logs.go b/core/logc/logs.go new file mode 100644 index 000000000000..ec383e8d369a --- /dev/null +++ b/core/logc/logs.go @@ -0,0 +1,122 @@ +package logc + +import ( + "context" + "fmt" + + "github.com/zeromicro/go-zero/core/logx" +) + +type ( + LogConf = logx.LogConf + LogField = logx.LogField +)...
1
1
0
[{"id": "G0", "claim": "AddGlobalFields should be simplified: the if/else branches are almost identical, so the lock-free CompareAndSwap retry loop can be combined or replaced with something simpler.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zeromicro__go-zero__3694
zeromicro/go-zero
3,694
defect
fd8ee0b8513d5ea1c0ead6daa66db4f23a5094d7
813191b60e9ba6846186315070a583d84728f087
fix import error if generate multiple proto
Close #3692.
diff --git a/tools/goctl/rpc/generator/genpb.go b/tools/goctl/rpc/generator/genpb.go index 797a1fc8bdea2..8bc268ee31cdc 100644 --- a/tools/goctl/rpc/generator/genpb.go +++ b/tools/goctl/rpc/generator/genpb.go @@ -31,14 +31,14 @@ func (g *Generator) genPbDirect(ctx DirContext, c *ZRpcContext) error { } func (g *Gene...
1
1
0
[{"id": "G0", "claim": "Use strings.TrimSuffix(filepath.Base(src), filepath.Ext(src)) instead of strings.Split(filepath.Base(src), \".\")[0] to derive protoName.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zeromicro__go-zero__4654
zeromicro/go-zero
4,654
defect
560c61612c3b37da6da8c1738d56b8ceff58582b
b6427b904df465d8d6b664c5aa4d2096fc55d5c6
fix: SlowThreshold configuration not taking effect
fix #4641
diff --git a/zrpc/internal/serverinterceptors/statinterceptor.go b/zrpc/internal/serverinterceptors/statinterceptor.go index b31bf7ffa77a..874d84b098ab 100644 --- a/zrpc/internal/serverinterceptors/statinterceptor.go +++ b/zrpc/internal/serverinterceptors/statinterceptor.go @@ -25,7 +25,7 @@ var ( // StatConf define...
1
1
1
[{"id": "G0", "claim": "The slow-call check should still consider slowThreshold, because users might set it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
zeromicro__go-zero__4888
zeromicro/go-zero
4,888
defect
ff890628b0e898c6ae528a644b5421ad8b6796f7
51e96ed64f75256983bd3cf5a193aeb4191aba2f
feat: add generic TypedSet with 2x performance boost and compile-time
- Compile-time type safety: No runtime type checking required - Better performance: Reduced overhead from type assertions and reflection - Simplified API: Single Add method replaces multiple type-specific methods - Backward compatibility: Existing Set implementation remains unchanged benchmark: `goos: darwin ...
diff --git a/core/collection/set.go b/core/collection/set.go index b65e33fbdcf8..396a7eae2f7d 100644 --- a/core/collection/set.go +++ b/core/collection/set.go @@ -15,13 +15,99 @@ const ( stringType ) +// TypedSet is a type-safe generic set collection. It's not thread-safe, +// use with synchronization for concurre...
2
1
0
[{"id": "G0", "claim": "Consider removing the duplicate benchmark BenchmarkTypedSetInt, which is identical to BenchmarkTypedIntSet, to avoid confusion and keep cleaner test code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Clear method sh...
null
zeromicro__go-zero__4912
zeromicro/go-zero
4,912
defect
36d57626b6012ceff87254b424f760114fe47429
2f661e225dda8e4dc4ab03825d395624a1cac188
feat: redis support consumer groups
fix https://github.com/zeromicro/go-zero/issues/1258
diff --git a/core/stores/redis/redis.go b/core/stores/redis/redis.go index 66fcef4e0ad93..39b4667851057 100644 --- a/core/stores/redis/redis.go +++ b/core/stores/redis/redis.go @@ -2402,6 +2402,117 @@ func (s *Redis) ZunionstoreCtx(ctx context.Context, dest string, store *ZStore) return conn.ZUnionStore(ctx, dest, st...
3
2
1
[{"id": "G0", "claim": "XInfoConsumersCtx ignores its ctx parameter because it passes context.Background() to conn.XInfoConsumers; it should use the provided ctx to allow proper cancellation and timeout propagation.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G...
null
zeromicro__go-zero__4960
zeromicro/go-zero
4,960
defect
0d31e6c3752b63e8bcaba896e96cacdefec0c5ec
db3268144a0bf819adb713d2da0510e0d43243ee
fix: Issue with etcd key disappearing and unable to auto-re-register
1. Problem There is an issue in production where when go-zero uses etcd, under certain conditions, the registered key disappears, causing frontend services to be unable to find backend services. 2. Reproduction conditions Then I simulated it locally by deleting the registered key in etcd. It won't regenerate, even if ...
diff --git a/core/discov/publisher.go b/core/discov/publisher.go index 03f23a52d60f0..7fc1928cce401 100644 --- a/core/discov/publisher.go +++ b/core/discov/publisher.go @@ -125,6 +125,8 @@ func (p *Publisher) keepAliveAsync(cli internal.EtcdClient) error { } threading.GoSafe(func() { + ticker := time.NewTicker(5...
3
3
1
[{"id": "G0", "claim": "The fallback-check ticker interval can be adjusted from 5s to 30s, since the fallback check does not need to run this frequently.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "This block could reuse doKeepAlive's logic, for ...
null
zeromicro__go-zero__4987
zeromicro/go-zero
4,987
defect
c9ff6a10d34e30e2f631de14683bbd9fbd2d05ea
ca7e131fbd6c0af47890c05ac761de9b4ee7c14b
feat(zrpc): migrate kube resolver from Endpoints to EndpointSlice API
### Motivation Kubernetes is gradually deprecating the legacy `core/v1 Endpoints` API in favor of the newer `discovery/v1 EndpointSlice` API. Compared with `Endpoints`, `EndpointSlice` objects: * Scale horizontally—each slice covers a subset of endpoints, avoiding the single-object size limit. * Reduce API-...
diff --git a/zrpc/resolver/internal/kube/eventhandler.go b/zrpc/resolver/internal/kube/eventhandler.go index 3e0c6b14fd51e..1c0180ac97f21 100644 --- a/zrpc/resolver/internal/kube/eventhandler.go +++ b/zrpc/resolver/internal/kube/eventhandler.go @@ -5,7 +5,7 @@ import ( "github.com/zeromicro/go-zero/core/lang" "gi...
3
2
2
[{"id": "G0", "claim": "The port fallback dereferences endpointSlices.Items[0].Ports[0].Port assuming each EndpointSlice has a non-empty Ports slice, so it will panic if Ports is empty; add a check for len(Ports) > 0 (and a nil-Port pointer) before dereferencing and return a clear error if missing.", "category": "corre...
null
zeromicro__go-zero__4990
zeromicro/go-zero
4,990
defect
8c6266f33859a1ef8f60af440755ddf0da6b08e9
3ed0d8da212b4be98984b3e4ddedcc825f086d53
chore: refactoring sql read write mode
- [x] add more tests on first WithWrite then WithReadReplica
diff --git a/core/stores/sqlx/rwstrategy.go b/core/stores/sqlx/rwstrategy.go index 3a5813fa04278..c4020a4467b03 100644 --- a/core/stores/sqlx/rwstrategy.go +++ b/core/stores/sqlx/rwstrategy.go @@ -27,10 +27,25 @@ const ( notSpecifiedMode readWriteMode = "" ) -type readWriteMode string - var readWriteModeKey struc...
3
1
1
[{"id": "G0", "claim": "The doc comment on MustNewConn should be updated to say that it panics (or exits) on error instead of only saying it returns a SqlConn.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment on NewConn should be adj...
null
zeromicro__go-zero__5032
zeromicro/go-zero
5,032
defect
25f37ca7500a9522882d85e6ffa8f368825d89e6
f9027738da514f640b3f082832d6b2302e4761ca
fix(httpx): Resolve HTML escaping issue during JSON serialization
- Implemented json.Encoder as a replacement for json.Marshal to prevent automatic HTML character escaping - Introduced the doMarshalJson function to handle JSON serialization logic - Added comprehensive test cases to validate serialization behavior across various data types
diff --git a/rest/httpx/responses.go b/rest/httpx/responses.go index 6f2de09539210..8873f082c790d 100644 --- a/rest/httpx/responses.go +++ b/rest/httpx/responses.go @@ -1,6 +1,7 @@ package httpx import ( + "bytes" "context" "encoding/json" "errors" @@ -172,6 +173,26 @@ func doHandleError(w http.ResponseWriter...
2
1
1
[{"id": "G0", "claim": "doMarshalJson is added but doWriteJson still calls json.Marshal, so the HTML-escaping fix is not applied to the actual JSON writing (and the new non-exported method is left unused).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim...
null
zeromicro__go-zero__5065
zeromicro/go-zero
5,065
defect
46e466f0371b3d41d3f5dbc53d4c99dc7d804d11
30ae652c551871467513bc3c8305c55f5ae8e266
fix: resolve concurrent get may lead to empty result in ImmutableResource
## Fix Problem Concurrent calls to `ImmutableResource.Get()` could return `(nil, nil)` when: 1. Multiple goroutines check `resource == nil` simultaneously 2. Only one goroutine passes `maybeRefresh` check 3. Other goroutines skip refresh due to time condition
diff --git a/core/syncx/immutableresource.go b/core/syncx/immutableresource.go index dd9e4733aa00e..1b912bea19d11 100644 --- a/core/syncx/immutableresource.go +++ b/core/syncx/immutableresource.go @@ -19,6 +19,7 @@ type ( resource any err error lock sync.RWMutex + refreshLock ...
2
1
0
[{"id": "G0", "claim": "The refreshLock field added to ImmutableResource is never used in the updated implementation, creating dead code that should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Using a write lock for all Get() oper...
null
zeromicro__go-zero__5083
zeromicro/go-zero
5,083
defect
31b749ab675b7270ab2f4154ffc149e0aada90d2
f7ef4bbe80cae4aa7a6f8c879f4105454612de84
fix: 5076
#5076 在使用gateway->grpc的链路时,如果在grpc里面设置了metadata,则对应的http header不会输出。本pr是为了满足输出需求。 可以用下面的代码复现下。 ```go // 创建要返回的 metadata trailer := metadata.New(map[string]string{ "trace-id": "trace-98765", "server": "grpc-server-1", }) // // 发送 header(可选) if err := grpc.SendHeader(l.ctx, metadata.P...
diff --git a/gateway/internal/eventhandler.go b/gateway/internal/eventhandler.go index e3a0f0c2df8f..be45fb48cf71 100644 --- a/gateway/internal/eventhandler.go +++ b/gateway/internal/eventhandler.go @@ -2,6 +2,7 @@ package internal import ( "io" + "net/http" "github.com/golang/protobuf/jsonpb" "github.com/go...
1
1
0
[{"id": "G0", "claim": "gRPC metadata keys copied into the HTTP response in OnReceiveTrailers and OnReceiveHeaders should be formatted for HTTP headers with http.CanonicalHeaderKey(k) instead of being added verbatim.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
zeromicro__go-zero__5113
zeromicro/go-zero
5,113
defect
5f54f06ee53e624d44e5161a5cbf905a2593ceee
2725b968c5527855c10b088a6f3678b63071e7f2
fix:issue-5110
修复 #5110. 目前的响应实现,对于Header会加Grpc-Metadata-前缀。对于Trailer会加Grpc-Trailer-前缀
diff --git a/gateway/internal/eventhandler.go b/gateway/internal/eventhandler.go index 94d203b0130e5..51667c971f496 100644 --- a/gateway/internal/eventhandler.go +++ b/gateway/internal/eventhandler.go @@ -3,6 +3,7 @@ package internal import ( "io" "net/http" + "strings" "github.com/golang/protobuf/jsonpb" "g...
1
1
0
[{"id": "G0", "claim": "When multiple values exist for the content-type header key, the logic skips processing values after the first gRPC content-type value, so non-gRPC values in the same key would be lost.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
zeromicro__go-zero__5196
zeromicro/go-zero
5,196
defect
cf55a88ce3f7218850c35a7fab7c868a49d060f8
211a663d991ad0105a888e3f9362ce11d0633ad9
feat(handler): add sseSlowThreshold
https://github.com/zeromicro/go-zero/issues/5197 SSE (Server-Sent Events) requests are incorrectly using the regular HTTP slow log threshold (500ms), causing numerous false positive slow request logs.
diff --git a/rest/handler/loghandler.go b/rest/handler/loghandler.go index e6552fc021010..d4aafa0b22293 100644 --- a/rest/handler/loghandler.go +++ b/rest/handler/loghandler.go @@ -24,12 +24,16 @@ import ( ) const ( - limitBodyBytes = 1024 - limitDetailedBodyBytes = 4096 - defaultSlowThreshold = time.Mill...
4
1
0
[{"id": "G0", "claim": "headerAccept and valueSSE are referenced but not defined in the visible code of loghandler.go; consider defining these constants in this file or importing them explicitly to improve clarity and maintainability.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "in...
null
zeromicro__go-zero__5199
zeromicro/go-zero
5,199
defect
271f10598f295161af2c131eb29fd0a080b161f7
beeca19ea121163bbc389287cba16eb90c1fce3d
fix(goctl/swagger): correct $ref placement in array definitions when useDefinitions is enabled
- [x] Analyzed the issue in swagger generation when using `useDefinitions` - [x] Identified the problem in `propertiesFromType` function where both schema properties and `$ref` are set - [x] Located the problematic code in `tools/goctl/api/swagger/properties.go` lines 78-83 - [x] Fix the issue by ensuring proper handli...
diff --git a/tools/goctl/api/swagger/properties.go b/tools/goctl/api/swagger/properties.go index e5bf6d204af89..bf263fb5a1015 100644 --- a/tools/goctl/api/swagger/properties.go +++ b/tools/goctl/api/swagger/properties.go @@ -70,15 +70,40 @@ func propertiesFromType(ctx Context, tp apiSpec.Type) (spec.SchemaProperties, [...
2
2
0
[{"id": "G0", "claim": "Use `spec` directly as the package name in the test file instead of the `apiSpec` alias.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the fmt.Printf debug output from unit tests.", "category": "testing", "verdict...
null
zeromicro__go-zero__5212
zeromicro/go-zero
5,212
defect
875fec3e1a837e2938bdb74c09f9dbad90c3095a
08e999f879c5a2efa0ea76c7f03fa4a51b4770ae
Fix swagger path generation: remove trailing slash for root routes with prefix
- [x] Understand the issue: When API route is `/` with a prefix, generated swagger path has trailing slash - [x] Create test case to reproduce the bug in `path_test.go` - [x] Fix the path generation logic in `spec2Paths` function to handle root routes properly - [x] Add comprehensive edge case tests (trailing slash, no...
diff --git a/tools/goctl/api/swagger/path.go b/tools/goctl/api/swagger/path.go index f76134c0d53d..19dfe4ad22aa 100644 --- a/tools/goctl/api/swagger/path.go +++ b/tools/goctl/api/swagger/path.go @@ -19,7 +19,11 @@ func spec2Paths(ctx Context, srv apiSpec.Service) *spec.Paths { for _, route := range group.Routes { ...
1
1
0
[{"id": "G0", "claim": "The test file should not use the `apiSpec` alias for the spec package import and should use `spec` directly.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zeromicro__go-zero__5256
zeromicro/go-zero
5,256
defect
e9c3607bc606c919dce0d7780fb34f2570d6a8b1
9d58313e01ebfb84a28d80a2b818c7c04247f9dd
fix: gateway trace headers 5248
## Description This PR fixes issue #5248 where distributed tracing fails when using the gateway service to proxy requests to RPC services. ## Problem The gateway's `ProcessHeaders` function only forwarded HTTP headers with the `Grpc-Metadata-` prefix to gRPC services. However, OpenTelemetry uses W3C Trace Cont...
diff --git a/gateway/internal/headerprocessor.go b/gateway/internal/headerprocessor.go index 11181f78a418a..bb50ee225e11d 100644 --- a/gateway/internal/headerprocessor.go +++ b/gateway/internal/headerprocessor.go @@ -11,16 +11,40 @@ const ( metadataPrefix = "gateway-" ) +// OpenTelemetry trace propagation he...
1
1
0
[{"id": "G0", "claim": "In TestProcessHeadersEmptyHeaders the assertion expects nil, but ProcessHeaders returns an initialized empty slice []string{} when there are no matching headers, so the assertion should be changed to assert.Empty(t, headers) (or assert.Equal(t, []string{}, headers)).", "category": "testing", "ve...
null
zeromicro__go-zero__5433
zeromicro/go-zero
5,433
defect
2cd96146fa715a5be7d11c4ab842cefec82b1703
0054e9345f118865c54adefc9f3e8f9b834b62b7
feat: add JSON5 configuration support
## Description This PR adds JSON5 support to go-zero's configuration system, enabling modern configuration file syntax with comments, trailing commas, and other developer-friendly features while maintaining full backward compatibility with existing JSON configs. ## Changes ### Core Implementation - **Added JSON5 de...
diff --git a/core/conf/config.go b/core/conf/config.go index 481b8ac12733b..74ead3213282f 100644 --- a/core/conf/config.go +++ b/core/conf/config.go @@ -21,10 +21,11 @@ const ( var ( fillDefaultUnmarshaler = mapping.NewUnmarshaler(jsonTagKey, mapping.WithDefault()) loaders = map[string]func([]byte, ...
13
9
2
[{"id": "G0", "claim": "github.com/titanous/json5 is imported from go-zero code, so it should be listed as a direct requirement in go.mod instead of carrying the `// indirect` marker, which go mod tidy would revert and which confuses dependency audits.", "category": "correctness", "verdict": "supported", "priority": "P...
null
zeromicro__go-zero__5442
zeromicro/go-zero
5,442
defect
04ed63736648ed5683db40f85098c71ab41410d2
36a5955c642dcac8aff27d425c0319ebce8fa39b
feat(redis): add Do/DoCtx for generic command execution #5417
### Related Issue - #5417 ### What’s Changed Add generic command execution methods to *redis.Redis: - Do(args ...any) (any, error) - DoCtx(ctx context.Context, args ...any) (any, error) ### Why This Change 1. Fully backward-compatible with existing typed APIs 2. Enables direct usage of module ...
diff --git a/core/stores/redis/redis.go b/core/stores/redis/redis.go index 1dec67c7c1300..a9ab5b4d88daf 100644 --- a/core/stores/redis/redis.go +++ b/core/stores/redis/redis.go @@ -65,6 +65,7 @@ type ( // RedisNode interface represents a redis node. RedisNode interface { red.Cmdable + Do(ctx context.Context, ar...
1
1
1
[{"id": "G0", "claim": "Document the new Do method on the RedisNode interface in the changelog / release notes as a minor breaking change for external RedisNode implementors.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
zeromicro__go-zero__5457
zeromicro/go-zero
5,457
defect
d1a014955c17cfa5c537f6dbbc4754e11316fd8e
2e0bf3fa4c4f371d7b931106c3b02c216c3727e4
fix(rest/httpc): reject request body for HEAD method in buildRequest
Previously, the function only validated that GET requests must not have a request body. According to RFC 7231 and RFC 9110, HEAD requests also do not define semantics for a request body.
diff --git a/rest/httpc/requests.go b/rest/httpc/requests.go index 3692eaae03fa7..5dd8fb12aa00b 100644 --- a/rest/httpc/requests.go +++ b/rest/httpc/requests.go @@ -84,8 +84,11 @@ func buildRequest(ctx context.Context, method, url string, data any) (*http.Requ var reader io.Reader jsonVars, hasJsonBody := val[jsonK...
1
1
1
[{"id": "G0", "claim": "The new behaviour rejecting JSON bodies for HEAD requests is not covered by tests; a unit test in rest/httpc/requests_test.go asserting that buildRequest returns ErrHeadWithBody when a json-tagged payload is provided with method HEAD should be added.", "category": "testing", "verdict": "supporte...
null
zeromicro__go-zero__5484
zeromicro/go-zero
5,484
defect
04ed63736648ed5683db40f85098c71ab41410d2
66d3741666f83d589a3a036f47ba71c774a9fa83
feat: goctl model Add a new method hasField
Add a new method to determine whether a certain field exists and change the template generation content accordingly for example: <img width="3004" height="1000" alt="image" src="https://github.com/user-attachments/assets/f0561d48-4071-4a58-b990-a2b2ff5e0403" />
diff --git a/tools/goctl/model/sql/gen/findone.go b/tools/goctl/model/sql/gen/findone.go index 7916507c147b..66236cba0b17 100644 --- a/tools/goctl/model/sql/gen/findone.go +++ b/tools/goctl/model/sql/gen/findone.go @@ -16,6 +16,7 @@ func genFindOne(table Table, withCache, postgreSql bool) (string, string, error) ou...
4
1
1
[{"id": "G0", "claim": "The AddFunc/Parse call order is inconsistent across findonebyfield.go (AddFunc after Parse in some places, before in others) and should be unified to call AddFunc before Parse.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
zeromq__cppzmq__268
zeromq/cppzmq
268
defect
1547b6ec2276c8e5667201fcff65808e773c5372
363108bccb21c1886fae80c62e847805db7b9289
Problem: Dependency on googletest framework
Currently cppzmq as relatively simple and header only library depends on rather complex unit test framework googletest. Current issues: - Googletest requires downloading and building it every time on travis as cache support is limited there - Googletest build is signifficant with comparison to cppzmq unittests to...
diff --git a/README.md b/README.md index 63ced441..32191eb0 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ There are other C++ bindings for ZeroMQ with different design goals. In particul Supported platforms =================== - - Only a subset of the platforms that are supported by libzmq itself are sup...
2
1
0
[{"id": "G0", "claim": "Equality assertions written as CHECK(0u == message.size()) in the tests are unacceptable unless the unit test framework outputs the actual values on failure; if CATCH does not support that, the test code must be changed accordingly or a different unit test framework must be used.", "category": "...
null
zeromq__cppzmq__312
zeromq/cppzmq
312
defect
5c95a07d72fae6b3ecd4a78fe2ba00d609d2068e
011a22224051dec9a8c15c2bd518c4f91cfcaa75
Problem: No type-safe alternatives when polling or needing a reference to a socket
Solution: Introduce a socket_ref that is a non-owning nullable reference to a socket This is a quite big PR with a few small additional types to improve type safety. The API is intentionally minimal, but can be extended at later points. Some design decision: 1. `socket_ref` is a trivially copyable type with the s...
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index de18fa54..402c0d2e 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -20,6 +20,7 @@ add_executable( message.cpp context.cpp socket.cpp + socket_ref.cpp poller.cpp active_poller.cpp multipart.cpp diff --git a/te...
2
1
1
[{"id": "G0", "claim": "The reviewer questions why operator>, operator<= and operator>= overloads for socket_ref are needed, implying they may be unnecessary API surface.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "socket_ref having send/recv variants...
null
zeromq__cppzmq__317
zeromq/cppzmq
317
defect
35ba5bea3b51f5fed810b685ade92c33e2401787
3d4be814e8a6cb44e39ddc7c272bdcc1ffad296f
Problem: send/recv functions lack type-safety
Solution: Add functions taking buffers and enum class flags 1. `enum class` flags `send_flags` and `recv_flags` instead of `int`s for safer `send` and `recv`. 2. Result structs `send_result`, `recv_result` and `recv_buffer_result` so that no information returned from libzmq is lost, removing ambiguity on EAGAIN (so...
diff --git a/README.md b/README.md index 9d3c2538..0489c650 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,21 @@ Supported platforms - Any platform supported by libzmq that provides a sufficiently recent gcc (4.8.1 or newer) or clang (3.3 or newer) - Visual Studio 2012+ x86/x64 +Examples +======== +```c+...
13
11
2
[{"id": "G0", "claim": "A min macro appears to be defined on Windows, causing failures in the PR's code, and a way around it is needed.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "It is unsettled whether the result structs should expose their mem...
null
zeromq__cppzmq__318
zeromq/cppzmq
318
defect
35ba5bea3b51f5fed810b685ade92c33e2401787
4957d3e042afccde058682f2d2d882cc003efd79
Problem: Type-safety of poller_t and active_poller_t can be improved
Solution: Add class enum flags and a new poller_event struct
diff --git a/tests/active_poller.cpp b/tests/active_poller.cpp index 866d7bb8..9adf8330 100644 --- a/tests/active_poller.cpp +++ b/tests/active_poller.cpp @@ -47,7 +47,7 @@ TEST_CASE("move construct non empty", "[active_poller]") zmq::socket_t socket{context, zmq::socket_type::router}; zmq::active_poller_t ...
2
1
0
[{"id": "G0", "claim": "The comment should read \"layout compatible with zmq_poller_event_t\" instead of the misspelled \"zmq__poller_event_t\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new typedef name handler_type should follow the _t-...
null
zeromq__cppzmq__391
zeromq/cppzmq
391
defect
2f1ab4c2a70461ab1f02a9c0619402390c5b9adc
6078f13ccb72895ca20091473bc8262ea6512cb8
Problem: lack conversion `message_t` and `multipart_t`
Solution: add encode/decode methods to `multipart_t` giving a codec compatible with the CZMQ equivalent. This is part of what was initially #388.
diff --git a/tests/multipart.cpp b/tests/multipart.cpp index a8e84be8..dae2b58e 100644 --- a/tests/multipart.cpp +++ b/tests/multipart.cpp @@ -178,4 +178,39 @@ TEST_CASE("multipart legacy test", "[multipart]") assert(received.empty()); assert(str == "One-hundred"); } + +TEST_CASE("multipart codec", "[multipa...
14
13
6
[{"id": "G0", "claim": "The codec should also be available as free functions similar to send_multipart, so a message can be encoded without creating a multipart_t object.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The multipart encoding protocol shou...
null
zeromq__cppzmq__393
zeromq/cppzmq
393
defect
5999e5adc7eeca10bb469246ee3909da037c9036
b3473770d45a58c177c3a1ed94236f0c7dae1ca3
Problem: Socket options lack type-safety
Solution: Implement a type for each socket option. Each option has an associated type, therefore they can't be simply defined as an enum class. That's a lot of options! I think this is one of the last places that are truly dangerous in the current API, where e.g. `s.setsockopt(ZMQ_ROUTING_ID, std::string("foo"))...
diff --git a/tests/socket.cpp b/tests/socket.cpp index 3bbb6675..804841e0 100644 --- a/tests/socket.cpp +++ b/tests/socket.cpp @@ -47,6 +47,40 @@ TEST_CASE("socket swap", "[socket]") swap(socket1, socket2); } +#ifdef ZMQ_CPP11 +TEST_CASE("socket options", "[socket]") +{ + zmq::context_t context; + zmq::so...
2
2
1
[{"id": "G0", "claim": "Adding type-safe socket option accessors requires a test for every socket option, but the PR only covers some of them, so the remaining accessors are untested.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new code does not ...
null
zeromq__cppzmq__606
zeromq/cppzmq
606
defect
c94c20743ed7d4aa37835a5c46567ab0790d4acc
dd67d56eae2fbb8284403bfd911dbb308003c68f
Add file descriptor support for poller
Add file descriptor support for zmq::active_poller and zmq::base_poller_t. Note: On Windows, only socket file descriptors are supported. This is a limitation of libzmq.
diff --git a/tests/active_poller.cpp b/tests/active_poller.cpp index 224b3717..86c35d0c 100644 --- a/tests/active_poller.cpp +++ b/tests/active_poller.cpp @@ -6,6 +6,11 @@ #include <array> #include <memory> +#include <cstring> + +#if !defined(_WIN32) + #include <unistd.h> +#endif // !_WIN32 TEST_CASE("create de...
1
1
1
[{"id": "G0", "claim": "Using std::variant (the #include <variant> and the variant-based Ref) in zmq_addon.hpp requires C++17, which breaks the library's C++11 support.", "category": "design", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
zeromq__cppzmq__612
zeromq/cppzmq
612
defect
945d60c36b6cbd4f47b13d999137963fcc78a743
f2e9762bc9d5a3b8bf518da8477ff1258cd3da35
Feature/expose monitor socket for active poller
Motivation: `zmq::monitor_t` in it's current form is inconvenient to use in combination with `zmq::active_poller_t` the issue is, that the socket isn't available to the user of `zmq::monitor_t` Proposal: split `zmq::monitor_t::check_event()` to move the actual reading and processing of the events into a new prote...
diff --git a/tests/monitor.cpp b/tests/monitor.cpp index 09d5381c..abd0cd69 100644 --- a/tests/monitor.cpp +++ b/tests/monitor.cpp @@ -8,7 +8,7 @@ class mock_monitor_t : public zmq::monitor_t { -public: + public: void on_event_connected(const zmq_event_t &, const char *) ZMQ_OVERRIDE { @@ -89,7 +89,7 @...
1
1
0
[{"id": "G0", "claim": "The polling loop in the active-poller monitor test could be made more robust by increasing the wait time and breaking out of the loop once monitor.clientAccepted > 0 instead of polling a fixed 10 times for 10 ms.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introd...
null
zeromq__cppzmq__680
zeromq/cppzmq
680
defect
041f755b7980af4a8022f1adf511cc6bd6139e2b
2abbd1a9443fd8858a93265df6ca7c792fb16137
Add `poller_t::wait`
Fix #679
diff --git a/tests/poller.cpp b/tests/poller.cpp index e32592d..17def08 100644 --- a/tests/poller.cpp +++ b/tests/poller.cpp @@ -178,6 +178,19 @@ TEST_CASE("poller remove registered non empty", "[poller]") const std::string hi_str = "Hi"; + +TEST_CASE("poller wait", "[poller]") +{ + common_server_client_setup s...
1
1
1
[{"id": "G0", "claim": "wait() probably should not throw on a timeout, similar to the rest of the API; it should instead return std::optional<event_type> with nullopt on EAGAIN.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
zeromq__jeromq__386
zeromq/jeromq
386
defect
c0654f219c6036b9e5f56dd28d4a34d2445b494d
e1fd39625c1aeedcd3224e33184e268e284fd1dd
Allow ZMQ.Context / ZContext to manage closing poll selectors
This PR picks up where #230 left off. The goal of this is to ensure that polling Selector resources are deallocated, in order to avoid "Too many open files" problems. - I started with #230 and rebased on top of current master. There were no conflicts to resolve. I did have to update the ZMQ static method names in @f...
diff --git a/src/main/java/org/zeromq/ZContext.java b/src/main/java/org/zeromq/ZContext.java index f2985258e..8ff8823f4 100644 --- a/src/main/java/org/zeromq/ZContext.java +++ b/src/main/java/org/zeromq/ZContext.java @@ -1,10 +1,14 @@ package org.zeromq; import java.io.Closeable; +import java.io.IOException; +impor...
4
3
0
[{"id": "G0", "claim": "The list of selectors could be handled inside the Ctx class instead of ZContext, reducing the amount of duplicated code so the three context layers (Ctx, Context, ZContext) benefit from the mechanism.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced...
null
zeromq__jeromq__389
zeromq/jeromq
389
defect
f23955edb7e7e3150839206fef06f7d548060112
5e37733d26997e18b07c934c1eeabaf6fb5d8cec
Ensure that the tests always use ports that aren't already in use
This makes the tests more deterministic by not using hard-coded ports that might already be in use by another process on your computer. I've noticed tests failing both on my machine and in Travis builds for this reason. Instead, we can use the ServerSocket constructor (wrapped up in a new util method, `findOpenPort`) t...
diff --git a/src/main/java/org/zeromq/Utils.java b/src/main/java/org/zeromq/Utils.java new file mode 100644 index 000000000..054c7624d --- /dev/null +++ b/src/main/java/org/zeromq/Utils.java @@ -0,0 +1,13 @@ +package org.zeromq; + +import java.io.IOException; + +public class Utils +{ + private Utils() {} + + publ...
1
1
0
[{"id": "G0", "claim": "Asks whether using 127.0.0.1 is preferable over the original broadcast address 255.255.255.255 for the ZBeacon test, questioning the PR's change of the beacon address on top of the port randomization.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zeromq__jeromq__552
zeromq/jeromq
552
defect
2d702453f3da6873b63083801d4e0b47f9a941f0
2b75b91098c7396535cbee9183fc74201ab2fb40
Problem: HEARTBEAT command breaks REQ connection
Solution: ignore command messages in the REQ session to avoid disrupting the state machine. Commands are handled by the engine before handing off to the session. Fixes #551
diff --git a/src/main/java/zmq/socket/reqrep/Req.java b/src/main/java/zmq/socket/reqrep/Req.java index bdbb3dcb7..6242fefed 100644 --- a/src/main/java/zmq/socket/reqrep/Req.java +++ b/src/main/java/zmq/socket/reqrep/Req.java @@ -256,6 +256,12 @@ public ReqSession(IOThread ioThread, boolean connect, SocketBase socket, f...
1
1
0
[{"id": "G0", "claim": "The literal 5 asserted as the return value of ZMQ.send in HeartbeatsTest is unclear; it should be replaced with a named constant so the assertion is self-documenting.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zeromq__jeromq__557
zeromq/jeromq
557
defect
f540e204f193294a264b61c997a29a7a2f8ac690
31ad1381e79cd4d453b6e3e4de7a4c06d9890fda
Problem: cannot use Java 8 lambda syntax to create IAttachedRunnable and IDetachedRunnable
Solution: As Java 7 is obsolete long time ago, I think its time to move on and upgrade java version to use Java 8 new features and syntax.
diff --git a/.java-version b/.java-version index d3bdbdf1f..625934097 100644 --- a/.java-version +++ b/.java-version @@ -1 +1 @@ -1.7 +1.8 diff --git a/.travis.yml b/.travis.yml index fe0c59a8a..240c30b57 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ install: mvn install --quiet -DskipTests=true -Dgpg.ski...
1
1
0
[{"id": "G0", "claim": "The new lambda body in testDetached should use a try-with-resources block to close the ZContext instead of a manual close.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zeromq__jeromq__614
zeromq/jeromq
614
defect
f63025a87b2b6ee6db20397d772a27df42c99f5b
1214cd3f4ac9fc108f30d827015c5e873797a455
A SelectorProvider
I added a way to define custom SelectorProvider (https://docs.oracle.com/javase/8/docs/api/java/nio/channels/spi/SelectorProvider.html). It should allow to wrap socket with custom code, like flow compression or TLS, using for example https://github.com/marianobarrios/tls-channel. Any feedback is welcome.
diff --git a/src/main/java/org/zeromq/ZMQ.java b/src/main/java/org/zeromq/ZMQ.java index ec7c44e65..586a5c3af 100644 --- a/src/main/java/org/zeromq/ZMQ.java +++ b/src/main/java/org/zeromq/ZMQ.java @@ -18,6 +18,7 @@ import zmq.io.coder.IDecoder; import zmq.io.coder.IEncoder; import zmq.io.mechanism.Mechanisms; +impor...
2
2
1
[{"id": "G0", "claim": "Setting ZMQ_SELECTOR_PROVIDERCHOOSER with an optval of an unsupported type falls through to an unconditional cast to SelectorProviderChooser and returns true, instead of returning false as suggested.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {...
null
zeromq__jeromq__643
zeromq/jeromq
643
defect
f1b1f412ac3001e7649630d5fcaaaca9646a69de
99a513ec8df0a29de8b418718c94fb17ca46808c
Adding a check of mechanisms settings.
Try to resolve issue #641, by putting checks when binding or connecting for all security mechanisms.
diff --git a/src/main/java/zmq/SocketBase.java b/src/main/java/zmq/SocketBase.java index 982ac9047..a4e967080 100644 --- a/src/main/java/zmq/SocketBase.java +++ b/src/main/java/zmq/SocketBase.java @@ -279,6 +279,8 @@ public final Object getSocketOptx(int option) return null; } + options.m...
3
3
1
[{"id": "G0", "claim": "The XOR between curvePublicKey and curveSecretKey being null looks like a typo; even if intentional, it is coupled with the trailing asServer check, which is less readable than straightforward logic.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"...
null
zeromq__jeromq__680
zeromq/jeromq
680
defect
7fd082ba451e3cbf1d46093aa98d6bd33c19b088
6bb02481ee77fe76b63d11419e38a7b03ed4b304
Improved IPv6 and name resolution handling
The actual way to handle IPv6 connectiont could be improved, a lot of code had no effect. All the IPv6/IPv4 choice should be done in name resolution. Error handling of failed name is improved too, a ZMQException is used. Trying to cover many more test case in TCP name resolution.
diff --git a/src/main/java/org/zeromq/ZMQ.java b/src/main/java/org/zeromq/ZMQ.java index ee2925bde..c6ff41d47 100644 --- a/src/main/java/org/zeromq/ZMQ.java +++ b/src/main/java/org/zeromq/ZMQ.java @@ -2416,11 +2416,16 @@ public boolean setIPv4Only(boolean v4only) } /** - * Set the IPv6 optio...
3
3
0
[{"id": "G0", "claim": "InetAddress.getAllByName(addrStr) is called a second time inside the streams where the already-fetched `addresses` variable could be used instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The four-line ipv6 default ...
null
zeromq__jeromq__733
zeromq/jeromq
733
defect
f5e3df34c68271f7531d04d3e1157bda307164a1
d2d7e97c54d8a17777f65592124e9d75683624de
fix #729
This test simulates issue #729 This test passes on tag: v0.5.0 but it fails now, As I understand it's related to the newly introduced class CompositePollItem, and pass a list of its instance instead of the list of ItemHolders to poll method cause this problem, @fredoboulo would you help me to solve this problem?
diff --git a/src/main/java/org/zeromq/ZPoller.java b/src/main/java/org/zeromq/ZPoller.java index aa330e56b..e2347151e 100644 --- a/src/main/java/org/zeromq/ZPoller.java +++ b/src/main/java/org/zeromq/ZPoller.java @@ -320,16 +320,13 @@ public boolean events(Socket socket, int events) boolean first = true; ...
2
2
0
[{"id": "G0", "claim": "ZPoller's events() aggregation sets has only inside the handler!=null branch, so with no handlers the polled result is wrong; the first/handler bookkeeping should be restructured as in the suggested diff.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "pre_existi...
null
zeromq__libzmq__2322
zeromq/libzmq
2,322
defect
511d701de35377ff64d2fde9b594afc8800589ca
1f2278785f95d27da0ed81f92f4380ad8cb978bf
Problem: zmq_z85_decode does not validate its input
Solution: added checks for invalid characters and overflows Fixes #2321
diff --git a/src/zmq_utils.cpp b/src/zmq_utils.cpp index 484e24f313..45f77ad757 100644 --- a/src/zmq_utils.cpp +++ b/src/zmq_utils.cpp @@ -103,19 +103,20 @@ static char encoder [85 + 1] = { // Maps base 85 to base 256 // We chop off lower 32 and higher 128 ranges +// 0xFF denotes invalid characters within this r...
5
4
2
[{"id": "G0", "claim": "The new test_utils_z85 entry in tests/CMakeLists.txt is indented with a tab instead of spaces.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The copyright header of the new tests/test_utils_z85.cpp should read 2017, not ...
null
zeromq__libzmq__2700
zeromq/libzmq
2,700
defect
80f4a87fb94ad96e05c099d130213a7d5079389e
5b1c0cd0ac706ad774a0c7f0967932ac962ad7f5
Problems: free of stack variable, TODO left to evaluate
Solutions: see commits Fixes #2701 #2699
diff --git a/Makefile.am b/Makefile.am index bd971d49f8..2a2a448e7c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -307,6 +307,11 @@ src_libzmq_la_CPPFLAGS += ${pgm_CFLAGS} src_libzmq_la_LIBADD += ${pgm_LIBS} endif +if BUILD_GSSAPI +src_libzmq_la_CPPFLAGS += ${gssapi_krb5_CFLAGS} +src_libzmq_la_LIBADD += ${gssapi_kr...
3
1
1
[{"id": "G0", "claim": "The author's guess in test_unauth_creds — asserting ZMQ_EVENT_HANDSHAKE_FAILED_AUTH after changing the monitor subscription — may not be the correct event/expectation, and confirmation is asked for.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id...
null
zeromq__libzmq__2752
zeromq/libzmq
2,752
defect
9071265c0254344aad58ac640657ead566e1b6d4
07eb1930349b7bb004e246468b9741e278d45bca
Problem: missing tests and inconsistent behaviour for ZAP corner cases
Solution: added tests & aligned behaviour Fixes #2711
diff --git a/src/curve_server.cpp b/src/curve_server.cpp index bbcec99b25..23173045d0 100644 --- a/src/curve_server.cpp +++ b/src/curve_server.cpp @@ -390,18 +390,29 @@ int zmq::curve_server_t::process_initiate (msg_t *msg_) rc = crypto_box_beforenm (cn_precom, cn_client, cn_secret); zmq_assert (rc == 0); -...
1
1
0
[{"id": "G0", "claim": "The new early break for zap_disconnect in zap_handler_generic leaves the received version string unfreed, leaking it.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zeromq__libzmq__2969
zeromq/libzmq
2,969
defect
d54633add13e359d5c0f3d565b8e664ca69a5b76
7b189a5a5617825eb96cdade0ca96ab7217f96ce
Problem: enormous memory increase due to zero copy decoding
The zero copy decoding strategy implemented for 4.2.0 can lead to a large increase of main memory usage in some cases (I have seen one program go up to 40G from 10G after upgrading from 4.1.4). This commit adds a new option to contexts, called ZMQ_ZERO_COPY_RECV, which allows one to switch to the old decoding strat...
diff --git a/doc/zmq_ctx_get.txt b/doc/zmq_ctx_get.txt index 128b3caeb8..744284758b 100644 --- a/doc/zmq_ctx_get.txt +++ b/doc/zmq_ctx_get.txt @@ -39,6 +39,12 @@ The 'ZMQ_MAX_MSGSZ' argument returns the maximum size of a message allowed for this context. Default value is INT_MAX. +ZMQ_ZERO_COPY_RCV: Get message de...
2
2
1
[{"id": "G0", "claim": "The body of test_ctx_zero_copy needs to be wrapped in an #ifdef ZMQ_ZERO_COPY_RECV / #else (void)ctx; #endif block because the ZMQ_ZERO_COPY_RECV API is DRAFT and referencing it in the unconditional test body breaks builds with draft APIs disabled.", "category": "correctness", "verdict": "suppor...
null
zeromq__libzmq__3100
zeromq/libzmq
3,100
defect
54aff77475cba71c26f857644daab7f142033509
a453987bc30f115c6a2da4227368c633eddf448b
Problem: zmq_poller_[add/modify] accept invalid events arguments silently
Solution: check and return an error on invalid arguments. Fixes #3088
diff --git a/include/zmq.h b/include/zmq.h index 7bb5fd87cc..c677ab1a83 100644 --- a/include/zmq.h +++ b/include/zmq.h @@ -463,14 +463,16 @@ ZMQ_EXPORT int zmq_socket_monitor (void *s, const char *addr, int events); #define ZMQ_POLLERR 4 #define ZMQ_POLLPRI 8 -typedef struct zmq_pollitem_t -{ - void *socket; #i...
2
2
2
[{"id": "G0", "claim": "The poller test seems to be failing at least once (in the default/libsodium CI build).", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Adding the new zmq_fd_t typedef to the public header and changing existing struct member ty...
null
zeromq__libzmq__3242
zeromq/libzmq
3,242
defect
9c0bff2c9c92fdcb3e138ef09e69e1190a696c1f
9264808d49195278b8a96548bc7dcf63f90c8a19
Hwm tests
Problem: correct HWM handling is checked only on INPROC transport Problem: the ZMQ proxy control socket is unusable when the proxy reaches its XPUB HWM and lossy flag is set. Solution: - extend existing HWM unit test to test also TCP and IPC transports - add new unit test that shows that ZMQ proxy control sock...
diff --git a/Makefile.am b/Makefile.am index 953a316884..18f8ab9c2c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -422,6 +422,7 @@ test_apps = \ tests/test_inproc_connect \ tests/test_issue_566 \ tests/test_proxy \ + tests/test_proxy_hwm \ tests/test_proxy_single_socket \ tests/test_proxy_terminate \ tests/...
8
8
8
[{"id": "G0", "claim": "The hard-coded TCP endpoints will cause the tests to fail when tests run in parallel, so the code should use \"tcp://127.0.0.1:*\" and the _ENDPOINT socket option instead.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The new te...
null
zeromq__libzmq__3383
zeromq/libzmq
3,383
defect
14da2ab629f897779299e0dd04f52d3107b3ac9f
ea1f4d656eb1128d632a3d9b21cd7cacea3b0f49
Problem: cannot monitor state of queues at runtime
Solution: add API and event Fixes #3403
diff --git a/doc/zmq_socket_monitor_pipes_stats.txt b/doc/zmq_socket_monitor_pipes_stats.txt new file mode 120000 index 0000000000..977242c97a --- /dev/null +++ b/doc/zmq_socket_monitor_pipes_stats.txt @@ -0,0 +1 @@ +zmq_socket_monitor_versioned.txt \ No newline at end of file diff --git a/doc/zmq_socket_monitor_versio...
4
3
2
[{"id": "G0", "claim": "The event function should be refactored so that a single ZMQ_EVENT_PIPES_STATS event can carry multiple values instead of being emitted twice.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new monitoring test code should be m...
null
zeromq__libzmq__3400
zeromq/libzmq
3,400
defect
a3a40a01c93cdaf2e6983ac06a98a0c072504a99
bd2fa0afdcb08e44360889bbd85c87e783ed3209
Add test for ZMQ_BINDTODEVICE
Fixes #3397
diff --git a/Makefile.am b/Makefile.am index 16a457c2f0..6f3878dfb9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1075,8 +1075,9 @@ EXTRA_DIST = \ src/libzmq.vers \ src/version.rc.in \ tests/CMakeLists.txt \ + tests/test_pair_tcp_cap_net_admin.cpp \ unittests/CMakeLists.txt \ - tools/curve_keygen.cpp + ...
1
1
0
[{"id": "G0", "claim": "Some compilers (reportedly Sun Studio) have been unhappy about sizeof without parentheses, so write sizeof (device) instead of sizeof device in the test.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zeromq__libzmq__3717
zeromq/libzmq
3,717
defect
11d49d4f4727efc3b8d1773a124ee829b5d222a6
5f79fb2e03719226a5c40265be006793b98b2893
Problem: ipc transport not supported under Windows
Solution: implement support Fixes #3691 Open points: - [x] Fix autotools builds (must define ZMQ_HAVE_IPC) - [x] Implement temporary directory creation under Windows
diff --git a/CMakeLists.txt b/CMakeLists.txt index 03b5b9646c..6c497e714c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -193,6 +193,54 @@ set(API_POLLER "" CACHE STRING "Choose polling system for zmq_poll(er)_*. valid set(POLLER "" CACHE STRING "Choose polling system for I/O threads. valid values are kqueue...
1
1
1
[{"id": "G0", "claim": "The unconditional AC_DEFINE(ZMQ_HAVE_IPC, ...) drops the previous exception for OpenVMS and VxWorks; IPC should stay undefined there, e.g. by adding new cases in the host_os switch where it is undefined.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"...
null
zeromq__libzmq__3746
zeromq/libzmq
3,746
defect
85df75584ef8fc726b263a77a0d7e5e77d27a75f
db6c6a5674af2ee60e730707ab97719dc1af1641
Change XSUB -> XPUB message processing.
Now if the first frame in a multipart message is not subscribe/unsubscribe, the rest of the parts are also considered to be not subscribe/unsubscribe.
diff --git a/doc/zmq_setsockopt.txt b/doc/zmq_setsockopt.txt index 78b4d86214..bbe074ac67 100644 --- a/doc/zmq_setsockopt.txt +++ b/doc/zmq_setsockopt.txt @@ -1154,6 +1154,21 @@ Default value:: NULL Applicable socket types:: ZMQ_XPUB +ZMQ_ONLY_FIRST_SUBSCRIBE: Process only fist subscribe/unsubscribe in a multipart...
6
5
3
[{"id": "G0", "claim": "Fix the code formatting in src/xsub.cpp to match the project style (opening brace on the same line as the if, space before parentheses in the call).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The commit message should...
null
zeromq__libzmq__3780
zeromq/libzmq
3,780
defect
b9b901e89d8db24442204970b1ddb62150c8d8bc
44d62f31a9653b11f91bc5475356eda2a56f1c63
problem: ws_engine don't support WS RFC ping-pong and close
Solution: implement both PONG response and producing pings
diff --git a/src/stream_engine_base.hpp b/src/stream_engine_base.hpp index 359bd04a09..a063ece115 100644 --- a/src/stream_engine_base.hpp +++ b/src/stream_engine_base.hpp @@ -87,7 +87,8 @@ class stream_engine_base_t : public io_object_t, public i_engine int push_msg_to_session (msg_t *msg_); int pull_and_en...
2
2
1
[{"id": "G0", "claim": "The build fails on some compiler/platform combinations because the new ws_encoder code writes ws_protocol_t::opcode_t::opcode_ping/opcode_pong ('zmq::ws_protocol_t::opcode_t' is not a class or namespace; use of enumeration in a nested name specifier is a C++11 extension and incompatible with C++...
null
zeromq__libzmq__3814
zeromq/libzmq
3,814
defect
e7f802d1ac7d61c89912ab261a19967b7d65b411
e65869959f717ada15c61bcf2b9efbb9c5e2be3f
Implement ZMTP 3.1 subscribe/cancel via commands
Thanks @somdoron for the suggestion to move the handling of the flag/command to the engine. Backward compatibility is retained. The drawback is that if a single sub/unsub is sent on a sub connected to many pubs, the work will be redone everytime. But it's a one byte or 7/11 bytes fixed size buffer, so it shouldn't make...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ba77858e4..35c82e2248 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -865,6 +865,7 @@ set(cxx-sources v1_encoder.cpp v2_decoder.cpp v2_encoder.cpp + v3_1_encoder.cpp xpub.cpp xsub.cpp zmq.cpp @@ -1007,6 +1008,7 @@ set(cxx-sources v1_encoder....
10
1
0
[{"id": "G0", "claim": "The new comment 'it is no longer stored in the data buffer' confusingly refers to a previous state in code; the comment should be rewritten to be understandable on its own (same wording used in the other encoders).", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope":...
null
zeromq__libzmq__3831
zeromq/libzmq
3,831
defect
c7e99cdc4c5c98c69fb0aa4663cfbf6e716ce9fb
bedda7c430d8b2f619a99e8bf458043591fd1a1a
add option to stop trying to reconnect on ECONNREFUSED
Problem: reconnecting to disconnected endpoint continues "forever" ZeroMQ's automatic reconnection works reasonably well for processes that bind to "well-known" ports, but it works less well for processes that bind to "wildcard" ports, which are satisfied by the OS choosing an available ephemeral port. Solution: ...
diff --git a/include/zmq.h b/include/zmq.h index 0759598a60..c0adfae929 100644 --- a/include/zmq.h +++ b/include/zmq.h @@ -381,6 +381,7 @@ ZMQ_EXPORT const char *zmq_msg_gets (const zmq_msg_t *msg_, #define ZMQ_GSSAPI_PRINCIPAL_NAMETYPE 90 #define ZMQ_GSSAPI_SERVICE_PRINCIPAL_NAMETYPE 91 #define ZMQ_BINDTODEVICE 92 ...
9
8
7
[{"id": "G0", "claim": "The new ZMQ_RECONNECT_STOP option constant needs to be placed in the DRAFT section of include/zmq.h and duplicated in src/zmq_draft.h.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "ZMQ_RECONNECT_STOP_HANDSHAKE_FAILED is not used ...
null
zeromq__libzmq__3860
zeromq/libzmq
3,860
defect
3c13e9222d0c5d0b16fed955a20fc7cf7d6de37a
4c0004b0b0bb2ec13c71d5f06a190181ae0c2f55
Problem: boilerplate when init msg from data copy
Solution: Add zmq_msg_init_buffer to construct a message by copying memory from buffer. See issue https://github.com/zeromq/libzmq/issues/3858
diff --git a/Makefile.am b/Makefile.am index 0b1511fff3..c3e0599717 100755 --- a/Makefile.am +++ b/Makefile.am @@ -451,6 +451,7 @@ test_apps = \ tests/test_invalid_rep \ tests/test_msg_flags \ tests/test_msg_ffn \ + tests/test_msg_init \ tests/test_connect_resolve \ tests/test_immediate \ tests/test_last_en...
3
3
2
[{"id": "G0", "claim": "The new API zmq_msg_init_buffer must be declared in the DRAFT section of include/zmq.h and added to src/zmq_draft.h.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Existing tests should not be renamed (test_msg_ffn was renamed to ...
null
zeromq__libzmq__3870
zeromq/libzmq
3,870
defect
718ad8ab96f6224ac792888ec360ec7fc070f06d
1c64bbb9b92d36c65fec3feb2103330c16d68908
problem: ZMQ_HEARTBEAT is not useful without sending an hello message
When using ZMQ_HEARTBEAT one still needs to implement application-level heartbeat in order to know when to send a hello message. For example, with the majordomo protocol, the worker needs to send a READY message when connecting to a broker. If the connection to the broker drops, and the heartbeat recognizes it the wor...
diff --git a/Makefile.am b/Makefile.am index 98b20691e4..7db8297f67 100755 --- a/Makefile.am +++ b/Makefile.am @@ -1041,7 +1041,8 @@ test_apps += tests/test_poller \ tests/test_router_notify \ tests/test_peer \ tests/test_reconnect_options \ - tests/test_msg_init + tests/test_msg_init \ + tests/test_hello_msg ...
2
2
1
[{"id": "G0", "claim": "memcpy to a NULL buffer with size 0 in send_hello_msg is undefined behavior and will break badly; use the new zmq::msg_t::init_buffer there instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new test file's copyright...
null
zeromq__libzmq__4118
zeromq/libzmq
4,118
defect
9936ce8bb91129bb1b4a10975236f1e1443cd921
1366b4110e24953c37781dabf8b51ceccca5988c
Problem: No direct support for setting socket priority
Solution: Add ZMQ_PRIORITY socket option, which sets the SO_PRIORITY socket option on the underlying socket. This socket option is not supported under Windows. Check option and set socket option on creation of underlying socket.
diff --git a/RELICENSE/nokia.md b/RELICENSE/nokia.md new file mode 100644 index 0000000000..49e2f455dc --- /dev/null +++ b/RELICENSE/nokia.md @@ -0,0 +1,13 @@ +# Permission to Relicense under MPLv2 + +This is a statement by Nokia +that grants permission to relicense its copyrights in the libzmq C++ +library (ZeroMQ) un...
2
2
2
[{"id": "G0", "claim": "The new ZMQ_PRIORITY option constant added in include/zmq.h must also be duplicated in src/zmq_drafts.hpp.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The configure check for SO_PRIORITY should be added to CMakeLists.txt a...
null
zeromq__libzmq__4255
zeromq/libzmq
4,255
defect
056f37f352a354f66734facbb97797c01c4694e6
5bb27c36b17b8d73cfcba3d8ceb0ae90e44210fb
add zmq_ppoll
zmq_ppoll mostly mimics zmq_poll behavior, except for the added feature of being able to specify a signal mask. Signals in this mask will be blocked during execution of zmq_ppoll. Switching of the process' active signal mask happens atomically with the actual poll call, so that no race conditions can occur. This behavi...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 788b20d838..7f2d5d86ef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -468,6 +468,11 @@ message(STATUS "Using polling method in zmq_poll(er)_* API: ${API_POLLER}") string(TOUPPER ${API_POLLER} UPPER_API_POLLER) set(ZMQ_POLL_BASED_ON_${UPPER_API_POLLER} 1) +che...
13
11
9
[{"id": "G0", "claim": "The zmq_ppoll declaration must be moved into the draft API section and wrapped in ifdefs, otherwise it will break Windows builds.", "category": "design", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The new test file's copyright header should say 2021 ...
null
zeromq__libzmq__4564
zeromq/libzmq
4,564
defect
7af09a0e3bca37d9da21a1bca2ab27e494b4e3d8
f20094c8e2cafeacfb3cc09af66c828a6a1bd4c2
Problem: long flag isn't set for subscriptions if topic has between 246 and 255 characters
Solution: fix V3.1 encoder to calculate long flag after evaluating the subscribe and cancel commands Fixes zeromq/libzmq#4367
diff --git a/src/v3_1_encoder.cpp b/src/v3_1_encoder.cpp index fcf8cc6366..f6b04c3549 100644 --- a/src/v3_1_encoder.cpp +++ b/src/v3_1_encoder.cpp @@ -29,8 +29,6 @@ void zmq::v3_1_encoder_t::message_ready () protocol_flags = 0; if (in_progress ()->flags () & msg_t::more) protocol_flags |= v2_protocol...
2
1
1
[{"id": "G0", "claim": "The new test file test_xpub_topic must also be registered in Makefile.am, not only in tests/CMakeLists.txt.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "There are CI failures on the pull request and the author should look a...
null
zeromq__pyzmq__1073
zeromq/pyzmq
1,073
defect
ee5d6096f0219737b2f81a6a04223c51135c6cb3
7fb7737f97da318e2ba6f7a450e00e0121dd848c
Remove `buffer` because we no longer support Python 2.6. Use `memoryview` instead.
`buffer` was removed in Python 3. `memoryview` is supported in Python 2.7+ * https://docs.python.org/2/library/stdtypes.html#memoryview-type
diff --git a/zmq/backend/cffi/message.py b/zmq/backend/cffi/message.py index a33a3da1f..1b2af3d4c 100644 --- a/zmq/backend/cffi/message.py +++ b/zmq/backend/cffi/message.py @@ -8,11 +8,6 @@ import zmq from zmq.utils.strtypes import unicode -try: - view = memoryview -except NameError: - view = buffer - _conte...
1
1
0
[{"id": "G0", "claim": "The `if memoryview.__name__ == 'buffer':` blocks in test_buffer_numpy and test_noncopying_recv can be removed because the condition is never true (dead Python 2.6 leftovers).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zeromq__pyzmq__1301
zeromq/pyzmq
1,301
defect
c189da9f9bf146790a1a765645282b04d8fce877
85a9e66f9085f3145e563070dbd2a7124e3770be
Display ipc path in case of ENOENT exception
Useful to see right in the traceback which ipc path caused the exception.
diff --git a/zmq/backend/cffi/socket.py b/zmq/backend/cffi/socket.py index 72b54335d..81ecf8a2e 100644 --- a/zmq/backend/cffi/socket.py +++ b/zmq/backend/cffi/socket.py @@ -136,6 +136,14 @@ def bind(self, address): 'characters (sizeof(sockaddr_un.sun_path)).' ...
1
1
0
[{"id": "G0", "claim": "The new ENOENT test should also assert that error.errno == ENOENT, to be sure the change is not dropping the errno.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zeromq__pyzmq__1365
zeromq/pyzmq
1,365
defect
a8ed18df4851d0d58ea5adc22a95f8f71a3e45ac
a322aa08e51da37417c6f922710b5bafaf658c69
zero-copy support in cffi backend
When trying out PyPy2 with spyder via the spyder-kernels package (which is extends the ipython protocol?), I discovered that CFFI-based `Frame` was not working correctly: it did not support the buffer protocol. PyPy extends the ability of pure python classes to support the buffer protocol. If you inherit from the `__py...
diff --git a/buildutils/build_cffi.py b/buildutils/build_cffi.py new file mode 100644 index 000000000..4c9212cee --- /dev/null +++ b/buildutils/build_cffi.py @@ -0,0 +1,128 @@ +import json +import os +import cffi +from zmq.utils.constant_names import all_names, no_prefix + +base_dir = os.path.join(os.path.dirname(os.pa...
6
5
4
[{"id": "G0", "claim": "Supporting the buffer interface is not enough for the cffi backend to support zero-copy sends (which is what the `done` tracker tests cover), so the two tracker tests should be put back under skips for now.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"},...
null
zeromq__pyzmq__1391
zeromq/pyzmq
1,391
defect
ccc44f1dc41e0d49d90229cafeb8d0a4202e642e
d8ebf969d5291fab90d4f8c0d4f886f02bd0793e
Small improvements for reliable process teardown
This is PR to revise #1390. Honestly speaking, because I found the test added through c6f414b fails with pyzmq==17.0.0 but succeeds with pyzmq==17.1.0, this PR presumably does nothing essential for #1167 (except a trick brought by d8ebf96) but just strengthens foundation around at the #1167.
diff --git a/zmq/backend/cffi/context.py b/zmq/backend/cffi/context.py index 5987ca2fb..97d1123a5 100644 --- a/zmq/backend/cffi/context.py +++ b/zmq/backend/cffi/context.py @@ -4,8 +4,6 @@ # Copyright (C) PyZMQ Developers # Distributed under the terms of the Modified BSD License. -import weakref - from ._cffi impo...
1
1
1
[{"id": "G0", "claim": "In some contexts sys.stdout can be None or not writable, so the stdout.write(\"\") call in Context.__del__ should either be checked for, have the exception caught, or be replaced by another approach such as merely taking a reference to stdout.", "category": "correctness", "verdict": "supported",...
null
zeromq__pyzmq__1702
zeromq/pyzmq
1,702
defect
50a4b9c8fd8e134ea9ffeec8bdd71133a787730b
d685e701c29668e9644d695f59db990f1ea1c995
support async sockets in zmq.utils.monitor.recv_monitor_message
the method recv_monitor_message was trying to parse a asyncio.Future here is a fix
diff --git a/examples/monitoring/zmq_monitor_class.py b/examples/monitoring/zmq_monitor_class.py new file mode 100644 index 000000000..40ed03a0d --- /dev/null +++ b/examples/monitoring/zmq_monitor_class.py @@ -0,0 +1,174 @@ +"""Module holding utility and convenience functions for zmq event monitoring. + +example + +imp...
1
1
1
[{"id": "G0", "claim": "Detecting an async socket via isinstance(socket.context, zmq.asyncio.Context) is the wrong way; instead call socket.recv_multipart and check whether the returned msg is awaitable, wrapping the future if so.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
zeromq__pyzmq__1760
zeromq/pyzmq
1,760
defect
5dfeaafcc1ddb91c14644293df8b8c7d3171be2b
47e89624517f22749bfd7ef8bca2066b7b9c0756
Support async callback in authenticator
This PR adds support for async callbacks in authenticator by making the base `handle_zap_message` method async, and the thread implementation run the asyncio authenticator in a background thread, as suggested in the issue. Closes #1729
diff --git a/zmq/auth/asyncio.py b/zmq/auth/asyncio.py index 288870337..52dd9bd4f 100644 --- a/zmq/auth/asyncio.py +++ b/zmq/auth/asyncio.py @@ -11,7 +11,7 @@ from typing import Any, Optional import zmq -from zmq.asyncio import Poller +from zmq.asyncio import Poller, Socket from .base import Authenticator @@ -...
3
3
2
[{"id": "G0", "claim": "The reworked auth thread no longer shares the caller's underlying libzmq context for the inproc pipe (it creates its own zmq.asyncio.Context), which minrk believes is what makes the main thread's pipe send and the background thread's poller hang; he suggests shadowing the existing context with z...
null
zeromq__pyzmq__177
zeromq/pyzmq
177
defect
baf9c172731cdddf6fcaa01993ec1d31b312871a
efa45d14db6c456134715cda7cbb6a4b4ad03ef1
ZeroMQ based handlers for tornado.web
This PR adds a new `zmq.web.zmqweb` module. This module adds the ability to run `tornado.web.RequestHandler`s in a scalable and distributed manner using zmq ROUTER/DEALER sockets. You can instantiate multiple instances of handlers in backend processes and requests to those handlers will be load balanced. See the exa...
diff --git a/examples/zmqweb/master.py b/examples/zmqweb/master.py new file mode 100644 index 000000000..b6c34ffa8 --- /dev/null +++ b/examples/zmqweb/master.py @@ -0,0 +1,17 @@ +"""The master web server.""" + +from zmq.eventloop import ioloop +ioloop.install() +from tornado import web + +from zmq.web.zmqweb import ZMQ...
9
8
3
[{"id": "G0", "claim": "A less redundant name than zmq.web.zmqweb.ZMQWebApplication would be preferable, as the current one is awfully repetitive.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The imports should be defined in zmq.web.__init__ so users c...
null
zeromq__pyzmq__1785
zeromq/pyzmq
1,785
defect
2ea462c8690738a07209e63a16bad8161f353a5f
9d92837984523aa9e4587806ebcf5bd83042405e
Improve shadowing, support async sockets/callbacks in ZMQStream
- can now create alternate socket APIs for existing sockets by passing one socket to another Socket constructor, with e.g. `zmq.asyncio.Socket(socket)`. Also works with `shadow`: `zmq.Socket.shadow(other_socket)` instead of needing `shadow(socket.underlying)`. This also preserves a reference to the shadowed object, avo...
diff --git a/zmq/backend/__init__.pyi b/zmq/backend/__init__.pyi index 87364189d..03d382a76 100644 --- a/zmq/backend/__init__.pyi +++ b/zmq/backend/__init__.pyi @@ -34,6 +34,14 @@ class Socket: # specific option types FD: int + + def __init__( + self, + context: Optional[Context] = None, + ...
1
1
1
[{"id": "G0", "claim": "ZMQStream should not silently cast non-base sockets: it should explicitly handle asyncio socket subclasses (e.g. override/cast them) and warn about other subclasses, or alternatively error out when the original socket is async but the callback is not.", "category": "design", "verdict": "supporte...
null
zeromq__pyzmq__781
zeromq/pyzmq
781
defect
79c33f448256cd68785de9b6f0284664474308fa
eb45b7ada0b26cde22d6fb88dcb4f982fe54a8c2
Asyncio ZMQSelector improvements and zap authentication
The existing implementation of ZMQSelector was randomly failing on me with KeyErrors for unkown/unregistered file objects. The other existing asyncio.selectors ignore this error so I decided to rewrite ZMQSelector to behave alike. This PR also adds a zap authenticator based on a asyncio task. Consider this an RFC, I'...
diff --git a/examples/security/asyncio-ironhouse.py b/examples/security/asyncio-ironhouse.py new file mode 100644 index 000000000..c2f07a29f --- /dev/null +++ b/examples/security/asyncio-ironhouse.py @@ -0,0 +1,106 @@ +#!/usr/bin/env python + +''' +Ironhouse extends Stonehouse with client public key authentication. + +...
2
2
2
[{"id": "G0", "claim": "ZMQSelector should not inherit from the private, undocumented selectors._BaseSelectorImpl, since private stdlib classes may not continue to exist even between patch releases; it should be doable with public APIs instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": ...
null
zeromq__pyzmq__803
zeromq/pyzmq
803
defect
91f29e63ff5075afc37fee6f21c8802483dc8b99
ca3ad1b677ac79bcd3f0f79361e26af65f01e84d
Introduce decorators
Hi, we already has the `zmq.Context` and `zmq.Socket` act as a context manager, but there is deep indentation when we use both. So we can use decorator for function to make the code beautiful. - `context` - `socket` For example. ``` python import zmq from zmq.decorators import context, socket @context() @socket(zmq....
diff --git a/.gitignore b/.gitignore index 3eaa7c549..ad32dc0b9 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ MANIFEST examples/security/public_keys examples/security/private_keys wheelhouse +.coverage diff --git a/docs/source/api/index.rst b/docs/source/api/index.rst index aef09f3af..eb316c37a 100644 -...
5
5
5
[{"id": "G0", "claim": "The default Context used by the socket decorator should be zmq.Context.instance() so that socket-decorated methods do not also need to be context-decorated.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The cleanup hook (and prob...
null
zerotier__zeronsd__130
zerotier/zeronsd
130
defect
61e163fed18cd8f7f0530feff5d0c581574ebcce
8d0adaf197b98c45f18048478cb01a3381e0a9ed
Update arg parsing to clap v3
Updates argument parsing to the new version of clap, with its flagship `derive` feature that minimizes boilerplate code and automates type parsing. Notable change: the verbosity flag seemed like a natural candidate for a `global`. Also, by default clap 3 colors the help output, if that is unwanted it can be easil...
diff --git a/Cargo.lock b/Cargo.lock index ffd5ac5..3de4edc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -11,15 +11,6 @@ dependencies = [ "memchr", ] -[[package]] -name = "ansi_term" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d...
3
3
1
[{"id": "G0", "claim": "Set the clap dependency to the caret version `^3` (instead of `3.0`) to better catch bugfixes and security updates.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Remove the stray commented-out `// }` line the pull request left in...
null