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
webrtc-rs__webrtc__375
webrtc-rs/webrtc
375
defect
6506f2c1d03255432a4c673f90cfa4d6f55f803b
a89932b6dd20212fbee3b78565334e371f662066
Make RTCRtpTransceiver.mid spec-compliant
The current implementation is: ``` pub struct RTCRtpTransceiver { mid: Mutex<String>, //atomic.Value sender: Mutex<Option<Arc<RTCRtpSender>>>, //atomic.Value receiver: Mutex<Option<Arc<RTCRtpReceiver>>>, //atomic.Value ... } ``` Essentially, the empty string ...
diff --git a/webrtc/CHANGELOG.md b/webrtc/CHANGELOG.md index e07620684..e2ec523d8 100644 --- a/webrtc/CHANGELOG.md +++ b/webrtc/CHANGELOG.md @@ -10,6 +10,8 @@ * Change `RTCPeerConnection::on_track` callback signature to `|track: Arc<TrackRemote>, receiver: Arc<RTCRtpReceiver>, transceiver: Arc<RTCRtpTransceiver>|` [...
5
4
0
[{"id": "G0", "claim": "The new CHANGELOG entry describing `RTCPeerConnection::mid` is incorrect, and since the field isn't `pub` it need not be called out at all — or, if kept, should be corrected and explain the thinking behind the change.", "category": "documentation", "verdict": "supported", "priority": "P2", "scop...
null
webrtc-rs__webrtc__377
webrtc-rs/webrtc
377
defect
6506f2c1d03255432a4c673f90cfa4d6f55f803b
41560dfe6857300a667cd7c5f4039696e357141d
Make RTCRtpTransceiver (Sender, Receiver) spec-compliant
This PR reworked Sender and Receiver on Transceiver to comply with specification.
diff --git a/examples/examples/broadcast/broadcast.rs b/examples/examples/broadcast/broadcast.rs index 37f0691e0..29b413a65 100644 --- a/examples/examples/broadcast/broadcast.rs +++ b/examples/examples/broadcast/broadcast.rs @@ -115,7 +115,7 @@ async fn main() -> Result<()> { // Allow us to receive 1 video track...
5
3
3
[{"id": "G0", "claim": "The public API (add_transceiver_from_kind) should not be used at this site, because the public API runs in a different context from creating a transceiver — this code applies an SDP answer.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1"...
null
webrtc-rs__webrtc__429
webrtc-rs/webrtc
429
defect
5859550cac046376bd4c7a252e79199c54f44bb8
3de429ef07d579b201ca20701fa9222775aa8f4f
Stop pc bug
This PR solved this issue https://github.com/webrtc-rs/webrtc/issues/422 . This fix repeats behavior in other places like: https://github.com/webrtc-rs/webrtc/blob/5859550cac046376bd4c7a252e79199c54f44bb8/webrtc/src/rtp_transceiver/mod.rs#L399 and https://github.com/webrtc-rs/webrtc/blob/5859550cac046376bd4c7a252e791...
diff --git a/webrtc/src/rtp_transceiver/mod.rs b/webrtc/src/rtp_transceiver/mod.rs index f09be4c35..28563eca1 100644 --- a/webrtc/src/rtp_transceiver/mod.rs +++ b/webrtc/src/rtp_transceiver/mod.rs @@ -424,11 +424,11 @@ impl RTCRtpTransceiver { self.stopped.store(true, Ordering::SeqCst); { - ...
1
1
1
[{"id": "G0", "claim": "self.sender and self.receiver in RTCRtpTransceiver should be changed from SyncMutex to tokio::sync::Mutex, because a sync Mutex must not be used across await points.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
webrtc-rs__webrtc__465
webrtc-rs/webrtc
465
defect
7a1655c4bda8f35650292da4607befb5b118e079
8e95ad01bac87428dfc9649d9882901d3e3c834b
Add as_any to Conn trait for accessing underlying Conn
This allows you to access the inner connection state of the DTLS connection. Having the connection identity is helpful in server code.
diff --git a/dtls/examples/listen/psk/listen_psk.rs b/dtls/examples/listen/psk/listen_psk.rs index fc536bb6ed..12e1555be5 100644 --- a/dtls/examples/listen/psk/listen_psk.rs +++ b/dtls/examples/listen/psk/listen_psk.rs @@ -77,7 +77,7 @@ async fn main() -> Result<(), Error> { let listener2 = Arc::clone(&listener); ...
1
1
0
[{"id": "G0", "claim": "Add an as_any method to the Conn trait (fn as_any(&self) -> &dyn std::any::Any;) so callers can downcast a dyn Conn to a concrete type such as DTLSConn and read its state.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}]
null
webrtc-rs__webrtc__471
webrtc-rs/webrtc
471
defect
de25e649bd207f213888650b327f7a33fbcfb1c5
965caf021e4e1ecea5141fdd4a38024dacc935a5
Implement AV1 Payloader
## What Addresses https://github.com/webrtc-rs/webrtc/issues/193. This PR implements the payloader for AV1, based on Chromium's implementation in C++: https://chromium.googlesource.com/external/webrtc/+/4e513346ec56c829b3a6010664998469fc237b35/modules/rtp_rtcp/source/rtp_packetizer_av1.cc, which supports packetiz...
diff --git a/rtp/src/codecs/av1/av1_test.rs b/rtp/src/codecs/av1/av1_test.rs new file mode 100644 index 000000000..8734cae31 --- /dev/null +++ b/rtp/src/codecs/av1/av1_test.rs @@ -0,0 +1,454 @@ +use crate::codecs::av1::obu::{ + OBU_HAS_EXTENSION_BIT, OBU_TYPE_FRAME, OBU_TYPE_FRAME_HEADER, OBU_TYPE_METADATA, + OBU...
2
1
1
[{"id": "G0", "claim": "The pull request should be fixed so that it passes clippy without errors.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The AV1 codec is registered with payload_type 41, which may instead need to be a dynamic payload type in...
null
webrtc-rs__webrtc__499
webrtc-rs/webrtc
499
defect
71157ba2153a891a8cfd819f3cf1441a7a0808d8
821cb5b46895b8dacb509d7bdaac65d14449157d
feature(media/ogg_writer): add packet segments to page
Implement the changes in https://github.com/pion/webrtc/pull/2531 which fixes https://github.com/pion/webrtc/issues/2472. > **Description** > PR adds packet segmentation capability to OggWriter. This makes it possible to accept payloads bigger than 255 bytes which are actually more common that I thought (e.g. Fir...
diff --git a/media/src/io/ogg_writer/mod.rs b/media/src/io/ogg_writer/mod.rs index 5da5c36a9..5de5e86d9 100644 --- a/media/src/io/ogg_writer/mod.rs +++ b/media/src/io/ogg_writer/mod.rs @@ -127,8 +127,10 @@ impl<W: Write + Seek> OggWriter<W> { ) -> Result<()> { self.last_payload_size = payload.len(); ...
2
1
1
[{"id": "G0", "claim": "If last_payload_size is an exact multiple of 255, the segment count is computed one too high and the trailing segment-table entry becomes 0, so the page's lacing values are wrong.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim":...
null
webrtc-rs__webrtc__609
webrtc-rs/webrtc
609
defect
23bbc1fb7eb9962e19e03cd4b8645e7aee8926c4
3f271262828b4fa6f97958c463f1883c56baf385
webrtc: Add support for unordered unreliable data channels
Fixes #371. Most of the change is in `RTCDataChannel::open` to match https://github.com/pion/webrtc/blob/4ef00e6e5f78647305cdd08568d16f49ae6190eb/datachannel.go#L130-L152
diff --git a/webrtc/src/data_channel/data_channel_parameters.rs b/webrtc/src/data_channel/data_channel_parameters.rs index 88f116ed3e..771221dc3a 100644 --- a/webrtc/src/data_channel/data_channel_parameters.rs +++ b/webrtc/src/data_channel/data_channel_parameters.rs @@ -6,7 +6,7 @@ pub struct DataChannelParameters { ...
1
1
1
[{"id": "G0", "claim": "The (Some(_), Some(_)) => unreachable!() arm is not acceptable because a DataChannel library user may pass both max_packet_lifetime and max_retransmits with values; keep the same logic as before, but with Option checks.", "category": "correctness", "verdict": "supported", "priority": "P1", "scop...
null
webrtc-rs__webrtc__635
webrtc-rs/webrtc
635
defect
95949fa6234f5f9c8b7767809e8610432a83bb91
3614c2fd224558ac83178e4f4d5c986eec772b86
Fix writer to skip packets with an empty payload
Fixes #634 ## References ### Similar implementation in webrtc-rs/webrtc https://github.com/webrtc-rs/webrtc/blob/a97d49e49e694b5d6c6775b153a8d30aa41a268e/media/src/io/h264_writer/mod.rs#L52-L54 ### Related PR in pion/webrtc - https://github.com/pion/webrtc/pull/1995 ## Test 1. Open https://jsfiddl...
diff --git a/media/src/io/ivf_writer/mod.rs b/media/src/io/ivf_writer/mod.rs index 3e2476e73..a14e90311 100644 --- a/media/src/io/ivf_writer/mod.rs +++ b/media/src/io/ivf_writer/mod.rs @@ -57,6 +57,10 @@ impl<W: Write + Seek> IVFWriter<W> { impl<W: Write + Seek> Writer for IVFWriter<W> { /// write_rtp adds a new ...
1
1
1
[{"id": "G0", "claim": "The existing writer tests fail because the pull request's skip-empty-payload change breaks their expectation that an empty packet is an error, and rainliu asks the author to fix the failed tests.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
webrtc-rs__webrtc__677
webrtc-rs/webrtc
677
defect
a7d2f8f4d68872e82357ffa83305a9a326223bab
cebcee83f613b7afcbea8c1b40cfc12a299c5536
Make SRTP AES_256_GCM actually work
Implements AES_256_CM_PRF as per https://datatracker.ietf.org/doc/html/rfc6188
diff --git a/srtp/src/cipher/cipher_aead_aes_gcm.rs b/srtp/src/cipher/cipher_aead_aes_gcm.rs index cc880694b..1bc7699eb 100644 --- a/srtp/src/cipher/cipher_aead_aes_gcm.rs +++ b/srtp/src/cipher/cipher_aead_aes_gcm.rs @@ -1,6 +1,10 @@ +use std::marker::PhantomData; + +use aead::consts::{U12, U16}; +use aes::cipher::{Blo...
2
2
0
[{"id": "G0", "claim": "Add support for the Aes128CmHmacSha1_32 SRTP profile in the DTLS transport as well: include it in default_srtp_protection_profiles and add its protection-profile mapping arm.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "F...
null
webrtc-rs__webrtc__741
webrtc-rs/webrtc
741
defect
a1f8f1919235d8452835852e018efd654f2f8366
0f971d9da9935c3959b17453ca2a28584f394d7b
Add support for multi codec negotiation
address https://github.com/webrtc-rs/webrtc/issues/737
diff --git a/webrtc/src/api/media_engine/media_engine_test.rs b/webrtc/src/api/media_engine/media_engine_test.rs index 22b3fc9ef..2ed2e6108 100644 --- a/webrtc/src/api/media_engine/media_engine_test.rs +++ b/webrtc/src/api/media_engine/media_engine_test.rs @@ -801,3 +801,77 @@ a=rtpmap:111 opus/48000/2 Ok(()) }...
3
1
1
[{"id": "G0", "claim": "The parentheses around the first condition are unnecessary and reduce readability, since the precedence of `!` and `||` makes them redundant.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The methods `set_multi_codec_neg...
null
webrtcHacks__adapter__1004
webrtcHacks/adapter
1,004
defect
af96122428e6e60f3ecb4a39d91d357c0984db80
32cb9782affa58aba3a08c1978cc9b680cd7df95
Firefox ignores addTransceiver init setEncodings opts
should fix https://github.com/webrtcHacks/adapter/issues/998
diff --git a/src/js/adapter_factory.js b/src/js/adapter_factory.js index 53c3f06d4..11fe26336 100644 --- a/src/js/adapter_factory.js +++ b/src/js/adapter_factory.js @@ -78,6 +78,8 @@ export function adapterFactory({window} = {}, options = { firefoxShim.shimSenderGetStats(window); firefoxShim.shimReceiverG...
10
9
6
[{"id": "G0", "claim": "Rename the misspelled callback parameter `encodgingParam` to `encodingParam`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use `.catch(() => {})` since an arrow function's return value is already implicitly converted to...
null
webrtcHacks__adapter__142
webrtcHacks/adapter
142
defect
8c3acaf4773a95382787c9a873e6460ddd8d3435
28ea29de5bb75af1a68f031e17de5ffe05c2208a
make versioncheck more robust
This fixes #132 and #122 @tednakamura can you check http://hancke.name/tmp/opr.html shows a version instead of a blank page in webview? (it would then fix #135) Not sure what the unsupported version should be... set it to 0.
diff --git a/adapter.js b/adapter.js index 0c197afb5..12e06d95c 100644 --- a/adapter.js +++ b/adapter.js @@ -227,14 +227,18 @@ if (typeof window === 'undefined' || !window.navigator) { }); }; } -} else if (navigator.webkitGetUserMedia && !!window.chrome) { +} else if (navigator.webkitGetUserMedia && wind...
6
2
1
[{"id": "G0", "claim": "Continue checking window.chrome in the Chrome-detection condition, since at least one other WebKit-based browser with WebRTC (Bowser) would otherwise be missed.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Use a separate loca...
null
webrtcHacks__adapter__179
webrtcHacks/adapter
179
defect
a7fcf7d3f27d78e31a040c14bec336d5f025fea5
6f8d46d72ceacbfc503f592323036b8994cde91b
set prototype and fix ontrack
had to do that to make #175 work. This should make the 'trackEvent.track is an object' messages appear in travis
diff --git a/adapter.js b/adapter.js index a9b8d3ae4..672f4cc19 100644 --- a/adapter.js +++ b/adapter.js @@ -132,6 +132,7 @@ if (typeof window === 'undefined' || !window.navigator) { } return new mozRTCPeerConnection(pcConfig, pcConstraints); // jscs:ignore requireCapitalizedConstructors }; + wind...
2
1
1
[{"id": "G0", "claim": "The ontrack polyfill condition should probably also check that window.RTCPeerConnection exists, since dereferencing it may throw when it is undefined.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ontrack polyfill curren...
null
webrtcHacks__adapter__378
webrtcHacks/adapter
378
defect
d09f7bb7f370d9edc273a892db60e5a9e2d6c46f
3f4cc4c83231c8546ad6844be4117e1fbc0f903c
add support for addIceCandidate(undefined)
this adds support for addIceCandidate(undefined) in addition to addIceCandidate(null) This would allow writing single-page samples and tests that just feed the event.candidate from onicecandidate into addIceCandidate which I think is the direction we want to go. While the spec currently seems to be going into a d...
diff --git a/src/js/chrome/chrome_shim.js b/src/js/chrome/chrome_shim.js index c501fb47c..2fa102391 100644 --- a/src/js/chrome/chrome_shim.js +++ b/src/js/chrome/chrome_shim.js @@ -239,11 +239,11 @@ var chromeShim = { }; }); - // support for addIceCandidate(null) + // support for addIceCandi...
2
2
0
[{"id": "G0", "claim": "Add comments after .then() and .catch() in the addIceCandidate selenium test explaining that no argument is returned on success and an error on failure, or the understanding will slip away.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G...
null
webrtcHacks__adapter__45
webrtcHacks/adapter
45
defect
0fbea339b3fa75fc41b488e32d09d69269ec5f3e
cffdbdcda46386719ecff9e70440154229897c02
shim addEventlistener with a no-op
@jan-ivar -- that should take care of code that adds an eventlistener for 'devicechange' (in particular I found this in https://github.com/MicrosoftEdge/Demos/blob/master/photocapture/scripts/demo.js#L175)
diff --git a/adapter.js b/adapter.js index 242a18e88..d58e1e779 100644 --- a/adapter.js +++ b/adapter.js @@ -129,7 +129,10 @@ if (navigator.mozGetUserMedia) { // Shim for mediaDevices on older versions. if (!navigator.mediaDevices) { - navigator.mediaDevices = {getUserMedia: requestUserMedia}; + navigator...
1
1
1
[{"id": "G0", "claim": "The new no-op addEventListener shim should get a test, and the shim must be added to Chrome too so the behaviour does not diverge between browsers.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
webrtcHacks__adapter__457
webrtcHacks/adapter
457
defect
0ea2b20578ad749cfd11113325c659dc8d135de7
7e0b769ebfb06f1119d100b290aa7c0124386025
Filter multiple valid turn server entries in Edge
**Description** Edge throws an error when using multiple valid turn servers (https://github.com/webrtc/adapter/issues/451). This is an attempt to fix it by filtering out additional turn servers. It filters servers in `.url`, multiple servers in `.urls` and in separate ice server entries. **Purpose** Filter out ...
diff --git a/src/js/edge/edge_shim.js b/src/js/edge/edge_shim.js index f0794753b..41b0bc2ef 100644 --- a/src/js/edge/edge_shim.js +++ b/src/js/edge/edge_shim.js @@ -32,6 +32,43 @@ function sortTracks(tracks) { return tracks; } +// Edge does not like +// 1) stun: +// 2) turn: that does not have all of turn:host:po...
3
1
0
[{"id": "G0", "claim": "The two duplicate-filter tests should be regrouped as a describe('removes all but the first server of a type') block with nested it() cases ('in separate entries', 'in urls entries') for better grouping.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introdu...
null
webrtcHacks__adapter__494
webrtcHacks/adapter
494
defect
f439747d997f308e0c4ee3e59ef5b0f8c5bd318f
65d536741cc6f85b0dede2ebd9acc65e6cba55f3
edge: add support for lack of end-of-candidates
This adds a timeout based end-of-candidates indication. Edges native 1.0 has a similar hack but doesn't complain in the console afaics. @KaptenJansson oh hey, this would make apprtc work... ;-)
diff --git a/src/js/edge/rtcpeerconnection_shim.js b/src/js/edge/rtcpeerconnection_shim.js index 0dfb9f972..b119ff17c 100644 --- a/src/js/edge/rtcpeerconnection_shim.js +++ b/src/js/edge/rtcpeerconnection_shim.js @@ -879,6 +879,24 @@ module.exports = function(edgeVersion) { }); } }); + + // chec...
1
1
1
[{"id": "G0", "claim": "The timeout guard added in setRemoteDescription reads `if (!self && self.transceivers)`, which is inverted/wrong and should be something like `!self.transceivers` (the author applied `!(self && self.transceivers)`).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": ...
null
webrtcHacks__adapter__496
webrtcHacks/adapter
496
defect
f439747d997f308e0c4ee3e59ef5b0f8c5bd318f
b180d890374c6e1cff8d887e5b5c7867e049cad9
edge: throw some SLD/SRD state errors
as described in https://tools.ietf.org/html/draft-ietf-rtcweb-jsep-18#section-5.5 and https://tools.ietf.org/html/draft-ietf-rtcweb-jsep-18#section-5.6 (merging at next minor release is sufficient)
diff --git a/src/js/edge/rtcpeerconnection_shim.js b/src/js/edge/rtcpeerconnection_shim.js index 0dfb9f972..089fd1da7 100644 --- a/src/js/edge/rtcpeerconnection_shim.js +++ b/src/js/edge/rtcpeerconnection_shim.js @@ -478,6 +478,22 @@ module.exports = function(edgeVersion) { RTCPeerConnection.prototype.setLocalDesc...
2
2
1
[{"id": "G0", "claim": "The inline signaling-state checks in setLocalDescription/setRemoteDescription should be moved into a function with a descriptive name that returns a bool, for readability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In...
null
webrtcHacks__adapter__521
webrtcHacks/adapter
521
defect
e9de86e005b818691fab2dd7273073bee25516e2
d107ff0e22e7864f2a3a01861e7afeea43d4d5ec
Adding shims for addStream and legacy callback APIs
**Description** Adding legacy APIs (addStream) and callback support for setRemoteDescription, setLocalDescription, addIceCandidate, createOffer and createAnswer for Safari. **Purpose** Support some legacy websites.
diff --git a/src/js/adapter_core.js b/src/js/adapter_core.js index b999fccd7..d93d66f7b 100644 --- a/src/js/adapter_core.js +++ b/src/js/adapter_core.js @@ -89,6 +89,8 @@ // Export to the adapter global object visible in the browser. module.exports.browserShim = safariShim; + safariShim.shimCallbac...
3
1
1
[{"id": "G0", "claim": "In the callback case the createOffer shim (and the analogous shims below) should return the promise returned by the native call instead of Promise.resolve().", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The createOffer/create...
null
webrtcHacks__adapter__527
webrtcHacks/adapter
527
defect
0891b3ca4eccb5efd7490d254ad0466ba59c0cf1
2476953c8b0f9e77923db673fb53f82d2033106c
all: add augmenting RTCIceCandidate constructor
adds an RTCIceCandidate constructor which parses the fields as described in https://w3c.github.io/webrtc-pc/#rtcicecandidate-interface
diff --git a/package.json b/package.json index 24bce7d89..68afdfd18 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "test": "grunt && mocha test/unit && node test/run-tests.js" }, "dependencies": { - "sdp": "^1.5.0" + "sdp": "^1.5.1" }, "engines": { "npm": ">=3.10.0", diff --g...
9
5
3
[{"id": "G0", "claim": "The augmented RTCIceCandidate is a lot less useful unless the shim also hooks up onicecandidate and addEventListener('icecandidate') so apps receive augmented candidates from events.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "...
null
webrtcHacks__adapter__528
webrtcHacks/adapter
528
defect
0891b3ca4eccb5efd7490d254ad0466ba59c0cf1
ec2197528fbd5f711bc21ba6792ca7b2647a6da6
edge: implement addTrack
implements addTrack for Edge. Also makes addStream use addTrack. Pretty big refactor but I think this is better. Since Edge doesn't allow creating an RTPSender with a null transport the transports need to be created early.
diff --git a/src/js/edge/rtcpeerconnection_shim.js b/src/js/edge/rtcpeerconnection_shim.js index 6a18a669e..cf2a47cca 100644 --- a/src/js/edge/rtcpeerconnection_shim.js +++ b/src/js/edge/rtcpeerconnection_shim.js @@ -285,9 +285,64 @@ module.exports = function(edgeVersion) { return this._config; }; + // inter...
3
3
0
[{"id": "G0", "claim": "The test description for the audio-track-and-two-video-tracks case should be clarified to say the generated SDP contains an audio and two video m-lines, not 'an audio and video m-line'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ...
null
webrtcHacks__adapter__602
webrtcHacks/adapter
602
defect
8d76acc68f8c9afc912f5773cbd2c7d774b5fdfd
c1d5c8b6da2c20567a027bf3709d87d562021229
test: port DTMF test to karma
ports the DTMF test to karma and removes the legacy DTMF test (which was also a bit getSenders-ish) I pledge to re-add a better test for the removed one ;-)
diff --git a/Gruntfile.js b/Gruntfile.js index 5b3c4e542..0df97df23 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -57,7 +57,7 @@ module.exports = function(grunt) { options: { configFile: '.eslintrc' }, - target: ['src/**/*.js', 'test/*.js', 'test/unit/*.js'] + target: ['src/**/*.js', ...
1
1
0
[{"id": "G0", "claim": "KaptenJansson questions the strategy of disabling the Firefox video-sender DTMF test entirely (commenting it out) rather than disabling it per browser.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
webrtcHacks__adapter__610
webrtcHacks/adapter
610
defect
fc9ca3939e270a9cdfa6d2faabceeb354977e85e
740d5d0f14192c6c0ed09a8596ea3936cc61c52c
test: add tests for addTrack
adds tests for addTrack which were promised during the review of #559 @henbos PTAL, do you want more tests? @jan-ivar looks like you throw InvalidParameterError instead. Filed a [bug](https://bugzilla.mozilla.org/show_bug.cgi?id=1377884) for you. We can soon mark that test as expected failure
diff --git a/test/e2e/addTrack.js b/test/e2e/addTrack.js new file mode 100644 index 000000000..292e591b3 --- /dev/null +++ b/test/e2e/addTrack.js @@ -0,0 +1,110 @@ +/* + * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. + * + * Use of this source code is governed by a BSD-style license + * that c...
5
3
2
[{"id": "G0", "claim": "henbos asks whether Firefox behaves as the new test asserts and warns that if addTrack() affects getLocalStreams() he might have to change Chrome's getLocalStreams() before shipping addTrack().", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": ...
null
webrtcHacks__adapter__611
webrtcHacks/adapter
611
defect
fc9ca3939e270a9cdfa6d2faabceeb354977e85e
b5756fe8ba193d71915c48a43e8c202dd6edce1a
chrome: shim removeTrack
shims pc.removeTrack. @henbos if you're bored... ;-)
diff --git a/src/js/adapter_factory.js b/src/js/adapter_factory.js index 253dde9ba..213555ade 100644 --- a/src/js/adapter_factory.js +++ b/src/js/adapter_factory.js @@ -63,7 +63,7 @@ module.exports = function(dependencies, opts) { chromeShim.shimSourceObject(window); chromeShim.shimPeerConnection(window);...
7
5
3
[{"id": "G0", "claim": "removeTrack is not shimmed when getSenders is not available: shimAddTrackRemoveTrack returns early when addTrack already exists, and the getSenders-unavailable path shims addTrack but not removeTrack.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, ...
null
webrtcHacks__adapter__637
webrtcHacks/adapter
637
defect
ef1859f4db684ab527c5821afbc037674efe2fad
466e3f651d306dbb59734421887eba99920f2396
chrome: munge sdp to keep stream ids
munges the SDP in createOffer, createAnswer and setLocalDescription as well as the pc.localDescription accessor in order to retain the stream ids that are modifed by the addTrack shim. Fixes #634 @henbos can you take a look? I tried to mangle the getStats result too but that didn't work :-/
diff --git a/src/js/chrome/chrome_shim.js b/src/js/chrome/chrome_shim.js index 10cede67b..dc58c64c3 100644 --- a/src/js/chrome/chrome_shim.js +++ b/src/js/chrome/chrome_shim.js @@ -335,6 +335,82 @@ var chromeShim = { }); }; + // replace the internal stream id with the external one and + // vice vers...
5
5
3
[{"id": "G0", "claim": "The shim diverts calls of the legacy callback API to the promise API, which suppresses native deprecation warnings and may skew telemetry of how many still call the legacy API; use an explicit isLegacyCall check that calls the native method with the callbacks instead.", "category": "design", "ve...
null
webrtcHacks__adapter__74
webrtcHacks/adapter
74
defect
c23f0f5f79e3e5d4231f6c788eec2b532134abc4
978f969d7d905ed678c2a4abb86f742a2d48fdad
wrap console.log; dont log when used as a module
removes console.log when used in a module, fixes #68. Also removes some inconsistent logging and debug in the resolution stuff. Ideally we would provide modules with a way to set a logger but... maybe later.
diff --git a/adapter.js b/adapter.js index ed8f0840c..6edc75914 100644 --- a/adapter.js +++ b/adapter.js @@ -23,6 +23,15 @@ var webrtcDetectedBrowser = null; var webrtcDetectedVersion = null; var webrtcMinimumVersion = null; +function webrtcLogger() { + // suppress console.log output when being included as a modul...
7
7
3
[{"id": "G0", "claim": "Remove the parentheses around the 2nd and 3rd typeof operands in the module-detection condition, per the Google JavaScript style guide.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add a full stop at the end of the 'sup...
null
webrtcHacks__adapter__754
webrtcHacks/adapter
754
defect
427510dfa4fd1162c52b5b16f74f896cc1c8c46b
8f44dc1f555b8fa7eb02477fb4a0eb113cc358ea
firefox: update test expectations to transceiver model
partial update of the firefox test expectations to better reflect the FF59+ transceiver model (still some test failures which might require test updates)
diff --git a/test/e2e/expectations/MicrosoftEdge b/test/e2e/expectations/MicrosoftEdge index a9cdcfaee..0354551da 100644 --- a/test/e2e/expectations/MicrosoftEdge +++ b/test/e2e/expectations/MicrosoftEdge @@ -56,13 +56,13 @@ ERR removeTrack allows removeTrack twice timeout ERR removeTrack throws an exception if the ar...
3
2
0
[{"id": "G0", "claim": "Some e2e tests make an assumption about the number of senders after removeTrack etc. and fail under Firefox's transceiver model, and it is unclear what the best way to deal with that is.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "cl...
null
webrtcHacks__adapter__839
webrtcHacks/adapter
839
defect
9e37afe5a4ff54ceba10d869067aef9b8f5b1086
10902322355d0b7896c6319b76b5146f327e21ff
chrome: fix ONN in SRD
fixes https://bugs.chromium.org/p/chromium/issues/detail?id=740501#c22 to eat ONN when fired while the signalingState is not stable
diff --git a/src/js/adapter_factory.js b/src/js/adapter_factory.js index 7490ae653..781c4b6b5 100644 --- a/src/js/adapter_factory.js +++ b/src/js/adapter_factory.js @@ -74,6 +74,7 @@ module.exports = function(dependencies, opts) { chromeShim.shimAddTrackRemoveTrack(window); chromeShim.shimGetSendersWithDt...
4
3
1
[{"id": "G0", "claim": "Remove the console.log(pc.signalingState) debug statement the PR added to fixNegotiationNeeded in chrome_shim.js.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new e2e test's promise chain is missing a catch, and the...
null
webrtcHacks__adapter__897
webrtcHacks/adapter
897
defect
af45a2494d43d6704c558ef90ab6280dda13934e
4a2c403ed20dd1b1c4a3927123eefd4448a777b2
shim navigator.mediaDevices.getDisplayMedia
fixes #896 -- quite notably this is not backward compatible but this is on the ES6 master branch. The backport to 6.x will need to consider navigator.getDisplayMedia.
diff --git a/src/js/adapter_factory.js b/src/js/adapter_factory.js index 8d729f9ca..c3eeb57ef 100644 --- a/src/js/adapter_factory.js +++ b/src/js/adapter_factory.js @@ -90,6 +90,7 @@ export function adapterFactory({window} = {}, options = { adapter.browserShim = edgeShim; edgeShim.shimGetUserMedia(windo...
1
1
1
[{"id": "G0", "claim": "In the chrome, edge and firefox shims the new code assigns to window.navigator.mediaDevices.getDisplayMedia without first checking that navigator.mediaDevices exists, so shimming will throw on browsers or contexts (e.g. HTTP, since mediaDevices was just made [SecureContext]) that lack it; the re...
null
webrtcHacks__adapter__910
webrtcHacks/adapter
910
defect
c507003471c1957027000d7a65bf624d974db10b
9c00f3ffb2ea8a936b5e8c82e324e86d4440ea45
chrome/firefox: shim connectionState
**Description** shims connectionState as iceConnectionState. In Chrome this is what the iceConnectionState exposed (wrongly). In Firefox it is slightly incorrect but DTLS failures are going to be rare. Fixes #909 **Purpose** This allows updating code that uses iceconnectionstatechange as signal for "you are c...
diff --git a/src/js/adapter_factory.js b/src/js/adapter_factory.js index c3eeb57ef..395d4aead 100644 --- a/src/js/adapter_factory.js +++ b/src/js/adapter_factory.js @@ -55,6 +55,7 @@ export function adapterFactory({window} = {}, options = { chromeShim.fixNegotiationNeeded(window); commonShim.shimRTCIceC...
5
3
2
[{"id": "G0", "claim": "The connectionState shim should also map the 'checking' iceConnectionState (to 'connecting') instead of passing it through as 'checking'.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The onconnectionstatechange getter shoul...
null
websocket-client__websocket-client__854
websocket-client/websocket-client
854
defect
cc09510e594c5d7ebe311098982429d6b19d723b
baa3365dd93ac54f81d79e93f7184d41224bf407
fix for stack growth on reconnect
previously, using the default (synchronous) dispatcher, reconnecting would cause the stack to grow. here's the fix.
diff --git a/websocket/_app.py b/websocket/_app.py index afe07624..6e898dc6 100644 --- a/websocket/_app.py +++ b/websocket/_app.py @@ -39,6 +39,19 @@ def __init__(self, app, ping_timeout): self.app = app self.ping_timeout = ping_timeout + def timeout(self, seconds, callback): + time.sleep(...
6
3
2
[{"id": "G0", "claim": "The reviewer asks whether WrappedDispatcher.timeout() should call self.timeout(seconds, callback) instead of self.dispatcher.timeout(seconds, callback), as read() now does.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The...
null
websocket-client__websocket-client__875
websocket-client/websocket-client
875
defect
664b0898b07cd054f8d0fb08c73a24dbb3095d5b
a352db144bce649af42a5726092123327bde93c1
create_dispatcher() w/ is_ssl determined by url instead of sslopt
see: https://github.com/websocket-client/websocket-client/issues/857
diff --git a/websocket/_app.py b/websocket/_app.py index 20bcbfe8..e0a88e2f 100644 --- a/websocket/_app.py +++ b/websocket/_app.py @@ -5,6 +5,7 @@ import time import traceback from ._abnf import ABNF +from ._url import parse_url from ._core import WebSocket, getdefaulttimeout from ._exceptions import * from . imp...
2
2
1
[{"id": "G0", "claim": "Create the dispatcher with is_ssl from parse_url() instead of checking whether the URL string starts with \"wss://\", since parse_url returns a bool is_secure used elsewhere for SSL decisions and handles more edge cases in the URL input.", "category": "correctness", "verdict": "supported", "prio...
null
websockets__ws__1082
websockets/ws
1,082
defect
860cc23690b0c20ada50f7d71d59a544fdc6d8dd
652171d61850afa247628926afeeeb74e0eefce4
#1081: Add headers event to WebSocket.
Adds headers event. The only thing that's slightly weird about this is that WebSocketServer emits an array of headers, and this emits an object of headers. We could emit the [rawHeaders](https://nodejs.org/api/http.html#http_message_rawheaders) here, and then they'd match... But most people probably want the header...
diff --git a/doc/ws.md b/doc/ws.md index af3b8556d..cdb1f03e5 100644 --- a/doc/ws.md +++ b/doc/ws.md @@ -226,6 +226,15 @@ human-readable string explaining why the connection has been closed. Emitted when an error occurs. Errors from the underlying `net.Socket` are forwarded here. +### Event: 'headers' + +- `headers...
3
2
0
[{"id": "G0", "claim": "The new test should use assert.strictEqual() instead of assert.equal().", "category": "testing", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test should call wss.close(done) so done runs after the server closes, instead of calling wss.close() and ...
null
websockets__ws__1294
websockets/ws
1,294
defect
66b0d553d146cfc9fa17c93f954d2540667b4731
8af5c88472c2816f7d260280101436602bc9be92
Provide http server port directly from _server
Provide http server port directly from _server Do I need to write test or anything else to complete this PR ? Or better way to get port if I bind with 0 Thanks
diff --git a/lib/websocket-server.js b/lib/websocket-server.js index 7c1438e76..b3b88b577 100644 --- a/lib/websocket-server.js +++ b/lib/websocket-server.js @@ -275,6 +275,14 @@ class WebSocketServer extends EventEmitter { cb(ws); } + + /** + * Upgrade the connection to WebSocket. + * @public + */ + p...
2
2
2
[{"id": "G0", "claim": "The method should be named `address` and return `this._server.address()` so that calling it after the HTTP server is closed is handled, and it should throw when the server was initialized in `noServer` mode instead of returning `null`.", "category": "design", "verdict": "supported", "priority": ...
null
websockets__ws__1306
websockets/ws
1,306
defect
36f249df9ca23720f4cd4bbe57ac600b5cf1b0b4
6726802c4aeee93ddb4bd2d1a3e24ec14eb4b0c9
[minor] add zlibOptions to perMessageDeflate init
It can be useful to adjust other options, and rather than support and document every single one, it is simpler to allow passing on an object wholesale. `level` and `memLevel` are still supported but should be removed in 4.x. I'm still working on solutions to https://github.com/nodejs/node/issues/8871 (tracked in ...
diff --git a/README.md b/README.md index 83d21dad3..0b60fd44f 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,43 @@ The extension is disabled by default on the server and enabled by default on the client. It adds a significant overhead in terms of performance and memory consumption so we suggest to enable it only...
7
7
1
[{"id": "G0", "claim": "The README should say \"Node.js\" instead of \"NodeJS\"/\"Node\" in the new compression paragraph.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The README statement that tuning of permessage-deflate is done via the zlibOp...
null
websockets__ws__1329
websockets/ws
1,329
defect
57d3dbb9e1b6d81132bbf2c18a35f09eab783a87
bd4fe62aa79b88f7e56964bb6cf2819b9197b3ae
[fix] Allow URL instances as URL for WebSocket constructors
Addresses https://github.com/websockets/ws/issues/1143
diff --git a/lib/websocket.js b/lib/websocket.js index 87f3606fb..cf8d89a8c 100644 --- a/lib/websocket.js +++ b/lib/websocket.js @@ -27,7 +27,7 @@ class WebSocket extends EventEmitter { /** * Create a new `WebSocket`. * - * @param {String} address The URL to which to connect + * @param {String|URL} addre...
4
4
3
[{"id": "G0", "claim": "The destructuring declaration `const { URL } = require('url')` added to the test file does not work on Node.js 4.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new code uses `let` where the ES5 codebase still uses `var` ...
null
websockets__ws__1379
websockets/ws
1,379
defect
bb9c21c1aff2949b648747825f1b482d389fd2ae
9e0b7427f4c4a87d5d0016792c9d7dee10b98a56
verifyClient callback now accepts "headers" parameter
Which is passed to abortHandshake(). Fixes: https://github.com/websockets/ws/issues/695 Fixes: https://github.com/websockets/ws/issues/728
diff --git a/.gitignore b/.gitignore index 1f0951bf2..703544029 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,8 @@ node_modules/ .nyc_output/ coverage/ .vscode/ +.idea/ npm-debug.log +.npmrc +.node-version +test.js \ No newline at end of file diff --git a/doc/ws.md b/doc/ws.md index 89c377da9..69261d38d 10064...
6
5
0
[{"id": "G0", "claim": "The editor-specific entries this pull request adds to .gitignore (.vscode, .idea, .npmrc, .node-version, test.js) should be removed; they belong in the global gitignore and the file should stay unchanged.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introd...
null
websockets__ws__1587
websockets/ws
1,587
defect
36ef7570786d423038627877034cb866da8f8901
d275425e7e5eb029c4c28e1c7480f258edbe1b07
Setting the servername to an empty string '' should disable sending the SNI extension.
The option `servername` in [`tls.connect(options[, callback])`](https://nodejs.org/api/tls.html#tls_tls_connect_options_callback) is the name of the host being connected to, and must be a host name, and not an IP address. If the server is not a multi-homed server and I want to connect with the IP address it is not poss...
diff --git a/lib/websocket.js b/lib/websocket.js index 070b3a0eb..fae810195 100644 --- a/lib/websocket.js +++ b/lib/websocket.js @@ -668,7 +668,8 @@ function netConnect(options) { */ function tlsConnect(options) { options.path = undefined; - options.servername = options.servername || options.host; + if (!option...
1
1
1
[{"id": "G0", "claim": "Add a test for the new behaviour that an empty-string servername disables the SNI extension, e.g. by adapting the test from nodejs/node commit 98e9de7.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
websockets__ws__1589
websockets/ws
1,589
defect
36ef7570786d423038627877034cb866da8f8901
711f246f464ded2ce04c3229ac59981e3ca35e68
Add utility to wrap a `WebSocket` in a `Duplex` stream
I'm not sure if it make sense to add this but reasons for doing it are: - No additional dependencies. - Functionality is strictly bound to the ws internals. - Already existing modules are broken. The most popular, [websocket-stream](https://github.com/maxogden/websocket-stream) - [Loses data](https://github.com...
diff --git a/README.md b/README.md index aa19e3920..a5002972d 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ can use one of the many wrappers available on npm, like - [Multiple servers sharing a single HTTP/S server](#multiple-servers-sharing-a-single-https-server) - [Server broadcast](#server-broadcast...
4
1
0
[{"id": "G0", "claim": "When `readyState` is `CLOSING` or `CLOSED`, a write makes an error be emitted on the duplex stream, which can be annoying when using `readable.pipe()` since the other peer can send a close frame at any time; the author asks whether that is the right behaviour.", "category": "design", "verdict": ...
null
websockets__ws__1734
websockets/ws
1,734
defect
021d4ef4e3c61c2804651c77a97e4608deebb29c
bf5fbabe313df2ea510c904a721e4e1553458304
Honor auth option
#### Description The WebSocket client [documentation](https://github.com/websockets/ws/blob/master/doc/ws.md#new-websocketaddress-protocols-options) states that all [standard http.request()](https://nodejs.org/api/http.html#http_http_request_options_callback) options are valid. > Any other option allowed in http....
diff --git a/lib/websocket.js b/lib/websocket.js index ca72ad76d..4fc66aa9c 100644 --- a/lib/websocket.js +++ b/lib/websocket.js @@ -449,6 +449,7 @@ function initAsClient(websocket, address, protocols, options) { perMessageDeflate: true, followRedirects: false, maxRedirects: 10, + auth: undefined, ...
5
4
0
[{"id": "G0", "claim": "The `auth` option should not override the `userinfo` embedded in the connection URL — URL userinfo should win, just as for other options like `path`, `port`, `host`, since values parsed from the URL should not be changed by `http.request()` options.", "category": "design", "verdict": "opposed", ...
null
websockets__ws__1754
websockets/ws
1,754
defect
78e1c01959c59e07a9e1a9f464dd90f8a012c4fb
abd4aacc8c47a251f069a66652434ca65f278c2a
Add support for the EventTarget `once` option
As per the documentation this is something not browser related and should be supported to allow transparent polyfill usage https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener ```js import WebSocket from 'ws' new WebSocket().addEventListener('message', () => {}, { once: true }) ```
diff --git a/lib/event-target.js b/lib/event-target.js index c060d63a8..b5a5de39a 100644 --- a/lib/event-target.js +++ b/lib/event-target.js @@ -111,13 +111,15 @@ const EventTarget = { * * @param {String} method A string representing the event type to listen for * @param {Function} listener The listener to ...
6
5
4
[{"id": "G0", "claim": "lpinca questions whether the `once` option is needed at all, since it makes no sense for 'open', 'error' and 'close' (emitted once anyway) and in Node.js `ws.once()` already covers the 'message' case.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": ...
null
websockets__ws__1899
websockets/ws
1,899
defect
05b8ccd639a91428d7440ad350b8d4301636b2e2
d73ecadc51bba914917d3ccc5470323d86b2bff5
Close the connection cleanly when an error occurs
Instead of destroying the socket, try to close the connection cleanly if an error (such as a data framing error) occurs after the opening handshake has completed. Also, to comply with the specification, use the 1006 status code if no close frame is received, even if the connection is closed due to an error. F...
diff --git a/lib/websocket.js b/lib/websocket.js index 83b471d94..40ab4e86a 100644 --- a/lib/websocket.js +++ b/lib/websocket.js @@ -808,11 +808,10 @@ function receiverOnError(err) { const websocket = this[kWebSocket]; websocket._socket.removeListener('data', socketOnData); + websocket._socket.resume(); - w...
3
1
1
[{"id": "G0", "claim": "The streaming interface destroys the stream (unconditionally calling ws.terminate() in duplex._destroy()) when an error occurs, so the close frame might not be sent; track that the websocket errored (e.g. a wsErrored variable in createWebSocketStream) and skip ws.terminate() in _destroy in that ...
null
websockets__ws__2165
websockets/ws
2,165
defect
347aab6cd1609797295f482ef4368e7ffbf4c53a
d2cf8cfb65abbf77a4d17cf62ff6cd3853c4c619
[fix] ensure handleUpgrade doesn't break if socket is just a stream
If you attempt to handle a websocket over a connection that is a stream but not a `net.Socket`, right now WS fails to do so. With this very small change (very similar to the [equivalent handling](https://github.com/nodejs/node/blob/fcf5de008a59229fe65a7b8e4e45fb4cfef4de81/lib/net.js#L2144-L2147) in Node itself) it's po...
diff --git a/lib/websocket.js b/lib/websocket.js index f71d3d8e7..f536aaf4d 100644 --- a/lib/websocket.js +++ b/lib/websocket.js @@ -224,7 +224,10 @@ class WebSocket extends EventEmitter { receiver.on('pong', receiverOnPong); socket.setTimeout(0); - socket.setNoDelay(); + if (socket.setNoDelay) { + ...
2
2
1
[{"id": "G0", "claim": "The comment inside the setNoDelay guard should be reformatted (blank `//` lines around it, backticks around `socket`) to match the project's style.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The same guard may be need...
null
websockets__ws__271
websockets/ws
271
defect
0e692b9a5a9b8d5d082947675d6135860e8322c5
074a2855ec2f2f432e7745364640229f1f337727
When unexpected response sent by server, make the request and response available
Fixes these problems: (a) The request and response hang around (preventing process exit) until timeout - call err.request.abort to stop this (b) It's very useful to be able to read the response! There may be extra error information returned by the server that can't be represented by the status code alone (e...
diff --git a/lib/WebSocket.js b/lib/WebSocket.js index cce3cb41f..8d59944b9 100644 --- a/lib/WebSocket.js +++ b/lib/WebSocket.js @@ -601,6 +601,8 @@ function initAsClient(address, protocols, options) { }); (isNodeV4 ? agent : req).once('response', function(res) { var error = new Error('unexpected server resp...
2
2
1
[{"id": "G0", "claim": "Keeping references to the full request and response objects on the unexpected-response error will increase the likelihood of memory leaks, since a full request/response object is quite heavy.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "...
null
websockets__ws__534
websockets/ws
534
defect
dc2c2bdc9be75cfb540c4f80be2adb54b6a1d53e
c2071c9c993df1311b90b1731a0b53d53ccd09ea
Issue path validation
When a client visits a server with a wrong path, the connection should be rejected.
diff --git a/lib/WebSocketServer.js b/lib/WebSocketServer.js index fd42e3443..faa490bb8 100644 --- a/lib/WebSocketServer.js +++ b/lib/WebSocketServer.js @@ -148,7 +148,10 @@ WebSocketServer.prototype.handleUpgrade = function(req, socket, upgradeHead, cb) // check for wrong path if (this.options.path) { var u...
2
2
2
[{"id": "G0", "claim": "The change wrapping assert.ok(errorGiven) in an if/else makes the assertion useless because it is always true, and it should be reverted to a single assertion.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request shoul...
null
websockets__ws__806
websockets/ws
806
defect
6aa67c8c6c344fbe34e9236c9e78984df90d9730
42a981e29f514363fd26759e76073028f1910903
Use a set instead of an array to track clients
I think it makes sense to use a `Set` instead of an `Array` to track clients. The main advantage is that `Set.prototype.delete()` complexity is sublinear per spec.
diff --git a/lib/WebSocketServer.js b/lib/WebSocketServer.js index 4d23bcecc..8bb029afb 100644 --- a/lib/WebSocketServer.js +++ b/lib/WebSocketServer.js @@ -107,9 +107,9 @@ function WebSocketServer(options, callback) { this._server.on('upgrade', this._onServerUpgrade); } + if (options.clientTracking) this.cl...
3
2
1
[{"id": "G0", "claim": "The exposed `clients` set should explicitly prevent mutation of its non-readonly methods (ideally a `Set` subclass with them stubbed), because users expecting a safe copy could otherwise cause silent memory leaks by mutating the live tracking collection.", "category": "design", "verdict": "oppos...
null
websockets__ws__945
websockets/ws
945
defect
549cbe11527320f123e423bb13a1b20bc1807874
f33055559a80c7842fe84d4b43c0d799702139d7
Consume all data before emitting the `close` event
This makes `Receiver.prototype.cleanup()` accept an optional callback which is called when all buffered data is consumed or an error occurs. Using this callback we can handle cases where the parser is decompressing data and the other peer closes the underlying TCP connection. Previously when this happened the buffer...
diff --git a/lib/Receiver.js b/lib/Receiver.js index 07cbb9b66..d9a6e7a5d 100644 --- a/lib/Receiver.js +++ b/lib/Receiver.js @@ -51,6 +51,8 @@ class Receiver { this.messageLength = 0; this.fragments = []; + this.cleanupCallback = null; + this.hadError = false; this.dead = false; this.onmes...
2
1
1
[{"id": "G0", "claim": "In the branch of `cleanup` that releases resources (the `else` branch), `cleanupCallback` should also be set to null, so the stored callback is not retained after cleanup.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Valid ...
null
websockets__ws__956
websockets/ws
956
defect
8aa65e2f4da33083d1c20e46240aacc4fe40822c
2ee9ab30df9acef228cc3f3ac3f06a46eba81b2f
Abort the request if `close` is called while connecting
Currently `WebSocket.prototype.close()` only sets the `readyState` to [`CLOSED`](https://github.com/websockets/ws/blob/8aa65e2f4da33083d1c20e46240aacc4fe40822c/lib/WebSocket.js#L267) if called before receiving a handshake response. Then the connection is eventually closed when the response is [received](https://github....
diff --git a/lib/WebSocket.js b/lib/WebSocket.js index 4baf5a8eb..793719ce8 100644 --- a/lib/WebSocket.js +++ b/lib/WebSocket.js @@ -262,10 +262,10 @@ class WebSocket extends EventEmitter { */ close (code, data) { if (this.readyState === WebSocket.CLOSED) return; - if (this.readyState === WebSocket.CON...
4
2
1
[{"id": "G0", "claim": "The author is unsure whether the 'error' emitted when close() is called while CONNECTING should exist at all, and asks whether to keep it.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The error message 'closed while connecting' ma...
null
webstudio-is__webstudio__3247
webstudio-is/webstudio
3,247
defect
c478e65029ea68b6708945eb27e4a8c7b77414cc
151d35fa7e477f9eac67f70ed6948b3426b3b77d
fix: Move css filter properties to be used as tuples instead of layers in the data-layer
fixes #3243 ## Description We should use tuples for handling filters. Don't know when i switched to layers, but the initial implementation of the filters started as tuples itself. - [ ] We might probably need a migration for the existing projects to change it to tuple if needed. Let me know, I can help with...
diff --git a/apps/builder/app/builder/features/style-panel/sections/box-shadows/box-shadows.tsx b/apps/builder/app/builder/features/style-panel/sections/box-shadows/box-shadows.tsx index 283bdd7c9f90..12c44ffba985 100644 --- a/apps/builder/app/builder/features/style-panel/sections/box-shadows/box-shadows.tsx +++ b/apps...
2
1
0
[{"id": "G0", "claim": "Avoid the single-letter generic type parameters T and K in the layer-list types and use names that say what they stand for (e.g. the layer and value types).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR author ask...
null
webstudio-is__webstudio__3633
webstudio-is/webstudio
3,633
defect
853c0f7d483f4c9889434ef266b2c7421c2a99b9
da8539ce327e1b7d6996a255110829c3a375a49d
feat: show custom layer names in style-panel for redability
## Description fixes #3589 This PR allows to display the layers in the style-panel in much more readable way. ![Screenshot 2024-06-27 at 9 40 14 PM](https://github.com/webstudio-is/webstudio/assets/11075561/cfec0958-b228-476a-992b-d38b762892c6) ![Screenshot 2024-06-27 at 9 40 34 PM](https://github.com/webs...
diff --git a/apps/builder/app/builder/features/style-panel/style-layer-utils.ts b/apps/builder/app/builder/features/style-panel/style-layer-utils.ts index 3b9244ad310e..689a07768a2e 100644 --- a/apps/builder/app/builder/features/style-panel/style-layer-utils.ts +++ b/apps/builder/app/builder/features/style-panel/style-...
4
4
1
[{"id": "G1", "claim": "The function extractNameAndValueFromLayer should be named something more like getHumanizedTextFromLayer.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The new layer-name extraction function should have a few tests.", "ca...
null
webstudio-is__webstudio__4214
webstudio-is/webstudio
4,214
defect
3d98a692d42728e4c036df2338e503856ba49aab
f8954e1f2111287ce9e2e43b89b77e0bda2e24e8
fix: Unexpected end of JSON input in Webhook Form
## Description closes #4050 This PR modifies the response handling logic to attempt parsing all resource data as JSON. If an error occurs during parsing, an error response is only returned if the Accept header is explicitly set to application/json. 204 responses are skipped too. ## Steps for reproduction 1. clic...
diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 70fb64842519..8587f084fdae 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -38,11 +38,13 @@ "@webstudio-is/fonts": "workspace:*", "acorn": "^8.11.3", "acorn-walk": "^8.3.2", + "negotiator": "^0.6.3", ...
1
1
0
[{"id": "G0", "claim": "The reviewer questions whether the negotiator dependency is really needed just to check content-type, implying the PR's negotiation logic and dependency could be dropped.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
webstudio-is__webstudio__4216
webstudio-is/webstudio
4,216
defect
ab86c89cde1654d79e53163df6af1ab91bd16ca8
2f2b08b24e7fd0f9378d23144d11cefed9650674
fix: Skip unsafe attribute names on generation
## Description We can also do not skip but do `<Dom {...{"1unsafe": value}} />` BTW that looks useless. closes #3573 closes https://github.com/webstudio-is/webstudio-community/discussions/190#discussioncomment-10832279 ## Steps for reproduction 1. click button 2. expect xyz ## Code Review - [ ] ...
diff --git a/apps/builder/app/builder/features/settings-panel/props-section/props-section.tsx b/apps/builder/app/builder/features/settings-panel/props-section/props-section.tsx index 57727c13d8a9..9b0044d4e6ac 100644 --- a/apps/builder/app/builder/features/settings-panel/props-section/props-section.tsx +++ b/apps/build...
1
1
0
[{"id": "G0", "claim": "The hand-built `new Map([[...]])` literals in the \"skip unsafe properties\" test should use the `toMap` utility (with arrays of instances or props) for readability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
webstudio-is__webstudio__5181
webstudio-is/webstudio
5,181
defect
63c54fcad69978dfeca2dd144dae48beaf3d2e91
52bc1fc2b4bd924f9643cf96c715cfb651bfcf43
feat: support paste from other browsers
Users started to build own marketplaces. And we found paste something copied from other browser like firefox -> chromium based app doesn't work. This is because OSs guarantee only text/plain to be stored in system clipboard. Here I changed copy paste logic to copy as text/plain and paste as both application/json and...
diff --git a/apps/builder/app/shared/copy-paste/init-copy-paste.ts b/apps/builder/app/shared/copy-paste/init-copy-paste.ts index 8a76bec724c0..3ed3b1d1041a 100644 --- a/apps/builder/app/shared/copy-paste/init-copy-paste.ts +++ b/apps/builder/app/shared/copy-paste/init-copy-paste.ts @@ -3,7 +3,7 @@ import { $authToke...
2
1
0
[{"id": "G0", "claim": "We should check whether other places (e.g. resource copy) still use application/json and need the same paste handling.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "application/json should possibly no longer be the defaultMi...
null
webstudio-is__webstudio__5676
webstudio-is/webstudio
5,676
defect
80150b75e1d16ddc3c7908f42d55cff82ab917a9
50d16d248affcd2f6b5f333df2b739eb54898eb3
feat: replace asset option for image assets in asset details
## Description Adds the ability to replace an existing image asset with a new file directly from the asset details panel, without having to delete and re-upload manually. Related to [place an image so that it gets replaced automatically everywhere its being used #3268](https://github.com/webstudio-is/webstudio/issue...
diff --git a/apps/builder/app/builder/shared/asset-manager/asset-info.tsx b/apps/builder/app/builder/shared/asset-manager/asset-info.tsx index 1331fd984781..30ca49a188c2 100644 --- a/apps/builder/app/builder/shared/asset-manager/asset-info.tsx +++ b/apps/builder/app/builder/shared/asset-manager/asset-info.tsx @@ -1,10 ...
10
8
3
[{"id": "G0", "claim": "Replacing the image by re-pointing references could instead be done by actually replacing the stored asset and keeping everything else untouched, though questions remain around refreshing rendering and cache invalidation.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "...
null
webtorrent__parse-torrent__80
webtorrent/parse-torrent
80
defect
8add26b94698ede08564b16881ea24b4dede4053
43ecd8657fa668c18ddbaec1f58a5043121fda51
Non bittorrent magnets
<!-- DO NOT POST LINKS OR REFERENCES TO COPYRIGHTED CONTENT IN YOUR ISSUE. --> **What is the purpose of this pull request? (put an "X" next to item)** [ ] Documentation update [X] Bug fix [ ] New feature [ ] Other, please explain: **What changes did you make? (Give an overview)** parseTorrent() now throw...
diff --git a/index.js b/index.js index 4d54a1f2..619ed0fb 100644 --- a/index.js +++ b/index.js @@ -21,30 +21,53 @@ module.exports.toTorrentFile = encodeTorrentFile * @return {Object} */ function parseTorrent (torrentId) { + // magnet uri (string) if (typeof torrentId === 'string' && /^(stream-)?magnet:/.test(t...
2
1
0
[{"id": "G0", "claim": "Keep the `else if` structure in parseTorrent() instead of the separate `if` blocks, which the reviewer found less readable.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The change can be seen as a breaking change, since...
null
webtorrent__webtorrent__1819
webtorrent/webtorrent
1,819
defect
7a36c1d4788728653500b86751a0c7888bd31f46
1feb4b6f9aad2793c662c9fb55993edfa83f8079
Fix and document "private" option
<!-- DO NOT POST LINKS OR REFERENCES TO COPYRIGHTED CONTENT IN YOUR ISSUE. --> **What is the purpose of this pull request? (put an "X" next to item)** [X] Documentation update [X] Bug fix [ ] New feature [X] Other, please explain: - Add tests **What changes did you make? (Give an overview)** - Add the `pr...
diff --git a/docs/api.md b/docs/api.md index 843e5afac6..062343b901 100644 --- a/docs/api.md +++ b/docs/api.md @@ -89,6 +89,7 @@ If `opts` is specified, then the default options (shown below) will be overridde getAnnounceOpts: Function, // Custom callback to allow sending extra parameters to the tracker maxWebCon...
2
2
0
[{"id": "G0", "claim": "The new else block in _processParsedTorrent that sets this.private = !!parsedTorrent.private appears unnecessary, since the Object.assign below already assigns this.private to parsedTorrent.private — or maybe there is a bug here.", "category": "maintainability", "verdict": "supported", "priority...
null
webtorrent__webtorrent__1942
webtorrent/webtorrent
1,942
defect
5a668ccacfc6f055f50da300a1206eff69752d51
612254b0f7ea9dde1e1966ad16de1e110db9959f
Implement magnet peer-address (x.pe) BEP09
<!-- DO NOT POST LINKS OR REFERENCES TO COPYRIGHTED CONTENT IN YOUR ISSUE. --> **What is the purpose of this pull request? (put an "X" next to item)** [ ] Documentation update [ ] Bug fix [x] New feature [ ] Other, please explain: **What changes did you make? (Give an overview)** Implement magnet peer-addr...
diff --git a/lib/torrent.js b/lib/torrent.js index ea4e407862..72c8f768a6 100644 --- a/lib/torrent.js +++ b/lib/torrent.js @@ -323,6 +323,13 @@ class Torrent extends EventEmitter { }) } + // add BEP09 peer-address + // TODO: It should only be included if the client can discover its public IP address...
3
2
1
[{"id": "G0", "claim": "The property must be named `peerAddresses` because the API changed in `magnet-uri`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `magnet-uri` API should be changed so that `peerAddresses` is always an array, which would...
null
webtorrent__webtorrent__2142
webtorrent/webtorrent
2,142
defect
70b39be263c763e38e1931b869ba5f72d6fb59a6
7a6c26c8f0bd3e1c75eadcd57f9b127ce3725907
refactor: change behaviour of `noPeers` event
<!-- DO NOT POST LINKS OR REFERENCES TO COPYRIGHTED CONTENT IN YOUR ISSUE. --> **What is the purpose of this pull request? (put an "X" next to item)** [ ] Documentation update [ ] Bug fix [X] New feature [ ] Other, please explain: **What changes did you make? (Give an overview)** This PR: - Changes the be...
diff --git a/docs/api.md b/docs/api.md index bbd3b3e58f..a26fe0f4b5 100644 --- a/docs/api.md +++ b/docs/api.md @@ -59,6 +59,7 @@ If `opts` is specified, then the default options (shown below) will be overridde tracker: Boolean|Object, // Enable trackers (default=true), or options object for Tracker dht: Boolean|O...
2
1
0
[{"id": "G0", "claim": "The noPeers check interval should be an opt in the client, defaulting to 30 seconds, rather than a hardcoded constant.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "Incoming peers are created without a source, and the commenter a...
null
webtorrent__webtorrent__2239
webtorrent/webtorrent
2,239
defect
8429cfd1cc63f520f02c430c91c82ae5688f684f
59a0516a43a4b142b8831fec7f9b31c34c857132
refactor: Return Torrent when client.seed finds a duplicate
**What is the purpose of this pull request? (put an "X" next to item)** [ ] Documentation update [X] Bug fix [ ] New feature [ ] Other, please explain: **What changes did you make? (Give an overview)** When calling `client.seed` it would usually throw an error. Now it passes the torrent instance in the callba...
diff --git a/index.js b/index.js index 3e07d0415f..19f0c35820 100644 --- a/index.js +++ b/index.js @@ -393,7 +393,9 @@ class WebTorrent extends EventEmitter { const existingTorrent = this.get(torrentBuf) if (existingTorrent) { - torrent._destroy(new Error(`Cannot add duplicate torrent...
2
2
1
[{"id": "G0", "claim": "The pull request's new duplicate-seed behaviour should get a test case (a unit test) covering it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The duplicate warning should be reworded to \"A torrent with the same id is already ...
null
webtorrent__webtorrent__2757
webtorrent/webtorrent
2,757
defect
da24e68f59c3d02e3ee5e947cb97d84abe55d892
a00e5336b91e038519227b1bda502f0391116b60
Refactor selections with non-overlapping data structure
<!-- DO NOT POST LINKS OR REFERENCES TO COPYRIGHTED CONTENT IN YOUR ISSUE. --> **What is the purpose of this pull request? (put an "X" next to item)** - [X] Documentation update - [X] Bug fix - [ ] New feature - [ ] Other, please explain: **What changes did you make? (Give an overview)** ### WIP - please...
diff --git a/docs/api.md b/docs/api.md index 750cb49fe6..fb3a26024b 100644 --- a/docs/api.md +++ b/docs/api.md @@ -126,6 +126,7 @@ If `opts` is specified, then the default options (shown below) will be overridde strategy: String, // Piece selection strategy, `rarest` or `sequential`(defaut=`sequential`) ...
30
21
6
[{"id": "G0", "claim": "The pull request should explain what it changed and how the algorithm changed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The deselect API should keep (and document) its priority parameter instead of dropping priority f...
null
webview__webview__742
webview/webview
742
defect
29bdc6346c20d8501326a814dd4e4f0e0f14a8ab
aab4895e5399950988189e1232ad82297e74bb25
Optimize URL/percent encoding
This work replaces the `url_encode` function with a dumber `percent_encode` function that is optimized for code execution: * Characters are always percent-encoded which eliminates branch/comparison instructions inside the loop over the input string. * All memory for the resulting string is allocated upfront sin...
diff --git a/webview.h b/webview.h index 181017aad..9e780acc6 100644 --- a/webview.h +++ b/webview.h @@ -131,6 +131,7 @@ WEBVIEW_API void webview_return(webview_t w, const char *seq, int status, #endif #endif +#include <array> #include <atomic> #include <functional> #include <future> @@ -165,17 +166,19 @@ static...
1
1
0
[{"id": "G0", "claim": "Consider making the percent_encode helper (renamed from url_encode) inaccessible to users, since it is not intended to be public while url_decode is static — either by making it static as well or by moving everything not part of the public API into a nested namespace such as webview::detail.", "...
null
webview__webview__783
webview/webview
783
defect
e6289aca1f9b2b62146f4b82eea3390b4b132855
cc4ce610f28aa1f0ca4131372fc20e0fa61aacfa
Custom WebView2Loader implementation
As we do not have access to the source code of Microsoft's WebView2Loader library, it causes several annoying issues: * MinGW-w64/GCC can only link it dynamically while Visual C++ can also link it statically. * Go/cgo uses MinGW-w64/GCC which excludes the option to link it statically. * Developers must manually ma...
diff --git a/.gitignore b/.gitignore index 1edae4d1a..913dd7110 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ /dll /script/Microsoft* /script/nuget.exe +/vendor webview webview_test webview-example diff --git a/README.md b/README.md index 9076110d7..e7a8a9ebf 100644 --- a/README.md +++ b/README.md @@ -...
3
2
2
[{"id": "G0", "claim": "After making the loader prefer WebView2Loader.dll when present, a version check may be needed for the SDK-newer-than-loader/runtime direction, in addition to checking the browser version.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ...
null
wechatpay-apiv3__wechatpay-java__124
wechatpay-apiv3/wechatpay-java
124
defect
e9b5ee2f92857910698b7f4014a138438fc27a0b
93974a4de8cedcbab192f6d31854e6a0aa5e8f06
自动下载证书支持代理
使用大概是这样的 ```java // 设置下载自动更新证书时网络配置 DefaultHttpClientBuilder clientBuilder = new DefaultHttpClientBuilder() .proxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress("localhost", 8099)); // 设置商户配置,并使用 httpClientBuilder 设置 HttpClient 所需的网络配置 Config config = new RSAAutoCertificateConfig.Builder...
diff --git a/core/src/main/java/com/wechat/pay/java/core/RSAAutoCertificateConfig.java b/core/src/main/java/com/wechat/pay/java/core/RSAAutoCertificateConfig.java index 149af867..39016d30 100644 --- a/core/src/main/java/com/wechat/pay/java/core/RSAAutoCertificateConfig.java +++ b/core/src/main/java/com/wechat/pay/java/...
2
2
1
[{"id": "G0", "claim": "The newly added English javadoc on AutoCertificateNotificationConfig (including the @deprecated note) should be written in Chinese like the rest of the class's documentation.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "B...
null
wechatpay-apiv3__wechatpay-java__194
wechatpay-apiv3/wechatpay-java
194
defect
5895a417ab2d237312fa5993da3845e6de5c0f54
08121d19f639f7f80bdbd35aaf31d30e85f4ba91
新的微信支付证书下载机制
1. 支持**同一个**商户重复构造 Config,重复构造会覆盖之前的下载。还是建议全局只构造一个。 2. 使用一个后台线程,轮询更新证书。 3. 设置 `setDaemon(true)`,不影响程序推出。 4. 使用静态类实现的证书更新,也没有(不能)使用抽象类的方式去支持RSA和国密了。 有一个潜在的问题:重复设置之后,可能新的配置有错误不能下载证书,发现不了,暂时没有好办法。如果新配置下载失败时继续沿用之前的配置,从语意上也不是好办法。
diff --git a/README.md b/README.md index 55f38b6d..97891dfc 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ # 微信支付 APIv3 Java SDK -[微信支付 APIv3](https://wechatpay-api.gitbook.io/wechatpay-api-v3/) 官方 Java 语言客户端开发库。 +[微信支付 APIv3](https://pay.weixin.qq.com/docs/merchant/development/interface-rules/introduction...
6
5
1
[{"id": "G0", "claim": "The AutoCertificateService Javadoc calling it a '静态类' (static class) is inaccurate since Java has no such concept, and the description should be revised.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "register should run th...
null
wechatpay-apiv3__wechatpay-java__29
wechatpay-apiv3/wechatpay-java
29
defect
8ad1e594881559e98c83188079604203cd566ceb
4ec04cd1d7751bdc02d57c2fa08249bd8a747681
refactor: 基于JCA重写了cipher,以便于后续使用的密码算法库
很多常用密码算法库都是基于JCA的,例如 [BC](https://www.bouncycastle.org/java.html)、[ACCP](https://github.com/corretto/amazon-corretto-crypto-provider)。 基于JCA重写 cipher后,使用其他密码学算法库变得方便,是国密库扩展的基础。
diff --git a/buildSrc/src/main/groovy/common.gradle b/buildSrc/src/main/groovy/common.gradle index 79704847..65c6cda4 100644 --- a/buildSrc/src/main/groovy/common.gradle +++ b/buildSrc/src/main/groovy/common.gradle @@ -19,7 +19,7 @@ repositories { spotless { java { removeUnusedImports() - googleJa...
2
1
0
[{"id": "G0", "claim": "Removing requireNonNull(wechatPayCertificates) in RSAConfig.build() could let a null list through, so that wechatPayCertificates.isEmpty() throws a NullPointerException instead of failing with a clear null check.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "in...
null
wechatpay-apiv3__wechatpay-java__358
wechatpay-apiv3/wechatpay-java
358
defect
c3ddd8714508b1859704cccda25714675f93cdc2
65e3fa13dce818f591ed421ae73413dc8687cbf6
fix issues #352
使用ApacheHttpClientAdapter 发送post请求时指定ContentType参数为UTF-8,解决微信客户端接收的时候中文乱码,返回验签校验失败的问题
diff --git a/core/src/main/java/com/wechat/pay/java/core/http/apache/ApacheHttpClientAdapter.java b/core/src/main/java/com/wechat/pay/java/core/http/apache/ApacheHttpClientAdapter.java index bb21ba09..549f780f 100644 --- a/core/src/main/java/com/wechat/pay/java/core/http/apache/ApacheHttpClientAdapter.java +++ b/core/s...
1
1
0
[{"id": "G0", "claim": "The pull request's formatting is not applied; run `./gradlew :core:spotlessApply` to fix it.", "category": "style", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wechatpy__wechatpy__195
wechatpy/wechatpy
195
defect
1e617bbfc17a1f647767744c279eaf21e5953eb2
980222793d3ae19f35dcbfce25bfae3e67279506
微信卡券 ticket 获取及签名
签名的生成与微信的[调试工具](http://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=cardsign])相同,但是我在前端使用 JSSDK 调用这些参数会报错,没有找到原因。 ```javascript wx.chooseCard({ shopId: '', // 门店Id cardType: '', // 卡券类型 cardId: '', // 卡券Id timestamp: 0, // 卡券签名时间戳 nonceStr: '', // 卡券签名随机串 signType: '', // 签名方式,默认'SHA1' ...
diff --git a/tests/test_client.py b/tests/test_client.py index ea3da98d..8482582e 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -528,6 +528,35 @@ def test_jsapi_get_jsapi_signature(self): signature ) + def test_jsapi_get_jsapi_card_ticket(self): + """card_ticket 与 jsa...
5
4
1
[{"id": "G0", "claim": "The card signature computation could use the existing WeChatSigner (signer.add_data(*card_signature_dict.values()); signer.signature) instead of manually sorting the values and sha1-hashing them.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"i...
null
wechatpy__wechatpy__248
wechatpy/wechatpy
248
defect
8da5ea408e5d31452a7500f99f78afeba05793bc
305ef5fdd2c1005e28b917860d17829c539b551e
【模板消息】实现一次性订阅消息的API
微信新开放的接口,可以在用户授权后推一次强通知。 文档参见:[微信 - 通过API推送订阅模板消息给到授权微信用户](https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1500374289_66bvB)
diff --git a/wechatpy/client/api/message.py b/wechatpy/client/api/message.py index a7edb03f..d53df4e8 100644 --- a/wechatpy/client/api/message.py +++ b/wechatpy/client/api/message.py @@ -543,3 +543,30 @@ def send_mass_card(self, group_or_users, card_id, is_to_all, preview ) + + def...
4
4
4
[{"id": "G0", "claim": "The url parameter of send_subscribe_template should be optional, since the url parameter is optional in the underlying WeChat API.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "There should be a helper method that generates the o...
null
wechatpy__wechatpy__259
wechatpy/wechatpy
259
defect
07ddfea5f188f12f0303a6e864488d2cebf6aca3
cf87a6a50d66638db466980680e9b0146c6b3308
【发票】补全微信发票相关接口
close #253 close #252 虽然微信把这部分api放在了 `card` 下面, 但其实是相对独立的功能。 所以我们应该要新建一个新的 `invoice` API类。
diff --git a/docs/client/invoice.rst b/docs/client/invoice.rst new file mode 100644 index 00000000..2c63e2e9 --- /dev/null +++ b/docs/client/invoice.rst @@ -0,0 +1,8 @@ +发票接口 +========== + +.. module:: wechatpy.client.api + +.. autoclass:: WeChatInvoice + :members: + :inherited-members: diff --git a/wechatpy/client...
3
3
3
[{"id": "G0", "claim": "The create_card request payload is not quite right - the base_info/payee/type/detail fields need to be wrapped in an extra invoice_info layer.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The event push for receiving the us...
null
wechatpy__wechatpy__267
wechatpy/wechatpy
267
defect
5dd1bc497b4fb35a5ad43429f2ada7f4ebe2366a
f7340850663842c7c9a89b42edafe28e062cfe9e
新建WeChatErrorCode类,记录一些基本的错误码
close #260 这里实在是太杂乱了,很多不能重现的因为不好命名,就先没录进去了。 录了一些基本的,感觉非常神奇:咦微信居然还会报这种错。 为了 python2的兼容性,加了个 requirement: enum34。
diff --git a/requirements.txt b/requirements.txt index 8676d2794..f967723ae 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,3 +3,4 @@ requests>=2.4.3 xmltodict>=0.9.0 optionaldict>=0.1.0 python-dateutil>=2.5.2 +enum34>=1.1.4 diff --git a/tests/test_constants.py b/tests/test_constants.py new file mode 1006...
2
2
1
[{"id": "G0", "claim": "The enum34 requirement in requirements.txt should be limited with the environment marker `python_version < '3.4'` so it is not installed unconditionally.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test class in tests/...
null
wechatpy__wechatpy__333
wechatpy/wechatpy
333
defect
e08bc71b9369bbdf47682496f52076e2dbdcf912
9155f878c7391e0a4aa39192629fee337edf6ec3
增加 微信开放平台 代公众号 OAuth 网页授权相关接口
- [x] 微信开放平台 代公众号 OAuth 网页授权接口 - [x] 文档 - [x] 单元测试
diff --git a/docs/oauth.rst b/docs/oauth.rst index fac491c8..13903ec6 100644 --- a/docs/oauth.rst +++ b/docs/oauth.rst @@ -12,6 +12,15 @@ :members: :inherited-members: +微信开放平台 代公众号 OAuth 网页授权接入 +----------------------------------- + +.. module:: wechatpy.oauth + +.. autoclass:: ComponentOAuth + :members: + ...
1
1
0
[{"id": "G0", "claim": "The new ComponentOAuth class should probably be placed in wechatpy/component.py rather than in wechatpy/oauth/__init__.py.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wechatpy__wechatpy__350
wechatpy/wechatpy
350
defect
60106b2bac309a24f5407438c09fe78f235a916b
6e007151cbbc5e78a5c9a6cdf01339b19ffe507f
add: support for transfer to bankcard
https://pay.weixin.qq.com/wiki/doc/api/tools/mch_pay.php?chapter=24_2
diff --git a/wechatpy/pay/api/transfer_bankcard.py b/wechatpy/pay/api/transfer_bankcard.py new file mode 100644 index 00000000..e981b360 --- /dev/null +++ b/wechatpy/pay/api/transfer_bankcard.py @@ -0,0 +1,66 @@ +# -*- coding: utf-8 -*- +from __future__ import absolute_import, unicode_literals + +import random +from da...
3
3
2
[{"id": "G0", "claim": "The new rsa_encrypt makes the pay module depend on pycrypto, which is undesirable — an implementation based on cryptography should be provided as well (pycrypto support may be dropped in the future).", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"...
null
wechatpy__wechatpy__419
wechatpy/wechatpy
419
defect
28c1ec9f727f9318a8b2c1137cb5dcc3665838c3
253be5b6f16110bd5e8e9f14c301427ec7a0fff6
反序列化被动回复 Fixes #418
目前有一个需求需要反序列化已经render的xml回复,反序列化被动回复也有助于编写单元测试,且这个功能不会影响现有功能,希望能够支持
diff --git a/docs/replies.rst b/docs/replies.rst index b999abce..a91afb9b 100644 --- a/docs/replies.rst +++ b/docs/replies.rst @@ -209,3 +209,16 @@ wechatpy 提供了一个便捷的 create_reply 函数用来快速构建回复 : ] articles_reply = create_reply(articles, message=message) + +反序列化回复 +------------- + +wechatpy 提供一个deserialize_repl...
5
5
1
[{"id": "G0", "claim": "Fix the flake8 style issues in the added code: whitespace-only blank lines, blank lines at end of file, a missing final newline, missing blank lines between definitions, and continuation lines under-indented for visual indent.", "category": "maintainability", "verdict": "supported", "priority": ...
null
wechatpy__wechatpy__426
wechatpy/wechatpy
426
defect
b748ca505faa7e70f2e6e70290de08c0ddc16ca7
80c87df6c8f1c513fe4a753fe5752df0ec0bc1ac
iter_tag_users and fixes #425
1. 用return代替StopIteration以避免在python 3.7中出现RuntimeError; 2. 增加iter_tag_users方法,获取所有某标签下用户列表; 3. 将iter_followers方法的first_user_id变为传参,当用户持有last_openid时,可选增量获取用户.
diff --git a/tests/fixtures/user_get.json b/tests/fixtures/user_get.json index 77968fd2..0a1b4c05 100644 --- a/tests/fixtures/user_get.json +++ b/tests/fixtures/user_get.json @@ -1,6 +1,6 @@ { "total":2, "count":2, - "data": {"openid": ["", "OPENID1", "OPENID2"]}, - "next_openid":"NEXT_OPENID" + "da...
2
2
1
[{"id": "G0", "claim": "The pull request should add tests covering the new tag/user API behaviour (iter_tag_users, get_tag_users and the related user code).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new test code in tests/test_client.py has fla...
null
wechatpy__wechatpy__556
wechatpy/wechatpy
556
defect
2e4619d79c4a4970ce81150ce0b97a004d336063
a3587dca99244e6af0b2837d51fa29ed1aebc376
新增批量添加卡券接口
我在新增卡券的时候发现了`get_jsapi_card_params`, 但是它生成的并不能用, 于是我新创建了另一个函数`get_jsapi_add_card_params`用于生成新增卡券时的参数. 全部所做有: - 引入了一个新的包 - 添加了 card_ext 的结构定义 - 新增了 card_ext 生成函数.
diff --git a/pyproject.toml b/pyproject.toml index b09b7af5..91db6c2a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,6 +46,7 @@ coverage = "^5.0.4" redis = "^3.4.1" pymemcache = "^3.0.1" shove = "^0.6.6" +pydantic= "^1.4" [tool.poetry.extras] cryptography = ["cryptography"] diff --git a/wechatpy/client/...
6
5
2
[{"id": "G0", "claim": "Symbols between Chinese characters should use full-width punctuation, e.g. in the get_jsapi_card_ticket docstring, though the reviewer notes this need not be changed given the project's inconsistent comment style.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introdu...
null
wechatpy__wechatpy__579
wechatpy/wechatpy
579
defect
318643ea412cf116b3bfa3f60fcc29c61d58fe40
664c0832b5e0f4116b4512e2fef732ab32b3d355
补全企业微信的oa接口
添加接口如下: - 获取公费电话拨打记录 - 获取打卡数据 - 获取打卡规则 - 查询自建应用审批单当前状态 定义的函数返回类型为`Union[dict, requests.models.Response]`,`wechatpy/client/base.py:83`的返回值在解码失败后,返回的是`Response`对象,故这里使用了联合类型。
diff --git a/tests/fixtures/work/checkin_getcheckindata.json b/tests/fixtures/work/checkin_getcheckindata.json new file mode 100644 index 00000000..a4314aaa --- /dev/null +++ b/tests/fixtures/work/checkin_getcheckindata.json @@ -0,0 +1,32 @@ +{ + "errcode":0, + "errmsg":"ok", + "checkindata": [{ + "userid"...
2
1
1
[{"id": "G0", "claim": "The return type annotation of the new OA API methods (get_dial_record, and likewise get_checkin_data, get_checkin_option, get_open_approval_data) should be just `dict`, not `Union[dict, requests.models.Response]`, since these APIs always return a dict and the tests assert isinstance dict.", "cat...
null
wechatpy__wechatpy__582
wechatpy/wechatpy
582
defect
147d932f69db82cc75c1f9b177b64b9b74798a16
3f0eea4897b45f7bdee4cd7f03fd0efbc0f9c69b
添加企业微信电子发票接口 (#444)
新增接口如下: - 查询电子发票 - 批量查询电子发票 - 更新发票状态 - 批量更新发票状态
diff --git a/tests/fixtures/work/card_invoice_reimburse_getinvoiceinfo.json b/tests/fixtures/work/card_invoice_reimburse_getinvoiceinfo.json new file mode 100644 index 00000000..3ab6de00 --- /dev/null +++ b/tests/fixtures/work/card_invoice_reimburse_getinvoiceinfo.json @@ -0,0 +1,33 @@ +{ + "errcode":0, + "errmsg":...
2
1
0
[{"id": "G0", "claim": "invoice_reimburse_status_set should be a set literal instead of a tuple.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "get_info could collapse the url/data intermediate variables into a single self._post call, as the reviewer's p...
null
wechatpy__wechatpy__608
wechatpy/wechatpy
608
defect
7679eba736ebe78b43b378ee0a353d069b248545
5bd25b4fcdcf342f0500126251c00d7f941226af
添加企业微信成员管理的新接口 (#607)
企业微信新增了两个接口: - [企业微信加入企业二维码](https://work.weixin.qq.com/api/doc/90000/90135/91714) - [获取企业活跃成员数量](https://work.weixin.qq.com/api/doc/90000/90135/92714)
diff --git a/tests/fixtures/work/corp_get_join_qrcode.json b/tests/fixtures/work/corp_get_join_qrcode.json new file mode 100644 index 00000000..e98e3d84 --- /dev/null +++ b/tests/fixtures/work/corp_get_join_qrcode.json @@ -0,0 +1,5 @@ +{ + "errcode": 0, + "errmsg": "ok", + "join_qrcode": "https://work.weixin.qq.c...
2
2
0
[{"id": "G0", "claim": "The new method should be named `get_join_qrcode` instead of `join_qrcode`, to keep naming consistent with the other APIs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test should call `self.client.user.get_join_qrco...
null
wechatpy__wechatpy__635
wechatpy/wechatpy
635
defect
2dd48a8983a5f98ac36fc2e807c0eee702bd7280
c0e2510dd6ed374edece3370ddb83bcc24c85dd2
feat: 实现服务号订阅通知相关接口, closes #633
- 实现了模板增删改查接口 - 实现了回调事件 - 针对回调事件,采取官方样例数据补充了单元测试 - 路径放置在了跟旧的“模板消息”相同层级,并且优化了旧的“模板消息”的文档
diff --git a/tests/test_events.py b/tests/test_events.py index b4d1df0e..18b7830f 100644 --- a/tests/test_events.py +++ b/tests/test_events.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- import unittest from datetime import datetime + from wechatpy import parse_message @@ -239,6 +240,79 @@ def test_template_send_jo...
2
2
0
[{"id": "G0", "claim": "In the new subscribe-event classes, `self.subscribes_info[\"List\"]` indexes a BaseField, which mypy cannot treat as a dict, so the code likely needs a typing.cast to Dict to satisfy mypy.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2",...
null
wechaty__python-wechaty__145
wechaty/python-wechaty
145
defect
af852c3334a340711f2a225933f5d5e3c15dae16
8e51f1ec53c1902d6ddf0fee30b746030e9bdf13
payload should be set in force
refer to : [room-payload](https://github.com/wechaty/wechaty/blob/8a41a64c443623dc188d2be06b474706e33bb4ca/src/user/room.ts#L349) Payload can be replaced if in force mode. And more, if the object has the same id, the info of payload shoud be the same, So, that's fine to set payload more than once.
diff --git a/VERSION b/VERSION index 592e815e..e196726d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.6.12 +0.6.13 diff --git a/requirements.txt b/requirements.txt index a6562417..db10dfa0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,5 +2,5 @@ pyee requests qrcode lxml -wechaty-puppet>=0.0.17 -wech...
3
2
0
[{"id": "G0", "claim": "Since init_plugin's body has been emptied, the reviewer asks why the method should be kept at all.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "huan asks the author to explain why dependencies are pinned with '==' instead...
null
wechaty__python-wechaty__171
wechaty/python-wechaty
171
defect
61c805604453f985c867176362a6fe95e366f101
4ab96214633ac7fcdd7f44255773625dc5abbd0b
fix issue: on-scan event is not consist with ts-wechaty
fix: https://github.com/wechaty/python-wechaty/issues/169
diff --git a/.gitignore b/.gitignore index 81b640f9..f6c13fc9 100644 --- a/.gitignore +++ b/.gitignore @@ -113,3 +113,4 @@ token.txt docs/build/ docs/source/_build **/.vscode/ +/src/wechaty/version.py \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 22346b92..67e354be ...
3
3
2
[{"id": "G0", "claim": "The '/src/wechaty/version.py' entry that the pull request added to .gitignore should be removed because that file belongs to the repository.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should not rewrite t...
null
wechaty__wechaty__1341
wechaty/wechaty
1,341
defect
d25eaeeff335c3c515bf10c4e6340a906805b725
915e54a71636e1ff26cf3122d7391651c6ed5c42
Bug compatible WXCreateChatRoom
see https://github.com/lijiarui/wechaty-puppet-padchat/issues/62
diff --git a/src/puppet-padchat/padchat-rpc.ts b/src/puppet-padchat/padchat-rpc.ts index 8b9e2de19..90afd456c 100644 --- a/src/puppet-padchat/padchat-rpc.ts +++ b/src/puppet-padchat/padchat-rpc.ts @@ -68,6 +68,7 @@ import { isContactId, isRoomId, padchatDecode, + pureUserName, } from '....
5
5
2
[{"id": "G0", "claim": "Please test the dirty-fix code and confirm it works as expected; it does not appear to strip the prefix as intended.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Extract the bug-compat stripping into a new pure-function hel...
null
wechaty__wechaty__1729
wechaty/wechaty
1,729
defect
1520feaf6837ac97fd87bd90bcef699d5a7c5dd3
96f95262f971793a5f789493d4c710ed1a12b1d7
revise room.say() mention function
## I'm submitting a... ``` [ ] Bug Fix [ ] Feature [x] Other (Refactoring, Added tests, Documentation, ...) ``` Refer to https://github.com/Chatie/wechaty/issues/1718 This PR involves a **BREAKING CHANGE**
diff --git a/src/user/room.ts b/src/user/room.ts index 4226d3519..19ece499a 100644 --- a/src/user/room.ts +++ b/src/user/room.ts @@ -382,10 +382,10 @@ export class Room extends Accessory implements Sayable { } public say (text: string) : Promise<void> - public say (text: string, mention: Co...
5
4
2
[{"id": "G0", "claim": "Add a unit test for the new Tagged Template modification of room.say().", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a description of the BREAKING CHANGE to the pull request, so it can go into the CHANGELOG later.", "catego...
null
wechaty__wechaty__1735
wechaty/wechaty
1,735
defect
51cf19fbe67c3f4aad6ebc8dfb067a67a90564cb
1f95756a055b6dec9fda4a4288adf0ef170f0038
Add `Message.recalled()`
Refer to https://github.com/Chatie/wechaty/issues/1728
diff --git a/package.json b/package.json index dcb07a506..7a281dc7c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wechaty", - "version": "0.25.2", + "version": "0.25.3", "description": "Wechaty is a Bot SDK for Wechat Personal Account", "main": "dist/src/index.js", "typings": "d...
3
3
1
[{"id": "G0", "claim": "Move the mock helper out of the newly created src/user/common.spec.ts back into the unit test files that use it, rather than coupling unit tests through a shared spec file (with codeclimate duplication for *.spec.ts to be ignored instead).", "category": "maintainability", "verdict": "supported",...
null
wechaty__wechaty__211
wechaty/wechaty
211
defect
58613477967c41f97b266c0b1295a00a1b34c3d7
42728192c67365323ea4d949c6c8b541ed1d21af
fix_function_room.member_#173
#173 #104 1. change parseNickMap, add remark value 2. add contact.ready() to get full contact, and get contact's remark
diff --git a/src/puppet-web/firer.ts b/src/puppet-web/firer.ts index e7435d258..7bcfbb438 100644 --- a/src/puppet-web/firer.ts +++ b/src/puppet-web/firer.ts @@ -207,7 +207,7 @@ async function checkRoomJoin(m: Message): Promise<void> { const loaded = inviteeContactList[i] instanceof Contact if (!load...
9
9
4
[{"id": "G0", "claim": "The CI Room smoking test fails with \"Error: Cannot read property 'getContact' of undefined\", which the author says her change did not cause (she did not modify getContact), and she asks for help to fix it.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "pre_exi...
null
wechaty__wechaty__2138
wechaty/wechaty
2,138
defect
040784c94a137ae9da7fbea8095a9b5d2b385e5c
03025bc2e78d137a48fa1526d63dafdca45e2c55
pass custom server host to io server
## Checklist - [x] Commit Messages follow the [Conventional Commits](https://conventionalcommits.org/) pattern - A feature commit message is prefixed "feat:" - A bugfix commit message is prefixed "fix:" - [x] Tests for the changes have been added - [x] CI has been passed. (GitHub actions all turns green) - ...
diff --git a/src/config.ts b/src/config.ts index aaf9c9aab..a762f8422 100644 --- a/src/config.ts +++ b/src/config.ts @@ -119,6 +119,7 @@ export class Config { public default = DEFAULT_SETTING public apihost = process.env.WECHATY_APIHOST || DEFAULT_SETTING.DEFAULT_APIHOST + public customizeServerHost = process....
2
2
0
[{"id": "G0", "claim": "Rename the newly added setting from `customizeServerHost`/`WECHATY_CUSTOM_SERVER_HOST` to `serviceIp`/`WECHATY_PUPPET_SERVICE_IP` so the naming matches the existing `WECHATY_PUPPET_SERVICE_PORT` convention and is clearer at the use site in src/io.ts.", "category": "design", "verdict": "supported...
null
wechaty__wechaty__2249
wechaty/wechaty
2,249
defect
093704ac498289bedecacfdc0319984ac7453e2e
4212a482adebb42c1e55a1b0db45069318868716
New Wechaty User Module (WUM): `Post` implemention
Related issue: - https://github.com/wechaty/wechaty/issues/2245
diff --git a/examples/video-post.ts b/examples/video-post.ts new file mode 100644 index 000000000..c4fa44465 --- /dev/null +++ b/examples/video-post.ts @@ -0,0 +1,70 @@ +import { Wechaty } from '../src/wechaty' +import { VideoPost } from '../src/mod' + +const bot = new Wechaty({ + name : 'video-post-bot', +}) + +const...
2
2
2
[{"id": "G0", "claim": "Remove the private `Message.load()` call from the example and build the message another way, since `load()` (on Message and all user classes) is not a public API.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Use `await Cont...
null
wechaty__wechaty__362
wechaty/wechaty
362
defect
483941cc58b8a32d9c03d83c218b59d04a017423
f81e60a69fba5413027bb055a5fed1bd608cad8b
Add mention
continue with #287 I'm trying to reset the merge file. Becasue the `ding` error is not casued by this commit, so I should reset the commit 3c9e1ea `Merge branch 'master' of https://github.com/wechaty/wechaty into add_mention` As I have said in #287, thanks god, finally I mocked room data successfully...
diff --git a/src/message.spec.ts b/src/message.spec.ts index 917436125..5f3e52360 100644 --- a/src/message.spec.ts +++ b/src/message.spec.ts @@ -43,10 +43,10 @@ test('ready()', async t => { /* tslint:disable:max-line-length */ const rawData = JSON.parse('{"MsgId":"3009511950433684462","FromUserName":"@0748ee48071...
17
12
3
[{"id": "G0", "claim": "The mention tests keep failing in CI (with the continuous 'ready() contact ready for ToUserName' error) although they pass locally.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Add an @example block to the mention() JSDoc.", "c...
null
wechaty__wechaty__651
wechaty/wechaty
651
defect
1830cb3eb7815b9f569e339a694f4b4218ca6abf
7c92c04a408f78ca3a67b0d043ada48b7eea53bb
room-join cannot detect inviteeList when people join in the room with qrcode
#248 room-join cannot detect inviteeList when people join in the room with QR code: * If one contact joins in the room by the QR code shared by the bot, system message as follows: - "李佳芮" joined the group chat via your shared QR Code. - "李佳芮"通过扫描你分享的二维码加入群聊 * If one contact joins in the room isn't by th...
diff --git a/src/puppet-web/firer.spec.ts b/src/puppet-web/firer.spec.ts index 0eeadf93b..8fca5b365 100644 --- a/src/puppet-web/firer.spec.ts +++ b/src/puppet-web/firer.spec.ts @@ -88,21 +88,21 @@ test('parseRoomJoin()', t => { ], [ `"桔小秘"通过扫描你分享的二维码加入群聊`, - `你`, + undefined, ['桔小秘'], ...
2
2
2
[{"id": "G0", "claim": "The PR should not have dropped the optional-quote capture group `\"?(.+?)\"?` from the roomJoinQrcode regexes (with the corresponding `undefined` inviter expectation), because removing it is unnecessary and a poor choice — unquoted sharer names would no longer be matched.", "category": "design",...
null
weecology__DeepForest__1045
weecology/DeepForest
1,045
defect
b43afc4d0652686e82aac69ee520b002cb3e9313
7ad9577833fa160722b71f94a2292b7af0cb0c4c
Add test and functionality to save the label_dict in the cropmodel
I found that when you save and reload a CropModel, the label_dict isn't recovered, so you don't know the names of the classes! - Added a test showing that this fails on main - Added the correct hook to deepforest.models.CropModel.on_save_checkpoint - Reloaded on load - Tests pass.
diff --git a/src/deepforest/model.py b/src/deepforest/model.py index 8b95a3592..62a633a43 100644 --- a/src/deepforest/model.py +++ b/src/deepforest/model.py @@ -140,6 +140,9 @@ def __init__(self, self.batch_size = batch_size self.lr = lr + def on_save_checkpoint(self, checkpoint): + checkp...
1
1
0
[{"id": "G0", "claim": "The new test should explicitly set a different (not tree) label dict — with different label names, so it is not accidentally None — to prove the checkpoint keeps the mapping, and could also assert the label_dict's type.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": ...
null
weecology__DeepForest__1049
weecology/DeepForest
1,049
defect
550e84288f96aaeefe50709cbd4546e8d8b337ea
b463ff3aa6494e0ede7a35ea9cab9a91f568082f
Add configurable train and predict scripts
Adds two scripts for training and inference in `src/scripts` - Train script (`deepforest-train`) uses pure Hydra for configuration which should allow for things like parameter sweeping and full override of the default config - Predict script `deepforest-predict`) uses argparse to keep things cleaner, but accepts ad...
diff --git a/docs/user_guide/11_training.md b/docs/user_guide/11_training.md index 3bccebfd5..b52643355 100644 --- a/docs/user_guide/11_training.md +++ b/docs/user_guide/11_training.md @@ -319,3 +319,33 @@ trainer.fit(m) The added benefits of this is more control over the trainer object. The downside is that it doesn...
3
3
1
[{"id": "G0", "claim": "Show the new train/predict scripts working with the packaged sample data (OSBS_029.csv / OSBS_029.tif) and write that example into the docs.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Replace the separate `deepforest-tr...
null
weecology__DeepForest__1126
weecology/DeepForest
1,126
defect
bda8029b25ca4e6cef24e79d74aeff12e11d9eae
6f4a0f8ddc60dab38b19346ebc0004f604f18a6a
streamline GeoPandas handling and update visualization code
- Handle GeoDataFrame conversion logic - Modernize visualization module with improved type annotations and formatting - Improve tests and visualization, avoid showing plots
diff --git a/src/deepforest/evaluate.py b/src/deepforest/evaluate.py index e24a2c2c9..f85a93e22 100644 --- a/src/deepforest/evaluate.py +++ b/src/deepforest/evaluate.py @@ -1,9 +1,11 @@ """Evaluation module.""" -import pandas as pd + +import warnings + import geopandas as gpd -import shapely import numpy as np -impo...
5
3
2
[{"id": "G0", "claim": "The `color is None` branch in `__check_color__` is unreachable because calling functions now pass a default color list, and using default colors for multi-label plots triggers a misleading warning that a single color was provided.", "category": "correctness", "verdict": "supported", "priority": ...
null
weecology__DeepForest__1200
weecology/DeepForest
1,200
defect
6c2f98715a31c8a80764a9624174d938a6e6843f
c970f2152d023bb1c85f3a06b6e24edd7df868ad
Add tests for point annotations split_raster
This PR was motivated by testing in MillionTrees where I noticed that when using a point geometry, preprocess.split_raster was not re-normalizing the annotations to the tiled output, making them offset. I added a test, which failed, and then a fix, which passed. I also played with adding to agents.md to make it cle...
diff --git a/src/deepforest/preprocess.py b/src/deepforest/preprocess.py index 0f6161ef6..d8bb51692 100644 --- a/src/deepforest/preprocess.py +++ b/src/deepforest/preprocess.py @@ -84,9 +84,18 @@ def select_annotations(annotations, window): if clipped_annotations.empty: return clipped_annotations - #...
3
1
0
[{"id": "G0", "claim": "Wonders whether the agent-guidelines addition should be a top-level change rather than scoped to tests/.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Advocates that the guidelines have the agent run the full test suite after it is...
null
weecology__DeepForest__1211
weecology/DeepForest
1,211
defect
682e3260c3139690fe3e8845fcc290cf26e7fe63
a60b8ff0c8e3142357c844ff4d8a99cdbadf81cc
Add validation checks for bounding boxes
Checks to see if bounding boxes occur outside of image boundaries and clearly communicates to user when they do. This is a version of #1015 that accounts for changes in the codebase over the last year. This was good work by @reddykkeerthi that I didn't want to see get lost. Closes #1014
diff --git a/src/deepforest/datasets/training.py b/src/deepforest/datasets/training.py index 790d4b70c..da8032169 100644 --- a/src/deepforest/datasets/training.py +++ b/src/deepforest/datasets/training.py @@ -71,6 +71,7 @@ def __init__( self.preload_images = preload_images self._validate_labels() + ...
3
3
2
[{"id": "G0", "claim": "Add failure-path tests for the new _validate_coordinates branches, i.e. a test for a missing image path and one for bad geometry (test_validate_dataset_missing_image, test_validate_dataset_bad_geometry).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {...
null
weecology__DeepForest__976
weecology/DeepForest
976
defect
c40c279408f7b6db5ce44a83755fc11a4916a052
450af80dd1bd2b09964bbde773054fd3f04da756
Fix #545: Add "path" arg and deprecate "raster_path" in predict_tile()
I sincerely apologize for the inconvenience I caused earlier. I truly appreciate your patience and guidance. If it’s okay, I have now tried to organize everything freshly with an updated version. This PR solves the issue #545 by updating the `predict_tile` function to use `path` as an alternative to `raster_path` wh...
diff --git a/src/deepforest/main.py b/src/deepforest/main.py index 07858dd54..5cdcf9125 100644 --- a/src/deepforest/main.py +++ b/src/deepforest/main.py @@ -486,6 +486,7 @@ def predict_file(self, csv_file, root_dir, savedir=None, color=None, thickness=1 def predict_tile(self, raster_path=No...
1
1
1
[{"id": "G0", "claim": "Search the entire repository for every instance of predict_tile and review them all to ensure full coverage, updating the documentation accordingly, in a new commit.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
wefoxplatform__rustainers__24
wefoxplatform/rustainers
24
defect
c5b9c2413702accf45627d8893d4ee0d90a7c4f4
39f1f42409e2f2d2962f13db2ab6bbe41a10462c
feat: Docker in docker
At the container creation, fetch the host network in the context of docker in docker. Heavily inspired from [testcontainers](https://github.com/testcontainers/testcontainers-python/blob/main/core/testcontainers/core/docker_client.py#L88). A separate github action called dind is launched to check the validity.
diff --git a/.devcontainer/dev-container-setup.sh b/.devcontainer/dev-container-setup.sh new file mode 100755 index 0000000..9fd488e --- /dev/null +++ b/.devcontainer/dev-container-setup.sh @@ -0,0 +1,45 @@ +#!/bin/sh + +set -e +# set -x + +export DEBIAN_FRONTEND=noninteractive + +# Install dependencies +apt-get update...
22
17
2
[{"id": "G0", "claim": "The protobuf-compiler dependency installed by the dev container setup script is unnecessary.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A separate dind workflow is questionable; its job should go into the existing tes...
null
weibaohui__k8m__290
weibaohui/k8m
290
defect
95125e945f04fce4f16cb15975526b5faf33d899
f9a12207366d47f0b10be5a1594d3df5da0d27cf
perf(utils): 使用 crypto/rand 替换 math/rand 以提高安全性
将随机数生成器从 math/rand 替换为 crypto/rand,以生成更安全的随机数 在生成失败时返回默认值,确保函数始终有返回值
diff --git a/pkg/comm/utils/random.go b/pkg/comm/utils/random.go index 4a44ae8c0..82ba7c6c9 100644 --- a/pkg/comm/utils/random.go +++ b/pkg/comm/utils/random.go @@ -1,8 +1,8 @@ package utils import ( - "math/rand" - "time" + "crypto/rand" + "math/big" ) const charset = "abcdefghijklmnopqrstuvwxyz0123456789" @@ ...
4
2
1
[{"id": "G0", "claim": "In RandInt the range `max - min + 1` is computed in int and may overflow for large spans; compute the range and offset in int64 (with a guard for invalid ranges) instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "intPow ...
null
weibaohui__kom__11
weibaohui/kom
11
defect
56698677e09ee70fdaebdfe1b1f19da02f60031e
6c3a3d41b3149bba28becf52eb3a5f43386ad80f
feat(metrics): 添加节点和Pod的Top功能,支持获取资源使用情况
添加了节点和Pod的Top功能,支持获取CPU和内存的资源使用情况。同时,新增了相关的测试用例,确保功能的正确性。
diff --git a/example/metrics_test.go b/example/metrics_test.go index c2c4641..da2a3ab 100644 --- a/example/metrics_test.go +++ b/example/metrics_test.go @@ -8,16 +8,43 @@ import ( v1 "k8s.io/api/core/v1" ) +func TestPrintTopPodList(t *testing.T) { + + result, err := kom.DefaultCluster(). + Resource(&v1.Pod{}).Nam...
11
1
1
[{"id": "G0", "claim": "TestPrintTopSinglePod should fail on error and add assertions verifying the returned single Pod metrics instead of only logging.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "TestPrintTopPodList should fail on error and assert a...
null
weibaohui__kom__56
weibaohui/kom
56
defect
81977a328c79e496cd537e502c8e6afec407c351
54d354d847e41c18cecfcc80fd2fbf4994052589
refactor(utils): 使用crypto/rand替换math/rand以增强随机数安全性
- 将pod_exec_test.go中的随机终端尺寸生成逻辑改为使用crypto/rand - utils/random.go中RandNDigitInt函数改用crypto/rand生成随机数
diff --git a/example/pod_exec_test.go b/example/pod_exec_test.go index 1502a1c..9406c34 100644 --- a/example/pod_exec_test.go +++ b/example/pod_exec_test.go @@ -2,10 +2,11 @@ package example import ( "bytes" + "crypto/rand" "fmt" "io" "math" - "math/rand" + "math/big" "sync" "testing" "time" @@ -51,11 ...
4
2
1
[{"id": "G0", "claim": "In RandNLengthString the constant bound big.NewInt(int64(len(charset))) is re-allocated on every loop iteration and should be hoisted out of the loop to reduce allocation and call overhead.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1"...
null
weibaohui__kom__61
weibaohui/kom
61
defect
aff16aa4eb2b855df4d75ff81900610d266594ba
d587b9d2c2b0e53d9b35e96d142df459830898f0
refactor(aws): 移除 AWS 认证相关冗余代码及测试
- 删除 AuthProvider 中 IsEKSConfig 和 InitializeFromKubeconfig 方法及相关逻辑 - 移除配置解析器 ConfigParser 中对 EKS kubeconfig 判断和解析的实现 - 清理 ParseExecConfigFromKubeconfig 函数及相关依赖的 ExecConfig 解析代码 - 删除 AWS 认证相关的单元测试代码,包含 EKS 配置解析、TokenCache 测试等 - 调整 EKSAuthConfig 及 TokenCache 结构体字段格式及注释 - 简化 config.go,仅保留必要的extractClusterInfoFromArgs...
diff --git a/kom/aws/auth.go b/kom/aws/auth.go index f2cbcba..63dd0da 100644 --- a/kom/aws/auth.go +++ b/kom/aws/auth.go @@ -20,41 +20,7 @@ func NewAuthProvider() *AuthProvider { configParser: NewConfigParser(), } } - -// IsEKSConfig 检测是否为 EKS 配置 -func (ap *AuthProvider) IsEKSConfig(kubeconfig []byte) bool { - re...
6
3
2
[{"id": "G0", "claim": "The subtests in kom/cluster_test.go still call the removed API parser.ParseEKSConfig, so the test file can no longer compile; delete or rewrite them against the new API.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The EKS ...
null