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
apache__wicket__454
apache/wicket
454
defect
a2a66acd17913e7684e37ebbdf6eaa4dbac7c1ca
3bc06da098a16ec7bda1650b35ea427a92b1b759
WICKET-6833 Reduce allocations for PageParameters.mergeWith
This PR reduces allocations in `PageParameters.mergeWith`. As a side-effect, it increases throughput 4x. It avoids allocating new collections where possible and attempts to initialize `namedParameters` with the correct size. This method is called more than 1000 times per request in my application because we have ...
diff --git a/wicket-request/src/main/java/org/apache/wicket/request/mapper/parameter/PageParameters.java b/wicket-request/src/main/java/org/apache/wicket/request/mapper/parameter/PageParameters.java index d4736e56602..a03245c4672 100644 --- a/wicket-request/src/main/java/org/apache/wicket/request/mapper/parameter/PageP...
1
1
0
[{"id": "G0", "claim": "The new addNamed(String[]) overload should add `&& values.length > 0` to the `namedParameters == null` guard so an empty array does not allocate/initialize the list.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__wicket__462
apache/wicket
462
defect
11dc8f94b93216bd72c61cd5ba94946a8f89af1c
7bc47ec03cbbf273570ae72b535fa4663024737e
WICKET-6864 updated crypt configuration
It's time to update the crypt defaults to recommended standards.
diff --git a/wicket-core/src/main/java/org/apache/wicket/authentication/strategy/DefaultAuthenticationStrategy.java b/wicket-core/src/main/java/org/apache/wicket/authentication/strategy/DefaultAuthenticationStrategy.java index d51efbc5510..6567bdd1dfc 100644 --- a/wicket-core/src/main/java/org/apache/wicket/authenticat...
14
12
1
[{"id": "G0", "claim": "The deprecated constructors in DefaultAuthenticationStrategy should use @Deprecated(forRemoval = true) instead of a TODO comment.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The cryptography should be brought up to dat...
null
apache__wicket__488
apache/wicket
488
defect
3e8f512840e31e5f026e4319335f2a7e3fed818a
53d480bb3abf9c7c3cebb7b799eaf065c23fa1de
[WICKET-6943] Save info about Locale direction LTR/RTL to Session metadata
I would like to introduce the way to determine Locale direction LTR/RTL this is useful to set some specific attributes And to load RTL specific JS/CSS will be useful for ex. here: https://github.com/l0rdn1kk0n/wicket-bootstrap/issues/942 :))) UPD: i'll create JIRA if this PR will pass the review :)
diff --git a/wicket-core/src/main/java/org/apache/wicket/Session.java b/wicket-core/src/main/java/org/apache/wicket/Session.java index c4152c9f6d6..4f63eaa76e5 100644 --- a/wicket-core/src/main/java/org/apache/wicket/Session.java +++ b/wicket-core/src/main/java/org/apache/wicket/Session.java @@ -30,6 +30,7 @@ import o...
8
6
3
[{"id": "G0", "claim": "The benefit of caching the RTL state on the session is unclear and it should not be cached separately from the locale if Wicket itself does not use it.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The javadoc on IS_RTL ('records...
null
apache__wicket__497
apache/wicket
497
defect
d365e04af2076f41a04fb3ca624517f2c83d75c8
cab9c3ba269fb3c978bc208023e08e508755a091
WICKET-6952 Performance improvements for `Strings.isEmpty()`
This PR adds some micro-improvements for `Strings.isEmpty`. `String.trim` is one of the hottest methods in my application. Most calls come from `Strings.isEmpty`, either called directly or via `Args.notEmpty`. It is called thousands of times during each request, so even minor improvements should make sense. This ...
diff --git a/wicket-util/src/main/java/org/apache/wicket/util/lang/Args.java b/wicket-util/src/main/java/org/apache/wicket/util/lang/Args.java index cd947d107fd..b293ce30a69 100644 --- a/wicket-util/src/main/java/org/apache/wicket/util/lang/Args.java +++ b/wicket-util/src/main/java/org/apache/wicket/util/lang/Args.java...
3
3
0
[{"id": "G0", "claim": "Please add a comment explaining why there are two \"identical\" methods (the new String overloads Args.notEmpty(String, String) and Strings.isEmpty(String) next to the CharSequence versions), so that in a few months or years someone will not wonder what is going on.", "category": "documentation"...
null
apache__wicket__555
apache/wicket
555
defect
d533fc72f180a0063856e2127adcf603ab00c49f
99bea42e0626d5647f2b52d3df3ca4103b8b0db8
[WICKET-7030] Add Convenience Methods to BaseWicketTester
- Add getAllComponentsFromLastRenderedPageByWicketId and getFirstComponentFromLastRenderedPageByWicketId to BaseWicketTester It has always bothered me that unlike TagTester BaseWicketTester has no way of finding Components by Wicket ID
diff --git a/wicket-core/src/main/java/org/apache/wicket/util/tester/BaseWicketTester.java b/wicket-core/src/main/java/org/apache/wicket/util/tester/BaseWicketTester.java index 4f6f33e486e..013edd84023 100644 --- a/wicket-core/src/main/java/org/apache/wicket/util/tester/BaseWicketTester.java +++ b/wicket-core/src/main/...
2
2
1
[{"id": "G0", "claim": "The Javadoc on the new getFirstComponentFromLastRenderedPageByWicketId method is still a 'TODO' placeholder and must be written.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The 'FromLastRenderedPage' part should be remov...
null
apache__wicket__556
apache/wicket
556
defect
d533fc72f180a0063856e2127adcf603ab00c49f
59c13eeafc85599764e4c72574dd8abecab4adbb
WICKET-7029 Add wicket-migration module
Makes it easier for users to adopt Apache Wicket 10. https://issues.apache.org/jira/browse/WICKET-7029 Migration then comes down to executing a single command: ```shell mvn -U org.openrewrite.maven:rewrite-maven-plugin:run \ -Drewrite.recipeArtifactCoordinates=org.apache.wicket:wicket-migration:LATEST \ -Dac...
diff --git a/pom.xml b/pom.xml index 9fc510c541e..87e0057cbe8 100644 --- a/pom.xml +++ b/pom.xml @@ -119,7 +119,8 @@ <module>wicket-native-websocket</module> <module>wicket-bean-validation</module> <module>wicket-user-guide</module> - </modules> + <module>wicket-migration</module> + </modules> <pro...
2
1
1
[{"id": "G0", "claim": "The wicket-migration module (and its Java package) should be renamed to include 9_to_10 — or better, placed under an intermediate migration parent module — so it can stay for several major releases without colliding with the next migration such as 10_to_11.", "category": "design", "verdict": "op...
null
apache__wicket__586
apache/wicket
586
defect
1dd2fa87f32f9e0ec221405a6d182e450365b10a
f3b10531e46e8a9f052af3c867778e63cd5e1ab9
[WICKET-7051] reorder exception handling in Form + re-enable disabled tests
[WICKET-7051] reorder exception handling in Form + re-enable disabled te
diff --git a/wicket-commons-fileupload/src/main/java/org/apache/wicket/commons/fileupload2/pub/FileUploadByteCountLimitException.java b/wicket-commons-fileupload/src/main/java/org/apache/wicket/commons/fileupload2/pub/FileUploadByteCountLimitException.java index d95d269554e..3f9e4762884 100644 --- a/wicket-commons-file...
2
2
0
[{"id": "G0", "claim": "The wicket-vendored FileUploadByteCountLimitException constructor ignores the passed fileName and stores fieldName in this.fileName instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "Remove the leftover `// FIXME Wicke...
null
apache__wicket__655
apache/wicket
655
defect
fb14db0b3f8febe3e25e5466329c99b256e463a0
e82f3a2d8455a3d02b6f4d39de8206cbde1bedea
[WICKET-7074] write AJAX responses to a temporary buffer so that is A…
write AJAX responses to a temporary buffer so that is AJAX fails in rendering phase response is not polluted with an invalid XML
diff --git a/wicket-core/src/main/java/org/apache/wicket/ajax/AjaxRequestHandler.java b/wicket-core/src/main/java/org/apache/wicket/ajax/AjaxRequestHandler.java index 5e52cfa6787..2f69f22b60c 100644 --- a/wicket-core/src/main/java/org/apache/wicket/ajax/AjaxRequestHandler.java +++ b/wicket-core/src/main/java/org/apache...
7
5
1
[{"id": "G0", "claim": "The new comment misspells the ticket id as \"KP-7074\" and should read \"WICKET-7074\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new comment contains the typo \"this ise needed\" and should read \"this is needed\"...
null
apache__wicket__682
apache/wicket
682
defect
83537c68b9db665313f2ca8233f5f82f376c8a63
e0066f23271dafc8497b08f430706448dc8c725d
[WICKET-7080] 1) make default events delivery machinery pluggable 2) …
1) make default events delivery machinery plug-gable 2) allow to disabled sending events 3) defines a reflection based machinery to deliver events
diff --git a/wicket-core/src/main/java/org/apache/wicket/event/EventAwareObject.java b/wicket-core/src/main/java/org/apache/wicket/event/EventAwareObject.java new file mode 100644 index 00000000000..7214312e9d2 --- /dev/null +++ b/wicket-core/src/main/java/org/apache/wicket/event/EventAwareObject.java @@ -0,0 +1,34 @@ ...
4
3
1
[{"id": "G0", "claim": "Consider adding a class-to-method map cache in ReflectionEventDispatcher so event-handler methods are not located by reflection each time an event is delivered at runtime.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ja...
null
apache__wicket__781
apache/wicket
781
defect
10b06b85ad0f10ea1b7387876480cc93753cab0c
5ae5697fbfc2d978e8b8ef4525484207b057b88d
WICKET-6890 Introduce strategy for class name debug output
This PR introduces a strategy for outputting a container's class name for debugging purposes. Up until 8bbf158ebc4d12f3b317c0d607200441c0767162, `ClassNameStrategy.HTML_COMMENT` was the default strategy. Since then `ClassNameStrategy.TAG_ATTRIBUTE` has become the default and only option. For applications that st...
diff --git a/wicket-core-tests/src/test/java/org/apache/wicket/behavior/OutputMarkupContainerClassNameBehaviorTest.java b/wicket-core-tests/src/test/java/org/apache/wicket/behavior/OutputMarkupContainerClassNameBehaviorTest.java index 77de9af69c6..782ff1186dc 100644 --- a/wicket-core-tests/src/test/java/org/apache/wick...
6
6
2
[{"id": "G0", "claim": "m001 asks whether the Page should ignore the ClassOutputStrategy and always write the HTML comment, or write it only when the HTML_COMMENT strategy is enabled.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "m002 asks what should b...
null
apache__wicket__812
apache/wicket
812
defect
41ead89c399422066c54800cae80dd295f6c9da1
38c15b7ba09a415206db3a200616adf222b33a66
[WICKET-7101] The label associated with form component should always …
The label associated with form component should always be rendered when the form component is rendered via AJAX. This way we ensure the state of the label is consistent with form component's state. This introduces a new wicket attribute wicket:auto that controls that auto-label is bound to form component.
diff --git a/wicket-core/src/main/java/org/apache/wicket/ajax/form/AjaxFormComponentUpdatingBehavior.java b/wicket-core/src/main/java/org/apache/wicket/ajax/form/AjaxFormComponentUpdatingBehavior.java index e162048a80b..2c3fff10730 100644 --- a/wicket-core/src/main/java/org/apache/wicket/ajax/form/AjaxFormComponentUpda...
1
1
1
[{"id": "G0", "claim": "Maybe add an application setting that toggles this behavior and set it to disabled by default, so that existing applications will not break.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apache__wicket__859
apache/wicket
859
defect
bd03775a3dc3678b63fce36ae8976311297a7114
c7f95410b457cefa3df7e01335899eafc7f0e59d
[WICKET-7109] add some ready to use DropDownChoice supporting grouping
[Screencast from 2024-05-06 09-26-47.webm](https://github.com/apache/wicket/assets/462655/197ed293-7d78-4a30-96a5-526138aa6b9b)
diff --git a/wicket-core/src/main/java/org/apache/wicket/markup/html/form/GroupedDropDownChoice.java b/wicket-core/src/main/java/org/apache/wicket/markup/html/form/GroupedDropDownChoice.java new file mode 100644 index 00000000000..c39d9bae0aa --- /dev/null +++ b/wicket-core/src/main/java/org/apache/wicket/markup/html/f...
5
5
2
[{"id": "G0", "claim": "The javadoc of hasNoGroup should read '@return true if the current entry belongs to no group.' (fixing 'true is').", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The constructors and fields of GroupedDropDownChoice should h...
null
apache__wicket__894
apache/wicket
894
defect
b92cbc6684bc0eff336115830a9b6871075a3536
0706207969c5988c7ba2c13a511344500ccf06bc
WICKET-7112 Expand error messages in Component class
WICKET-7112 The error messages in the Component class have been augmented with more detailed information. These include class type, parent markup ID, parent relative path, and the original URL. This is to give a more comprehensive context surrounding the error, aiding debugging and issue resolution.
diff --git a/wicket-core/src/main/java/org/apache/wicket/Component.java b/wicket-core/src/main/java/org/apache/wicket/Component.java index 1b2fe94cb04..3e8ac5977c5 100644 --- a/wicket-core/src/main/java/org/apache/wicket/Component.java +++ b/wicket-core/src/main/java/org/apache/wicket/Component.java @@ -2478,7 +2478,8 ...
3
3
0
[{"id": "G0", "claim": "The expanded error messages need not include the request URL (`url: %s` filled from getRequest().getOriginalUrl()); the reviewer does not think the URL is needed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The locatio...
null
apache__wicket__928
apache/wicket
928
defect
37c80e8c54533257c9fc5737424847a61e889b4e
111413bb602f335d01672a0f733cbefb0f7e0f34
WICKET-7121: Make it possible to disable the noisy logs by RequestCycle
RequestCycle logs ******* which does produce some unnecessary noise in log aggregators like Kibana
diff --git a/wicket-core/src/main/java/org/apache/wicket/core/request/handler/ListenerInvocationNotAllowedException.java b/wicket-core/src/main/java/org/apache/wicket/core/request/handler/ListenerInvocationNotAllowedException.java index f878b8962c8..efdf519ce92 100644 --- a/wicket-core/src/main/java/org/apache/wicket/c...
4
4
1
[{"id": "G0", "claim": "The new `Path` detail append should be outside the `if (behavior != null)` block so the component path is logged even when no behavior is set.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Remove the special `###***===---` p...
null
apache__wicket__971
apache/wicket
971
defect
9966b6a76c2cc472b3e321396d52abd2af8ea1c0
8bd0b1f4ff2bd25b63907d544c596976e59c0a33
WICKET-7123 default form submit can now be set one per form
- default form submit can now be set one per form (not form hierarchy) - hidden input submit in root form now not needed, everything handled in JS - click invocation mostly reused old part of javascript - tests green One thing that I'm missing but couldn't figure out was to write test with form hierarchy (parent/...
diff --git a/wicket-core-tests/src/test/java/org/apache/wicket/markup/html/form/FormDefaultButtonTestPage_expected.html b/wicket-core-tests/src/test/java/org/apache/wicket/markup/html/form/FormDefaultButtonTestPage_expected.html index b108777d5da..3f54abe8471 100644 --- a/wicket-core-tests/src/test/java/org/apache/wick...
3
2
1
[{"id": "G0", "claim": "The default-submit-button handler script should not depend on jQuery (`$('#id').is(':hidden')`) but be implemented with Wicket.* APIs or vanilla JS so a developer can replace wicket-ajax-jquery.js with a custom implementation and drop jQuery.", "category": "design", "verdict": "supported", "prio...
null
apache__wicket__99
apache/wicket
99
defect
05b32f5ca0d4a7d7a6d7c5e4deef1d7d0668dfe0
b8b9b30173921215972238a34395725a08c70fb3
WICKET-5749 add AuthorizeResource to auth-roles so Resources can be prot...
WICKET-5749 add AuthorizeResource to auth-roles so Resources can be protected too. Also cleaned up and expanded AnnotationsRoleAuthorizationStrategyTest. It's been a while since I contributed, so I figured I'd go with a pull request for review first.
diff --git a/wicket-auth-roles/src/main/java/org/apache/wicket/authroles/authorization/strategies/role/annotations/AnnotationsRoleAuthorizationStrategy.java b/wicket-auth-roles/src/main/java/org/apache/wicket/authroles/authorization/strategies/role/annotations/AnnotationsRoleAuthorizationStrategy.java index 4aa4e9293b6...
3
3
0
[{"id": "G0", "claim": "Put the `else` of checkResource on a new line (project brace style).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Do not use the wildcard import `java.lang.annotation.*` in AuthorizeResource.java.", "category": "maintai...
null
apache__zeppelin__4734
apache/zeppelin
4,734
defect
3bf19f4414cf2653d79fbc36abef6e9a022a76a6
57f8b9c2475be86d13a16d6b5bae346d019b1eb0
[ZEPPELIN-5986] Bump Maven surefire/failsafe plugins to recover JUnit5 tests
### What is this PR for? This is the third attemps of ZEPPELIN-5986, partial of this PR are credited to @Reamer, and I also got help from @zjffdu offline. - https://github.com/apache/zeppelin/pull/4699 (first attempt) - https://github.com/apache/zeppelin/pull/4725 (second attempt) #### Background I found t...
diff --git a/livy/src/test/java/org/apache/zeppelin/livy/LivyInterpreterIT.java b/livy/src/test/java/org/apache/zeppelin/livy/LivyInterpreterIT.java index 3a3a17c5afb..f5b09f69204 100644 --- a/livy/src/test/java/org/apache/zeppelin/livy/LivyInterpreterIT.java +++ b/livy/src/test/java/org/apache/zeppelin/livy/LivyInterp...
2
2
0
[{"id": "G0", "claim": "The shared Selenium helpers (pollingWait, authenticationUser, logoutUser) should live once as non-static instance methods in AbstractZeppelinIT instead of being outsourced to static methods in ZeppelinITUtils and privately duplicated in InterpreterModeActionsIT.", "category": "design", "verdict"...
null
apache__zeppelin__4746
apache/zeppelin
4,746
defect
fa6e3ee3b83aa5ffc070557780ec111386b8c951
5e87104c289ffdcec5852ea6e93d8f31de0d1a0c
[ZEPPELIN-6006] Remove command line applications when downloading applications
### What is this PR for? This pull request removes the use of command line applications when downloading Spark, Flink, Hadoop and Livy. This pull request also updates some Apache Commons libraries, which are primarily required for decompression. ### What type of PR is it? Improvement ### What is the Jira issue...
diff --git a/pom.xml b/pom.xml index f840d7915b5..0d14167ef22 100644 --- a/pom.xml +++ b/pom.xml @@ -91,6 +91,7 @@ <module>zeppelin-jupyter</module> <module>zeppelin-plugins</module> <module>zeppelin-distribution</module> + <module>zeppelin-test</module> </modules> <properties> @@ -116,6 +117,...
11
10
2
[{"id": "G0", "claim": "The new download/test utility code should live in its own module (e.g. zeppelin-test) instead of being added to build-tools, so test-related code has a home independent of the interpreter and zengine modules.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"...
null
apache__zeppelin__4838
apache/zeppelin
4,838
defect
35e12991262566a4ac7a3fce11ab8dbd08d05cde
2bd69795ce101c356c3c2178f33d2455762beaec
[ZEPPELIN-6095] validate decoded url in jdbc interpreter
### What is this PR for? Add some validation check conditions to existing url validator in jdbc interpreter. So now it can check URLs with the conditions below if it has an unallowable configuration. - UTF-8 encoded ### What type of PR is it? Improvement ### Todos * [ ] - Task ### What is the Jira issu...
diff --git a/jdbc/src/main/java/org/apache/zeppelin/jdbc/JDBCInterpreter.java b/jdbc/src/main/java/org/apache/zeppelin/jdbc/JDBCInterpreter.java index b4cfba25b40..17630021957 100644 --- a/jdbc/src/main/java/org/apache/zeppelin/jdbc/JDBCInterpreter.java +++ b/jdbc/src/main/java/org/apache/zeppelin/jdbc/JDBCInterpreter....
6
6
1
[{"id": "G0", "claim": "The whitespace-elimination logic in validateConnectionUrl looks unnecessary; the reviewers ask whether whitespaces in the middle of the URL could be left as-is and JDBC allowed to throw its own error.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"...
null
apache__zeppelin__4878
apache/zeppelin
4,878
defect
31c011b507034a681d6b6f7f072204e693e8915b
9b2d0199990bd874f8d9869147c702e4976f08a8
[ZEPPELIN-6131] Update Interpreter to Store Values as Integers When Applicable
### What is this PR for? There was an issue where the port was treated as a string and included `.0` when modifying the port of the Elasticsearch interpreter. ### What type of PR is it? Bug Fix ### Todos * [x] - Modified HttpBasedClient.java file ### What is the Jira issue? * https://issues.apache.org/jira...
diff --git a/zeppelin-server/src/main/java/org/apache/zeppelin/rest/message/UpdateInterpreterSettingRequest.java b/zeppelin-server/src/main/java/org/apache/zeppelin/rest/message/UpdateInterpreterSettingRequest.java index 79cc1e19b56..ca7e76a0b9e 100644 --- a/zeppelin-server/src/main/java/org/apache/zeppelin/rest/messag...
3
3
1
[{"id": "G0", "claim": "Rather than truncating the \".0\" off the port string in HttpBasedClient as a workaround, the PR should find and switch off whatever behavior produces the \".0\" in the first place.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A...
null
apache__zeppelin__4884
apache/zeppelin
4,884
defect
414f4d1c470b5046628cfc378e6602fb78240e8f
2f6f4eb09aade11c14475eecea7206050ac693cf
[ZEPPELIN-6138] Update Apache Parent
### What is this PR for? This pull request updates the Apache parent version. We benefit significantly from plugin updates and can clean up our own `pom.xml`. plugin updates: maven-antrun-plugin - 1.8 -> 3.1.0 maven-assembly-plugin - 3.7.1 -> 3.7.1 maven-clean-plugin - 3.1.0 -> 3.4.0 maven-compiler-plugin - 3.8...
diff --git a/bigquery/src/main/java/org/apache/zeppelin/bigquery/BigQueryInterpreter.java b/bigquery/src/main/java/org/apache/zeppelin/bigquery/BigQueryInterpreter.java index c23bd228e71..a7446e6035d 100644 --- a/bigquery/src/main/java/org/apache/zeppelin/bigquery/BigQueryInterpreter.java +++ b/bigquery/src/main/java/o...
2
2
0
[{"id": "G0", "claim": "Keep the original indentation of the removed builder chain in the ElasticsearchInterpreterTest populate() loop, which was more readable than the flattened form this PR introduced.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla...
null
apache__zeppelin__4891
apache/zeppelin
4,891
defect
3575a3cf8834cdc0100f0a554846829584df0c30
575f123e9c83e45f14e28009a7fdc5c5c1a0def7
[ZEPPELIN-6190] Prevent directory escape bypass through repeated URL decoding
### What is this PR for? This PR addresses an issue in `NotebookService` where the notebook path validation only performs a single decoding pass. This allowed a malicious user to bypass validation by double-encoding the `".."` token. By implementing the repeated decoding, we can prevent this bypass. Additionally, t...
diff --git a/zeppelin-server/src/main/java/org/apache/zeppelin/service/NotebookService.java b/zeppelin-server/src/main/java/org/apache/zeppelin/service/NotebookService.java index a0c8908d60e..b5619ed3640 100644 --- a/zeppelin-server/src/main/java/org/apache/zeppelin/service/NotebookService.java +++ b/zeppelin-server/sr...
3
2
0
[{"id": "G0", "claim": "Use the JDK 11 Charset overload, i.e. URLDecoder.decode(previous, StandardCharsets.UTF_8), instead of passing StandardCharsets.UTF_8.toString().", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The decodeRepeatedly method c...
null
apache__zeppelin__4926
apache/zeppelin
4,926
defect
52ea80f312b7a19dcce865a6ca8249a2f5fb49cd
706653a5094358f075e3c80bfb53d714f178f776
[ZEPPELIN-6186] fix searching user using JdbcRealm
### What is this PR for? This PR fixes a broken feature where getUserList fails when using JdbcRealm for Shiro authentication. The previous PR addressing SQL injection introduced an error that prevents getUserList from working correctly with JdbcRealm. As a result, users are unable to set notebook permissions. ...
diff --git a/zeppelin-server/pom.xml b/zeppelin-server/pom.xml index 09e377fb472..f0ee01b42ca 100644 --- a/zeppelin-server/pom.xml +++ b/zeppelin-server/pom.xml @@ -45,6 +45,7 @@ <selenium.java.version>2.48.2</selenium.java.version> <xml.apis.version>1.4.01</xml.apis.version> <hamcrest.version>2.2</hamcr...
5
4
0
[{"id": "G0", "claim": "The userlist query should be built with PreparedStatement instead of being assembled with String.format.", "category": "security", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The whole logic that parses tablename and username should be refactored to get...
null
apache__zeppelin__4973
apache/zeppelin
4,973
defect
a6fcb9dbf7cb64eb826b3b29578f0c9876c8d301
48d9be96eaa9f3bdd989aa0f1129f50baeb51adf
[ZEPPELIN-6244] Handle Collection as defaultValue in GUI.select()
# [MINOR] Handle Collection as defaultValue in GUI.select() ## What is this PR for? This PR improves the `GUI.select()` method to properly handle Collection objects passed as defaultValue. When a Collection is provided, the method now extracts the first element as the actual default value instead of using the Colle...
diff --git a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/display/GUI.java b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/display/GUI.java index 2e703d241dc..e0e60c00b72 100644 --- a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/display/GUI.java +++ b/zeppelin-interpreter/src/main/java/org/...
3
3
1
[{"id": "G0", "claim": "The `!(defaultValue instanceof String)` check is unnecessary and should be dropped from the Collection branch in GUI.select().", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test method `testSelectWithCollectionDefaul...
null
apache__zeppelin__4976
apache/zeppelin
4,976
defect
a6fcb9dbf7cb64eb826b3b29578f0c9876c8d301
a613bf9b0ed96e2693caa92e9865c6dfd0582ecb
[ZEPPELIN-6247] Fix flag parsing bug in FileInterpreter
# [MINOR] Fix flag parsing bug in FileInterpreter ## What is this PR for? This PR fixes a bug in the `FileInterpreter` class where the dash character (`-`) was incorrectly included as a flag when parsing command arguments. ## What type of PR is it? Bug Fix ## What is the Jira issue? https://issues.apache.or...
diff --git a/file/src/main/java/org/apache/zeppelin/file/FileInterpreter.java b/file/src/main/java/org/apache/zeppelin/file/FileInterpreter.java index 8275215efa5..37f97d523be 100644 --- a/file/src/main/java/org/apache/zeppelin/file/FileInterpreter.java +++ b/file/src/main/java/org/apache/zeppelin/file/FileInterpreter....
1
1
1
[{"id": "G0", "claim": "The new FileInterpreterTest.java has two Checkstyle errors — the file does not end with a newline and the TestFileInterpreter constructor has a redundant 'public' modifier — which fail the checkstyle-fail-build check.", "category": "style", "verdict": "supported", "priority": "P0", "scope": "int...
null
apache__zeppelin__4977
apache/zeppelin
4,977
defect
a6fcb9dbf7cb64eb826b3b29578f0c9876c8d301
efbcbdbbfca1c7063c530e6c827bd6e0bbfe9813
[ZEPPELIN-6245] Improve Repository class stability and validation
# Improve Repository Class Stability and Validation ## Summary This PR enhances the `Repository` class with comprehensive input validation, error handling, and stability improvements to ensure robust Maven repository configuration management. ## Changes Made ### 1. Enhanced Input Validation - **Repository ...
diff --git a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/dep/Repository.java b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/dep/Repository.java index 83c6aaa1c73..7c9d1b1945c 100644 --- a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/dep/Repository.java +++ b/zeppelin-interpreter/src/main/...
8
7
2
[{"id": "G0", "claim": "Make the Repository class variables final, e.g. by extending the builder pattern so that a build() method is called at the end.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Remove the methods marked @deprecated, since the feat...
null
apache__zeppelin__5000
apache/zeppelin
5,000
defect
1a66333d50642c996a5bc3035154337eac4bcdc9
171bd377e4bfb591e00fff1951c1369e691870b6
[ZEPPELIN-6256] Fix resource leaks in SparkInterpreterLauncher.detectSparkScalaVersion
## What is this PR for? This PR fixes resource leaks in the `detectSparkScalaVersion` method of `SparkInterpreterLauncher.java` by modernizing the implementation to capture process output directly without temporary files. **Previous issues:** - Resource leak from unclosed FileInputStream when reading process...
diff --git a/zeppelin-zengine/src/main/java/org/apache/zeppelin/interpreter/launcher/SparkInterpreterLauncher.java b/zeppelin-zengine/src/main/java/org/apache/zeppelin/interpreter/launcher/SparkInterpreterLauncher.java index 33b3e4ba62d..6a6c2159275 100644 --- a/zeppelin-zengine/src/main/java/org/apache/zeppelin/interp...
3
3
0
[{"id": "G0", "claim": "The rewritten output handling in detectSparkScalaVersion should use modern APIs — FileUtils.readFileToString for reading and Files.deleteIfExists for deleting the temp file — or, as the reviewer suggested it may also be possible, do without the temporary file by capturing the process stream dire...
null
apache__zeppelin__5069
apache/zeppelin
5,069
defect
f45587db39531b885343122f83ecb20f16bd7f0e
3db06a4898fc51bf33889eacd26df7d65c4565fe
[ZEPPELIN-6306] Prevent NPE in StaticRepl by fail-fast JavaCompiler check
### What is this PR for? - ToolProvider.getSystemJavaCompiler() can return null in JRE environments. - Added a fail-fast null check in StaticRepl to throw a clear exception early. - Updated unit test to reflect this behavior. ### What type of PR is it? Bug Fix ### Todos * [ ] - Task ### What is the Jira i...
diff --git a/java/src/main/java/org/apache/zeppelin/java/StaticRepl.java b/java/src/main/java/org/apache/zeppelin/java/StaticRepl.java index 410020f15ec..8850ea91477 100644 --- a/java/src/main/java/org/apache/zeppelin/java/StaticRepl.java +++ b/java/src/main/java/org/apache/zeppelin/java/StaticRepl.java @@ -49,6 +49,12...
1
1
1
[{"id": "G0", "claim": "The new test testJDKCompilerAvailability uses JavaCompiler, ToolProvider and assertNotNull without importing them, so the import statements for javax.tools.JavaCompiler, javax.tools.ToolProvider and static org.junit.jupiter.api.Assertions.assertNotNull should be added at the top of the test clas...
null
apache__zookeeper__2047
apache/zookeeper
2,047
defect
15f29b51a22bc51b9d6074cb7f3e72bb00a9753a
dc136a13d5f909179c187aa69607ed7b39568de6
ZOOKEEPER-4736: Fix nio socket fd leak if network service is down
`Socket::close` could only mark the object as closed but leave underlying socket fd open if the socket is registered to nio selector. So, we have to call `Selector::selectNow` in `cleanup` to close underlying socket fd. This could happen if network service get shutdown in socket connecting, say, "ifdown eth0" or...
diff --git a/zookeeper-server/src/main/java/org/apache/zookeeper/ClientCnxnSocketNIO.java b/zookeeper-server/src/main/java/org/apache/zookeeper/ClientCnxnSocketNIO.java index 6cb125dc763..073a5185b49 100644 --- a/zookeeper-server/src/main/java/org/apache/zookeeper/ClientCnxnSocketNIO.java +++ b/zookeeper-server/src/mai...
3
2
1
[{"id": "G0", "claim": "The selector register should be skipped when immediateConnect is true, otherwise the connection may be primed twice.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Write a test for this fd-leak fix, using ClientCnxnSocketFrag...
null
apache__zookeeper__2200
apache/zookeeper
2,200
defect
1880fc0d0a092b2c4e518bc45d5c4e8a77ca4abc
b13e1966efc8006f7b5be813329751939a83c26b
ZOOKEEPER-4819 Fix can't seek for writable tls server if connected to readonly server
ClientCnxn::pingRwServer uses raw socket to issue "isro" 4lw command. This results in unsuccessful handshake to tls server. Use SSLSocket when zookeeper.client.secure is set to true. associated jira issue [ZOOKEEPER-4819](https://issues.apache.org/jira/browse/ZOOKEEPER-4819)
diff --git a/zookeeper-server/src/main/java/org/apache/zookeeper/ClientCnxn.java b/zookeeper-server/src/main/java/org/apache/zookeeper/ClientCnxn.java index b23ce82dc4f..3a7d0af475b 100644 --- a/zookeeper-server/src/main/java/org/apache/zookeeper/ClientCnxn.java +++ b/zookeeper-server/src/main/java/org/apache/zookeeper...
9
9
6
[{"id": "G0", "claim": "The pull request needs tests for its change (the readonly-seek behaviour).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In newSocket, an exception from connect or the TLS handshake could throw and leak the created sslSock.", "c...
null
apache__zookeeper__2211
apache/zookeeper
2,211
defect
9d522642a9c78dafb7084952f9807beb205478c3
0e68d1c8a375e790ca239a07b86c8cb210ab04b5
ZOOKEEPER-4886: Fix observer with small myid can't join SASL quorum
ZK BUG Like QuorumAuthObserverTest#testSmallObserverJoinSASLQuorum When SASL Quorum like: server.11=localhost:11223:11224:participant server.21=localhost:11226:11227:participant server.1=localhost:11229:11230:observer The server.1 can't join quorum.
diff --git a/zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/QuorumCnxManager.java b/zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/QuorumCnxManager.java index eb5346af4bf..9cd4af261e0 100644 --- a/zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/QuorumCnxManager.ja...
4
4
1
[{"id": "G0", "claim": "The comment added above the learner-authentication lookup in QuorumCnxManager.startConnection will not look helpful once this is merged and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The test method...
null
apache__zookeeper__2243
apache/zookeeper
2,243
defect
b86ccf19cf6c32f7e58e36754b6f3534be567727
f9cf10d3a104775e21dff98da66c4f08a85d17bf
ZOOKEEPER-4919: Make ResponseCache a LRU as it supposed to be
The ResponseCache has an inner class called `LRUCache extends LinkedHashMap`. But the LinkedHashMap does not work as an LRU unless the third constructor argument is `true`. This has basically reduced the caching to work as FIFO, if there are more than cache size elements to query then even popular items would have ...
diff --git a/zookeeper-server/src/main/java/org/apache/zookeeper/server/ResponseCache.java b/zookeeper-server/src/main/java/org/apache/zookeeper/server/ResponseCache.java index 5c74caa122b..4a1f87d4939 100644 --- a/zookeeper-server/src/main/java/org/apache/zookeeper/server/ResponseCache.java +++ b/zookeeper-server/src/...
3
3
0
[{"id": "G0", "claim": "Add spaces around the multiplication operator in the createPath loop condition: `cacheSize*2` should be `cacheSize * 2`.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add spaces around the multiplication operator in the checkPath ...
null
apache__zookeeper__2248
apache/zookeeper
2,248
defect
02e93c2554317683bb2bdd6fc242f881937d90d6
3121b0d9a4dbf26f227a6378b6839e9258bc9cc5
ZOOKEEPER-4915: Default znode.container.maxNeverUsedIntervalMs to 5 minutes
This will delete container nodes that never had any children after approximately 5 minutes. > Given this property, you should be prepared to get `KeeperException.NoNodeException` > when creating children inside of this container node Container nodes are supposed to be deleted after all children deleted, so from ...
diff --git a/zookeeper-docs/src/main/resources/markdown/zookeeperAdmin.md b/zookeeper-docs/src/main/resources/markdown/zookeeperAdmin.md index a4fccf1f94e..066366486f2 100644 --- a/zookeeper-docs/src/main/resources/markdown/zookeeperAdmin.md +++ b/zookeeper-docs/src/main/resources/markdown/zookeeperAdmin.md @@ -2146,8 ...
2
2
2
[{"id": "G0", "claim": "Defaulting znode.container.maxNeverUsedIntervalMs to 5 minutes is a breaking change and is not recommended.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request adds no unit tests for the changed default behaviour.", "c...
null
apache__zookeeper__2254
apache/zookeeper
2,254
defect
840a666cea95bb0c1e3cf59a83d9a112ae1c3dbe
bbb34269e351f1f3eecfb4b0f0d7941c72a3a94c
ZOOKEEPER-4925: Fix data loss due to propagation of discontinuous committedLog
There are two variants of `ZooKeeperServer::processTxn`. Those two variants diverge significantly since ZOOKEEPER-3484. `processTxn(Request request)` pops outstanding change from `outstandingChanges` and adds txn to `committedLog` for follower to sync in addition to what `processTxn(TxnHeader hdr, Record txn)` does. Th...
diff --git a/zookeeper-server/src/main/java/org/apache/zookeeper/server/Request.java b/zookeeper-server/src/main/java/org/apache/zookeeper/server/Request.java index c8b404e7928..8b61091719d 100644 --- a/zookeeper-server/src/main/java/org/apache/zookeeper/server/Request.java +++ b/zookeeper-server/src/main/java/org/apac...
7
3
0
[{"id": "G0", "claim": "Add a reference to the ZOOKEEPER-4925 JIRA ticket to the new QuorumSyncTest so people can understand the issue and the fix.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Create the Request object once from pif and reuse it...
null
apache__zookeeper__2292
apache/zookeeper
2,292
defect
bec08dfa0e63ffe7b72bc01a3ea9b0b69a50e3d2
955aedb5b64a5f611afc559b7b318042bce69af6
ZOOKEEPER-4955: Fix intererence with jvm wide ssl properties for ssl.crl and ssl.ocsp
Refs: ZOOKEEPER-4955, apache/zookeeper#2289, stoty/zookeeper#2
diff --git a/zookeeper-docs/src/main/resources/markdown/zookeeperAdmin.md b/zookeeper-docs/src/main/resources/markdown/zookeeperAdmin.md index a4fccf1f94e..5bac829cf25 100644 --- a/zookeeper-docs/src/main/resources/markdown/zookeeperAdmin.md +++ b/zookeeper-docs/src/main/resources/markdown/zookeeperAdmin.md @@ -1768,13...
4
2
0
[{"id": "G0", "claim": "The changed ssl.crl/ssl.ocsp defaults and the decoupling of OCSP from CRL documented for 3.10.0 may not be acceptable in the 3.10 release, and if not a note about the difference with the JDK's handling should be added.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "i...
null
apache__zookeeper__2318
apache/zookeeper
2,318
defect
d8e5217729bfc7303b15bc36b1a6b7f1ecdd07d4
965ca6cb36314c1142a48bd8f0896d816c909411
ZOOKEEPER-3938: Upgrade JLine to 3.25.1
JLine API has been changed between 2x and 3.x quite much so JLineZNodeCompleter and ZooKeeperMain had to be changed quite much.
diff --git a/pom.xml b/pom.xml index 01633810ed3..338921bd93b 100644 --- a/pom.xml +++ b/pom.xml @@ -562,7 +562,7 @@ <netty.version>4.1.127.Final</netty.version> <jetty.version>9.4.57.v20241219</jetty.version> <jackson.version>2.15.2</jackson.version> - <jline.version>2.14.6</jline.version> + <jlin...
2
2
1
[{"id": "G0", "claim": "The dependency update to JLine 3.25.1 needs corresponding license file updates.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request title says \"Upgrade JLine to 3.30.6\" while the change actually upgrades to 3....
null
apache__zookeeper__2328
apache/zookeeper
2,328
defect
97e1789a49481f08259a7d0d15d927e545a445a6
adf28a58eb58ff67ad4fb7472ab5a926bb415e28
ZOOKEEPER-4983: Add client-triggered operation count metrics
This PR contains the following changes for supporting client-triggered op count metrics for more visibility of client triggered load and pattern. - ServerMetrics.java: Added counter definitions and initialization - FinalRequestProcessor.java: Implemented operation counting in the main request processing pipeline ...
diff --git a/zookeeper-server/src/main/java/org/apache/zookeeper/server/FinalRequestProcessor.java b/zookeeper-server/src/main/java/org/apache/zookeeper/server/FinalRequestProcessor.java index 911583f9fc2..15a7a2e056d 100644 --- a/zookeeper-server/src/main/java/org/apache/zookeeper/server/FinalRequestProcessor.java +++...
2
2
0
[{"id": "G0", "claim": "All the new operation-count metrics should get a common prefix (e.g. frp_ or final_request_processor_) so they are naturally grouped when explored in Grafana or dashboards.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 'Opera...
null
apache__zookeeper__2340
apache/zookeeper
2,340
defect
a7fe813aa3fee50c1a653b92e7f91e4c67f977ba
61eae4af46d324c709918ae120abdd67db018583
ZOOKEEPER-4997: Unify construction of TrustManager to dedicated method
Previously, there are three places having similar codes to construct `TrustManager`: 1. `ClientX509Util::getTrustManager` 2. `X509Util::createSSLContextAndOptionsFromConfig` 3. `X509AuthenticationProvider` This commit unifies them to one method.
diff --git a/zookeeper-server/src/main/java/org/apache/zookeeper/common/ClientX509Util.java b/zookeeper-server/src/main/java/org/apache/zookeeper/common/ClientX509Util.java index b035bbfe098..1e50b84257c 100644 --- a/zookeeper-server/src/main/java/org/apache/zookeeper/common/ClientX509Util.java +++ b/zookeeper-server/s...
1
1
1
[{"id": "G0", "claim": "Unit test failures appeared in two distinct builds, and the reviewer asks that they be checked.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
apache__zookeeper__2345
apache/zookeeper
2,345
defect
321f84dfcceba572fc79aff794ad196c7762ea23
0703e20dfc4e3ace035d481ad861002be751153a
ZOOKEEPER-5012: guard zkDb close in QuorumPeer shutdown
Issue: https://issues.apache.org/jira/browse/ZOOKEEPER-5012 Summary - Guard zkDb close in QuorumPeer.shutdown when initialization did not finish. - Add a QuorumPeerTest regression for shutdown without zkDb. Motivation - During restart, shutdown can run before zkDb is initialized; avoid NPE while preserving cleanup. ...
diff --git a/zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/QuorumPeer.java b/zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/QuorumPeer.java index cf6f2f26ce0..296ea05374b 100644 --- a/zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/QuorumPeer.java +++ b/zookeeper...
1
1
0
[{"id": "G0", "claim": "The new test testShutdownWithoutZkDbDoesNotThrow could use assertDoesNotThrow(peer::shutdown) instead of a plain shutdown() call, to signify which method should not throw an Exception.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__zookeeper__2359
apache/zookeeper
2,359
defect
2f0d22bcebf33fba9a45b15454e89f116197f918
fe714fc6238d4510cfb1f1763f5dd0f90ed526ab
ZOOKEEPER-5023: Allow to set TLS version and ciphers for AdminServer
Use the already existing properties for this in AdminServer: - zookeeper.ssl.quorum.enabledProtocols - zookeeper.ssl.quorum.ciphersuites
diff --git a/zookeeper-docs/src/main/resources/markdown/zookeeperAdmin.md b/zookeeper-docs/src/main/resources/markdown/zookeeperAdmin.md index c1e1684aea7..221835cb268 100644 --- a/zookeeper-docs/src/main/resources/markdown/zookeeperAdmin.md +++ b/zookeeper-docs/src/main/resources/markdown/zookeeperAdmin.md @@ -2188,6 ...
3
2
0
[{"id": "G0", "claim": "Don't reuse the existing quorum SSL properties for AdminServer TLS settings; introduce separate admin.ssl.ciphersuites and admin.ssl.enabledProtocols settings instead.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Move the 'Setting...
null
apecloud__kubeblocks__10150
apecloud/kubeblocks
10,150
defect
769e4ceb1a8bdbda998baeeb94792e4bebb5ec83
323f5e09f705131f867a4efa068ea6c6d76f0328
fix(dataprotection): shorten restore-derived restore names
## Summary - shorten generated Restore resource names so restore labels can keep using the exact restore name without truncation - shorten restore-derived PVC and volume names to stay within Kubernetes name limits - keep shared service/headless service naming unchanged; long-name handling stays in restore-private deriv...
diff --git a/pkg/constant/pattern.go b/pkg/constant/pattern.go index 3b7f5523bce..e3af15b76f3 100644 --- a/pkg/constant/pattern.go +++ b/pkg/constant/pattern.go @@ -21,9 +21,12 @@ package constant import ( "fmt" + "hash/fnv" "strings" ) +const kubeNameMaxLength = 63 + // GenerateClusterComponentName generate...
3
3
2
[{"id": "G0", "claim": "shortenKubeName in pkg/constant duplicates the restore-local shortenRestoreDerivedName helper and the PR should reuse one shared implementation instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Shortening the datapr...
null
apecloud__kubeblocks__6387
apecloud/kubeblocks
6,387
defect
a923298ff6ba4ba309af7962bf46dda333af1246
e45609167a38f2de5c1275a00b7ab8e2c239d98d
feat: rsm custom handler command support args params
The rsm custom handler command has supported args params with ut passed. Closes #5884
diff --git a/apis/apps/v1alpha1/clusterdefinition_webhook_test.go b/apis/apps/v1alpha1/clusterdefinition_webhook_test.go index 990c2af8375..4fadd80ab14 100644 --- a/apis/apps/v1alpha1/clusterdefinition_webhook_test.go +++ b/apis/apps/v1alpha1/clusterdefinition_webhook_test.go @@ -92,7 +92,8 @@ var _ = Describe("cluster...
3
3
0
[{"id": "G0", "claim": "The doc comment on the new Args field in Action should begin with `Args` (capitalized like the field name) instead of `args`.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Remove the useless commented-out code left in the ...
null
apecloud__kubeblocks__6416
apecloud/kubeblocks
6,416
defect
b1ffd1592d9f2a6636b6c98e8952b435c36fec22
d014b80d279f0cdaa2fd857907efa3820b12c0a5
feat: support autoTrigger
fix https://github.com/apecloud/kubeblocks/issues/6379
diff --git a/apis/apps/v1alpha1/component_types.go b/apis/apps/v1alpha1/component_types.go index 4c7d04d503e..d6144b91466 100644 --- a/apis/apps/v1alpha1/component_types.go +++ b/apis/apps/v1alpha1/component_types.go @@ -20,10 +20,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. package v1al...
3
2
0
[{"id": "G0", "claim": "Add an `omitempty` json tag to the newly added optional AutoTrigger field in ReloadOptions.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add an `omitempty` json tag to the newly added AutoTrigger.ProcessName field, or m...
null
apecloud__kubeblocks__6907
apecloud/kubeblocks
6,907
defect
ea1cfd256a2a4549dfff53c7d3aaf6ea02db07eb
0dba66d0e63734b4a026263556f3d3fd7cd26385
fix: compatible with clusters that have all definitions set
fix #6903
diff --git a/controllers/apps/transformer_cluster_load_resources.go b/controllers/apps/transformer_cluster_load_resources.go index f8d53e47303b..df601d0aafcd 100644 --- a/controllers/apps/transformer_cluster_load_resources.go +++ b/controllers/apps/transformer_cluster_load_resources.go @@ -76,7 +76,7 @@ func (t *cluste...
1
1
0
[{"id": "G0", "claim": "The conditions in withClusterTopology/withClusterUserDefined are too difficult to understand; add extra parentheses for readability and determine the compatibility scenarios in a separate function.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apecloud__kubeblocks__7091
apecloud/kubeblocks
7,091
defect
5163a18ca1794100dd28de65e3a81cc8c209f163
b5c0a77c4c59b7fe39352e3e0baa53da510d6a5a
fix: instance template role label update failed
fixed #7086
diff --git a/pkg/controller/rsm/pod_role_event_handler.go b/pkg/controller/rsm/pod_role_event_handler.go index 227bf9d1862..ac3b5e52b18 100644 --- a/pkg/controller/rsm/pod_role_event_handler.go +++ b/pkg/controller/rsm/pod_role_event_handler.go @@ -135,14 +135,19 @@ func handleRoleChangedEvent(cli client.Client, reqCtx...
1
1
1
[{"id": "G0", "claim": "Compatibility with 0.8 should be considered: pods created under 0.8 may lack the WorkloadsInstanceLabelKey label the new InstanceSet lookup depends on, leaving name empty and making the lookup (and the role-label update) fail.", "category": "correctness", "verdict": "supported", "priority": "P1"...
null
apecloud__kubeblocks__7192
apecloud/kubeblocks
7,192
defect
f0b7aa3e3cea691a83f700fa1fd19124cb9c13f8
6762c05379d4fb89b79694f2bdca0578432f46d3
fix: set backuppolicy.spec.backofflimit to default value
fix #7122 Set default value to backofflimit when creating backuppolicy APIs
diff --git a/apis/dataprotection/v1alpha1/backuppolicy_types.go b/apis/dataprotection/v1alpha1/backuppolicy_types.go index 130b9aed41f..8df2c9b5147 100644 --- a/apis/dataprotection/v1alpha1/backuppolicy_types.go +++ b/apis/dataprotection/v1alpha1/backuppolicy_types.go @@ -38,6 +38,7 @@ type BackupPolicySpec struct { ...
3
3
0
[{"id": "G0", "claim": "Referencing the code constant DefaultBackOffLimit in the generated user documentation comment is meaningless to users; a kubebuilder default marker (e.g. // +kubebuilder:default=2) should be added instead.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introdu...
null
apecloud__kubeblocks__7228
apecloud/kubeblocks
7,228
defect
a89c4b2dbc5eca85f9279f3dddcf07d9bdd5092d
5b2c872bbf1bb2b77cd1c97e3024020659393a87
fix: check if continuous backup was created via backupschedule
constrain continuous backup created via backupschedule to limit at most one pitr workload
diff --git a/controllers/dataprotection/backup_controller.go b/controllers/dataprotection/backup_controller.go index 1e75ba86ba4..851f2f3a1df 100644 --- a/controllers/dataprotection/backup_controller.go +++ b/controllers/dataprotection/backup_controller.go @@ -387,6 +387,21 @@ func (r *BackupReconciler) prepareBackupRe...
2
2
0
[{"id": "G0", "claim": "Continuous backups should only be allowed to be created by backupSchedule (reword the error and enforce this rule, not just a missing-label error).", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The error message for a failed...
null
apecloud__kubeblocks__7274
apecloud/kubeblocks
7,274
defect
17923bef5e15b743cd01eb7d296e7dfa000de1c4
d480eb55a396350c8eb1960b126b4aae11b8a02c
fix: addon controller adds support for checking if an addon is used by a cluster before deleting or disabling it.
fix #6434 : addon controller adds support for checking if an addon is used by a cluster before deleting or disabling it.
diff --git a/controllers/extensions/addon_controller_stages.go b/controllers/extensions/addon_controller_stages.go index e9f6440b728..7727ec4ecc4 100644 --- a/controllers/extensions/addon_controller_stages.go +++ b/controllers/extensions/addon_controller_stages.go @@ -27,6 +27,11 @@ import ( "time" "github.com/Ma...
4
3
0
[{"id": "G0", "claim": "Reset the import block formatting to the project's standard group order.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Emitting the \"addon is used\" event on every requeue iteration might generate a lot of logs.", "cate...
null
apecloud__kubeblocks__7278
apecloud/kubeblocks
7,278
defect
1fe340139225f421c5330064aacae50219440eb7
93cfec2bca4ba885c0753ca7a005e7fa9a74516e
fix: Fixed null pointer error bug and added addon checks to support Kubernetes versions prior to 1.25.
fix #7114 : Fixed null pointer error bug and added addon checks to support Kubernetes versions prior to 1.25.
diff --git a/controllers/extensions/addon_controller_stages.go b/controllers/extensions/addon_controller_stages.go index e9f6440b728..021426fda83 100644 --- a/controllers/extensions/addon_controller_stages.go +++ b/controllers/extensions/addon_controller_stages.go @@ -280,6 +280,15 @@ func (r *deletionStage) Handle(ctx...
2
2
1
[{"id": "G0", "claim": "The addon type comparison should use a constant instead of the raw string \"Helm\" - ultimately the existing extensionsv1alpha1.HelmType constant rather than a newly defined one.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai...
null
apecloud__kubeblocks__7362
apecloud/kubeblocks
7,362
defect
2d82e5a62bdef0338764e31fa9740806ca0b8781
ed8e877aff08767628b7ba5e62799b6563d5a4f7
fix: record the failed message in the status condition if the restore…
add checkBacupRepo and validate condition to record the failed message in the status condition if the restore failed in new phase
diff --git a/controllers/dataprotection/restore_controller.go b/controllers/dataprotection/restore_controller.go index feccd778c88..a3908ec57a6 100644 --- a/controllers/dataprotection/restore_controller.go +++ b/controllers/dataprotection/restore_controller.go @@ -206,16 +206,20 @@ func (r *RestoreReconciler) newAction...
3
3
0
[{"id": "G0", "claim": "The new warning event in the fatal-check branch duplicates the failed-restore event sent a few lines below, so the same failure sends two events.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The generic-error branch (err !=...
null
apecloud__kubeblocks__7742
apecloud/kubeblocks
7,742
defect
7d0db65f8a249ab659b54567e4591b93d7c7d4dc
95f634e2a7307577bdf5ca6069e0a3050dd052f4
chore: add unit tests for cronjobs handlers httpserver util module
add unit tests for cronjobs handlers httpserver util module
diff --git a/pkg/kb_agent/cronjobs/job_test.go b/pkg/kb_agent/cronjobs/job_test.go new file mode 100644 index 00000000000..1fd0e110374 --- /dev/null +++ b/pkg/kb_agent/cronjobs/job_test.go @@ -0,0 +1,97 @@ +/* +Copyright (C) 2022-2024 ApeCloud Co., Ltd + +This file is part of KubeBlocks project + +This program is free ...
4
4
2
[{"id": "G0", "claim": "The github.com/pkg/errors import should not be placed in its own slot inside the first import group.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "TestExecHandlerDo should mock an executor because relying on commands lik...
null
apecloud__kubeblocks__7743
apecloud/kubeblocks
7,743
defect
5f92e3aa39eb0df691cfc12d9711baae38ff496a
84bd687adcb4e914ec8dbafe26e22473c880d4a7
feat: Support user-specified podUpdatePolicy
resolve https://github.com/apecloud/kubeblocks/issues/7712
diff --git a/apis/apps/v1alpha1/componentdefinition_types.go b/apis/apps/v1alpha1/componentdefinition_types.go index 1a785cd31128..87dceb7d7010 100644 --- a/apis/apps/v1alpha1/componentdefinition_types.go +++ b/apis/apps/v1alpha1/componentdefinition_types.go @@ -24,6 +24,8 @@ import ( rbacv1 "k8s.io/api/rbac/v1" me...
5
5
4
[{"id": "G0", "claim": "An event should also be emitted when the InstanceSet blocks on scale-in because the pod cannot be updated in place under StrictInPlace.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Insert an empty line between the two constants ...
null
apecloud__kubeblocks__8009
apecloud/kubeblocks
8,009
defect
b0ea66eb847730b4975cb89dd1b2616b3c7fd868
ee95e0f0a985d4268b85d2ad156fd370a6d61fe1
chore: incorrect responses of kbagent under different request situations
There are still some bugs in the kb-agent server. 1. When a timeout command is set, sometimes it cannot be started due to the cancellation function being executed in advance. 2. Unable to respond when using non-blocking mode to request the results of an ongoing action multiple times 3. Concurrency problems may occur...
diff --git a/pkg/kbagent/service/action.go b/pkg/kbagent/service/action.go index 7eea194726a..bd6f2fceee1 100644 --- a/pkg/kbagent/service/action.go +++ b/pkg/kbagent/service/action.go @@ -23,11 +23,10 @@ import ( "context" "encoding/json" "fmt" - "strings" - "github.com/go-logr/logr" "github.com/pkg/errors" ...
1
1
1
[{"id": "G0", "claim": "timeOutCancel is nil when no timeout is set, so the goroutine's added `defer timeOutCancel()` calls a nil function and panics; the reviewer asks to check it for nil.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
apecloud__kubeblocks__8018
apecloud/kubeblocks
8,018
defect
d550d0c041000ed9f80a2525206992b456e793dc
16ac3087e286301c18ce1b6d1e39d36c7fa87c18
feat: replace image registry dynamically
## When does image replcaement happen Bascially, replacement will happen when workload resources (like pod, job, deployment, statefulset) are created. Specifically, the replacement will inject to: - instanceset controller, so that it affects: - new cluster creation - cluster upgrade But it won't affec...
diff --git a/controllers/apps/component_controller_test.go b/controllers/apps/component_controller_test.go index 03015985cca..aa2005130e0 100644 --- a/controllers/apps/component_controller_test.go +++ b/controllers/apps/component_controller_test.go @@ -2371,6 +2371,94 @@ var _ = Describe("Component Controller", func() ...
10
8
2
[{"id": "G0", "claim": "When a registry matches but the image namespace is not found in its Namespaces list, the original namespace is used instead of a configured default namespace, and zjx20 asks to add a per-registry DefaultNamespace field that is used when the namespace is not found, falling back to the original na...
null
apecloud__kubeblocks__8045
apecloud/kubeblocks
8,045
defect
6cd94f582af5f612607f595e208d49cff5c68dad
7cd3ce7c1383dffe7ecd09f4b372da9490fd7088
chore: P10K optimizations
1. put revisions parsing result to a LRU cache 2. don't calculate `spec.memberUpdateStrategy` if `spec.roles` is empty 3. cache the parent names and ordinals of the Pods during sorting 4. parsing parent name and ordinal without regex
diff --git a/go.mod b/go.mod index 65d51173f34..ba77671bf7b 100644 --- a/go.mod +++ b/go.mod @@ -24,6 +24,7 @@ require ( github.com/golang/mock v1.6.0 github.com/google/go-cmp v0.6.0 github.com/imdario/mergo v0.3.14 + github.com/json-iterator/go v1.1.12 github.com/klauspost/compress v1.17.8 github.com/kuberne...
3
3
0
[{"id": "G0", "claim": "Add a benchmark test to the ParseParentNameAndOrdinal method.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use RWMutex instead of Mutex for the lru cache's lock so reads can proceed concurrently.", "category": "performance", "v...
null
apecloud__kubeblocks__8168
apecloud/kubeblocks
8,168
defect
49e726e970126592ba1f912a09ea80ca5b1e86c0
73a2c2a5f235fb4f5d736a18c7fcf0e83cd31b97
chore: cancel standard pipe for kbagent
Directly specify the in, out, and err of cmd instead of using pipe and io.Copy. Avoiding the resulting occasional output being shut down.
diff --git a/pkg/kbagent/service/command.go b/pkg/kbagent/service/command.go index 6485ad8f624..97410e304e3 100644 --- a/pkg/kbagent/service/command.go +++ b/pkg/kbagent/service/command.go @@ -26,7 +26,6 @@ import ( "os" "os/exec" "strings" - "sync" "time" "github.com/pkg/errors" @@ -79,7 +78,7 @@ func runC...
3
2
0
[{"id": "G0", "claim": "The stdout and stderr channels in runCommandNonBlocking are allocated with defaultBufferSize (4096) capacity although only one value is ever sent through each, and should be made with capacity 1.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"i...
null
apecloud__kubeblocks__8200
apecloud/kubeblocks
8,200
defect
2c4c9df5ce6f1b1257967134af91b940ace9c38f
46940d1d75b6af8fa690e35ff6d32543ac189fd6
fix: check data field for user provided tls
resolve #8199
diff --git a/pkg/controller/plan/tls_utils.go b/pkg/controller/plan/tls_utils.go index dc54213dc97..eab2aa9022d 100644 --- a/pkg/controller/plan/tls_utils.go +++ b/pkg/controller/plan/tls_utils.go @@ -109,12 +109,12 @@ func CheckTLSSecretRef(ctx context.Context, cli client.Reader, namespace string, if err := cli.Get(...
2
2
2
[{"id": "G0", "claim": "The new Data check should use len(secret.Data[key]) == 0 instead of nil comparison, because a secret created from an empty-string literal stores the value as an empty []byte rather than nil, so an empty TLS data value would pass validation.", "category": "correctness", "verdict": "supported", "p...
null
apecloud__kubeblocks__8388
apecloud/kubeblocks
8,388
defect
bed1a727b8687841588ca46d748bb945c5aabd30
1688fc7793486b017982a9ed3a3c1d07eedbfb17
refactor: extract CharacterType from TLS configuration
Fixes #7555
diff --git a/controllers/apps/transformer_component_tls.go b/controllers/apps/transformer_component_tls.go index ef9f4d2e106e..d447060b7940 100644 --- a/controllers/apps/transformer_component_tls.go +++ b/controllers/apps/transformer_component_tls.go @@ -22,23 +22,21 @@ package apps import ( "context" "fmt" - "ref...
5
5
2
[{"id": "G0", "claim": "The import block that the pull request reordered in controllers/apps/transformer_component_tls.go should be put back in correct go import order.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The now-unused GetTLSKeyWord function s...
null
apecloud__kubeblocks__8816
apecloud/kubeblocks
8,816
defect
5be65e350bc620994d450f49449490e57ba71093
f1017e3b86a939e332a73e443546968d05dba746
chore: support resolving vars from multiple components consistently
close https://github.com/apecloud/kubeblocks-addons/issues/1416
diff --git a/apis/apps/v1/componentdefinition_types.go b/apis/apps/v1/componentdefinition_types.go index d602b67f9c0..da182180b6f 100644 --- a/apis/apps/v1/componentdefinition_types.go +++ b/apis/apps/v1/componentdefinition_types.go @@ -877,6 +877,12 @@ type ClusterObjectReference struct { // MultipleClusterObjectOp...
1
1
0
[{"id": "G0", "claim": "Comments should be added to explain why parallel provisioning is needed when some of the RequireAllComponentObjects fields are set to true.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apecloud__kubeblocks__8904
apecloud/kubeblocks
8,904
defect
8d25fdb5760b5237df7906b852e7e3164530f7dc
fe347c3ee0f40df6ff313d7544d5252567a3a2b6
fix: ensure GeneratePassword returns password with mixed cases
fix #8837 Problem: Mixed-case password doesn't guarantee having both uppercase and lowercase. Fix: Introduce EnsureMixedCase() post-processor to guarantee at least one uppercase and one lowercase. Testing: Verified consistent generation with same seed, plus enforced mixed-case distribution.
diff --git a/pkg/common/password.go b/pkg/common/password.go index 9b9d5428a8f1..487992f9b416 100644 --- a/pkg/common/password.go +++ b/pkg/common/password.go @@ -22,8 +22,10 @@ package common import ( "crypto/sha256" "encoding/binary" + "errors" mathrand "math/rand" "time" + "unicode" "github.com/sethvarg...
2
2
1
[{"id": "G0", "claim": "EnsureMixedCase should ignore the error when the input has fewer than two letters, returning the input unchanged with a nil error instead of errors.New.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "GeneratePassword's noUpper-bas...
null
apecloud__kubeblocks__9029
apecloud/kubeblocks
9,029
defect
31138139fbc74752e27558bd616426ba7fc7cb1d
cb8880fb572cde937b1a57fc8b98d22fc8fdfcf5
chore: support semantic equality for CRs resources
fix issue: https://github.com/apecloud/kubeblocks/issues/8903
diff --git a/controllers/apps/cluster/transformer_cluster_component.go b/controllers/apps/cluster/transformer_cluster_component.go index 41fa68a86e9..fb95fd21d05 100644 --- a/controllers/apps/cluster/transformer_cluster_component.go +++ b/controllers/apps/cluster/transformer_cluster_component.go @@ -189,7 +189,7 @@ fun...
2
2
1
[{"id": "G0", "claim": "The storage resources (volume claim template resources) also need to be dealt with by the new semantic-equality handling, not just Spec.Resources.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "It is recommended to normalize ...
null
apecloud__kubeblocks__9088
apecloud/kubeblocks
9,088
defect
d7e62a8416a86f997acabcbbc3f6435b69542fab
a8abbbf3132281dcdeae4a0ab794fbeb789c7c19
feat: support retaining the latest backup
fix https://github.com/apecloud/kubeblocks/issues/8881
diff --git a/apis/dataprotection/v1alpha1/backuppolicy_types.go b/apis/dataprotection/v1alpha1/backuppolicy_types.go index 15646fa0c8b..c2be781eb3e 100644 --- a/apis/dataprotection/v1alpha1/backuppolicy_types.go +++ b/apis/dataprotection/v1alpha1/backuppolicy_types.go @@ -79,6 +79,11 @@ type BackupPolicySpec struct { ...
2
2
1
[{"id": "G0", "claim": "When a backup is retained as the latest backup, isBackupDeletable should only log it rather than return an error.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The retain-latest check applies only to full backups; it should also ...
null
apecloud__kubeblocks__9349
apecloud/kubeblocks
9,349
defect
2fd339e871c6ee834a31c655c9a645ff001b2e12
b23f24c0d74343a790e9196f338c0ced01b96b21
fix: use /resize subresource in InPlacePodVerticalScaling when supported
fixes https://github.com/apecloud/kubeblocks/issues/8999 since k8s 1.32, a new /resize subresource was introduced to do InPlacePodVerticalScaling
diff --git a/go.mod b/go.mod index 9b543c4d230..52c85b81ad3 100644 --- a/go.mod +++ b/go.mod @@ -37,7 +37,6 @@ require ( github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.19.0 github.com/replicatedhq/troubleshoot v0.57.0 - github.com/rogpeppe/go-internal v1.12.0 github.com/russross/blackfriday...
2
2
1
[{"id": "G0", "claim": "The local variable `equal` should be renamed to `resEqual`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The code should check that the lengths of the old and new pod `Containers` slices match before indexing, to avoid ...
null
apecloud__kubeblocks__9583
apecloud/kubeblocks
9,583
defect
821af4383595b09d722655bdfd3de44e32b5366e
220bc5a6fc0b193e560991e62e6b29098b253a7e
fix: post provision action can wait forever for ComponentReady condition
This PR delays kbagent's ErrPreconditionFailed so that it does not block further transformer build process. Other changes in this PR: - ~~componentAccountProvisionTransformer is moved after componentPostProvisionTransformer. Because accountProvision might rely on postProvision to do some initialization.~~ - ~~a ne...
diff --git a/controllers/apps/cluster/transformer_cluster_component.go b/controllers/apps/cluster/transformer_cluster_component.go index 564b5f84ed4..7c6f3533134 100644 --- a/controllers/apps/cluster/transformer_cluster_component.go +++ b/controllers/apps/cluster/transformer_cluster_component.go @@ -86,7 +86,7 @@ func ...
3
3
1
[{"id": "G0", "claim": "Use the existing DelayedRequeueError mechanism with a suitable requeue delay (e.g. 15 seconds or more when waiting for readiness) instead of introducing a new delayedError type.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Do no...
null
apereo__cas__6852
apereo/cas
6,852
defect
00550abba15eff59bd6d03a8c0ab8f966d7187a1
a3665237a6be2db12eb7d1d91f2ba0e192840960
Preserve map when merging attributes
This PR is to protect data with maps coming from REST attribute repositories.
diff --git a/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/CoreAuthenticationUtils.java b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/CoreAuthenticationUtils.java index f95665866e28..c6dbe0ad5fcc 100644 --- a/core/cas-server-core-authenticati...
3
1
1
[{"id": "G0", "claim": "A hardcoded secret (Generic CLI Secret) was detected in ci/tests/redis/docker-compose.yml at commit 2596ad34f0a8 and should be investigated and remediated.", "category": "security", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Rewrite the guard to po...
null
apereo__cas__7122
apereo/cas
7,122
defect
b6dd54d2f319a8eeeb2ab51530c8e27b9c548c19
0caece44c35330202836445407f10bc5370c176c
Handle clustering for the WebAuthn support
This PR turns the Yubico SDK caches into some dedicated interface with a specific implementation using the web session. It thus allows to turn on clustering by sharing the web session (which is already necessary for the Spring Security framework).
diff --git a/docs/cas-server-documentation/mfa/FIDO2-WebAuthn-Authentication.md b/docs/cas-server-documentation/mfa/FIDO2-WebAuthn-Authentication.md index f68a69368540..44c5bb634862 100644 --- a/docs/cas-server-documentation/mfa/FIDO2-WebAuthn-Authentication.md +++ b/docs/cas-server-documentation/mfa/FIDO2-WebAuthn-Aut...
7
6
4
[{"id": "G0", "claim": "The new WebAuthnCache interface methods are missing Javadoc comments, which the reviewer says will fail the build.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The request object should be passed into the cache as an explic...
null
apereo__cas__7234
apereo/cas
7,234
defect
a2e28f835a23cb2619e17c3638a624784daffaf1
c3b1eab027dfc70ac6fd598a7d4c88540c60e1a9
allowing syncope to handle password management operations for CAS 7.2.x
**Brief description of changes applied** Configuration for syncope password management. In this way, if a user on syncope has `mustChangePassword` enabled, it'll be possible to reset his password with CAS. In more details, if a user try to authenticate with CAS with `mustChangePassword` set on `true`, he will be red...
diff --git a/ci/tests/syncope/run-syncope-server.sh b/ci/tests/syncope/run-syncope-server.sh old mode 100644 new mode 100755 index ef868e36f910..c0ad0b6b6aee --- a/ci/tests/syncope/run-syncope-server.sh +++ b/ci/tests/syncope/run-syncope-server.sh @@ -487,6 +487,21 @@ curl -X 'POST' \ echo -e "\n-----------------\n"...
13
11
3
[{"id": "G0", "claim": "GitGuardian reports a hardcoded secret (Generic Password) in PasswordManagementProperties.java and asks that the finding be investigated and remediated.", "category": "security", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new local variable shoul...
null
apereo__cas__7333
apereo/cas
7,333
defect
ac5386c44bc4e863f065c17d397363a87e46c6e9
c07b6c72db5f52f380c6ef9177d13ab073d3b8ac
Input for current password in password management operation
**USE CASE** Input for current password is not required when you want to reset your password (e.g password forgot). This input is required whenever you want or need to change your password for specific needs or because required by the flows. **SCREENSHOT** 1. Password reset flow (e.g mustchangepassword) ...
diff --git a/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/http/HttpUtils.java b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/http/HttpUtils.java index 5c0eb1ddd479..8ef7d0fc62b0 100644 --- a/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/http/HttpUtils.java +++ b/c...
11
8
3
[{"id": "G0", "claim": "The reviewer does not see where the new PATCH branch of getHttpRequestByMethod is used and questions its addition.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The if statement in passwordMeter.js should be formatted with a spac...
null
apereo__cas__7378
apereo/cas
7,378
defect
a57a9b4095b51070c9c3669bc73db9308b6271ea
fffa9757919da2837266c35d585a934b989cdc3f
Manage security question for reset password on syncope
**USE CASE** When a user requests a password reset (e.g., because they have forgotten their password), it is now possible to use the flow that requires user authentication via a security question also on Apache Syncope
diff --git a/ci/tests/puppeteer/scenarios/pm-reset-password-syncope/script.js b/ci/tests/puppeteer/scenarios/pm-reset-password-syncope/script.js index 89df355728f7..3129bb39d23f 100644 --- a/ci/tests/puppeteer/scenarios/pm-reset-password-syncope/script.js +++ b/ci/tests/puppeteer/scenarios/pm-reset-password-syncope/scr...
7
6
3
[{"id": "G0", "claim": "GitGuardian detected a hardcoded generic password in ci/tests/puppeteer/scenarios/pm-must-change-password-ldap-ad/script.js and asks the author to investigate, remediate and rotate it.", "category": "security", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "cla...
null
apereo__cas__7410
apereo/cas
7,410
defect
996c27caa7fcec14bec20ad0dcb4aec71ac08baa
875456d22f57b6c5b0395633bfc001c1dc379888
Improve the code creation for the MFA simple
When the code length is set to a too small value, it can lead to collisions and unexpected behavior. This PR ensures that a new created code does not already exist and attempts to do that 5 times. A warning is also added to the documentation.
diff --git a/docs/cas-server-documentation/mfa/Simple-Multifactor-Authentication-TokenManagement.md b/docs/cas-server-documentation/mfa/Simple-Multifactor-Authentication-TokenManagement.md index 7d6b67416533..b85854c4c4ae 100644 --- a/docs/cas-server-documentation/mfa/Simple-Multifactor-Authentication-TokenManagement.m...
4
2
1
[{"id": "G0", "claim": "Rework the tests so they end up in DefaultCasSimpleMultifactorAuthenticationServiceTests rather than a separate generation-tests class.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Avoid using mocks in the tests (try not to use m...
null
apereo__cas__8442
apereo/cas
8,442
defect
f624b7e9dbd4c82838469fafc3a7113527db5cea
187863bb089fd5a3646d4d2aa272980250a39fc6
Improve LDAP passwordless support
The current passwordless support for LDAP is quite limited. Some options are missing. This PR improves the LDAP support.
diff --git a/api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/model/support/passwordless/account/PasswordlessAuthenticationLdapAccountsProperties.java b/api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/model/support/passwordless/account/Passwor...
2
2
1
[{"id": "G0", "claim": "TriStateBoolean.fromString should be simplified to TriStateBoolean.valueOf(value.toUpperCase()) so that an unrecognized value crashes instead of silently returning UNDEFINED.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The nest...
null
apereo__cas__8608
apereo/cas
8,608
defect
81234cf667f742f1ba1880d4f0dba94285f8923d
3e520c54e7913f181406b3aa6099cfb6df165334
Password reset for users with weak passwords detected by Syncope password management module
**USE CASE** User on Syncope with `mustChangePassword` flag set on `false` value cannot change their passwords if they are weak for specific policy pattern defined with `cas.authn.pm.core.password-policy-pattern`. **EXAMPLE** 1) Create user `testUser` with password `ThisIsPassword123!`. If `cas.authn.pm.core...
diff --git a/support/cas-server-support-pm-core/src/main/java/org/apereo/cas/pm/impl/DefaultPasswordValidationService.java b/support/cas-server-support-pm-core/src/main/java/org/apereo/cas/pm/impl/DefaultPasswordValidationService.java index 3b17fe648709..4ed227437eb4 100644 --- a/support/cas-server-support-pm-core/src/...
2
2
1
[{"id": "G0", "claim": "All the changes to DefaultPasswordValidationService.isAcceptedByPasswordPolicy (the RegexUtils.createPattern wrap and the removal of the Pattern.COMMENTS flag) should be undone because none are needed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"},...
null
apereo__cas__8644
apereo/cas
8,644
defect
9c9dee8f040f790b361bc713cace70fe53551c54
9db121c9575feadb544613f18e78e22ea71e459a
Add federation support to the CAS server as a RP
This is task 6d of NLnet funding. This PR adds federation supports to the CAS server in the authn delegation. The changeset is quite limited as most changes are handled by pac4j v6.4.0-SNAPSHOT. The new pac4j OIDC configuration in CAS mainly mimics the `OidcFederationProperties` config of pac4j, though it foll...
diff --git a/api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/model/support/pac4j/oidc/BasePac4jOidcClientProperties.java b/api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/model/support/pac4j/oidc/BasePac4jOidcClientProperties.java index 9173e...
21
17
7
[{"id": "G0", "claim": "The List.of defaults for the federation properties will not work because the lists need to be mutable.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "trustAnchors should be a LinkedHashMap instead of a HashMap so the configur...
null
apereo__java-cas-client__153
apereo/java-cas-client
153
defect
94cd857a73ade1409e09ca62ba527e3882f7538e
75d3d3cd8240f880b54d2d7a4761b4db7cfeb81c
CAS Jetty Container Authentication Support
This is intended to satisfy #152. I've done a fair bit of testing with both CASv2 and SAML1.1 support and everything works as it should, including logout for servlet 3.0+ apps by calling `HttpServletRequest#logout()`. Notable implementation details: 1. Gateway is not supported, but I can't imagine a use case for it any...
diff --git a/cas-client-core/src/main/java/org/jasig/cas/client/util/ReflectUtils.java b/cas-client-core/src/main/java/org/jasig/cas/client/util/ReflectUtils.java index 1ec21162e..875959363 100644 --- a/cas-client-core/src/main/java/org/jasig/cas/client/util/ReflectUtils.java +++ b/cas-client-core/src/main/java/org/jas...
4
3
0
[{"id": "G0", "claim": "field.setAccessible(true) in ReflectUtils.getField may need to be set back to false after the get.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Replace the assert keyword checks in CasAuthentication with CommonUtils asserts...
null
apereo__java-cas-client__239
apereo/java-cas-client
239
defect
2af0d7d13c5b405fee0d0e8f170d5ffe0b844dea
7da9bab16d8671c7c73b5e7a9c95acbcdd08a63d
Add option to prevent entity stream consumption
If someone's app cannot handle the SingleSignOutFilter's consumption of entity streams (via a `request.getParameter()` call) on all requests, they can use this option in conjunction with setting up a service logout URL at the CAS server. The filter will now only consume the stream on requests to this path. Fixes ...
diff --git a/README.md b/README.md index 399e26839..e00dd48b8 100644 --- a/README.md +++ b/README.md @@ -663,6 +663,7 @@ The `SingleSignOutFilter` can affect character encoding. This becomes most obvio | `relayStateParameterName` | Defaults to `RelayState` | No | `eagerlyCreateSessions` | Defaults to `true` | No | `...
3
3
0
[{"id": "G0", "claim": "The nullToEmpty helper will likely need to go into CommonUtils rather than staying private in SingleSignOutHandler.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The method name pathMatches does not match its behavior, since it c...
null
apereo__java-cas-client__253
apereo/java-cas-client
253
defect
5c83981d9fe5071d6ecff15742091715274309d8
ff186d0b156246700f0f64d3685f9be429104860
Extract inlined CAS attributes in protocol 3 Ticket Validator
Overrides extractCustomAttributes() method in Cas30ServiceTicketValidator to be able to extract attributes from the CAS validation response that have been inlined. A use case would be a CAS Server acting as a SAML IdP may want to inline attributes in the response in order to use attribute names in Uri format that c...
diff --git a/cas-client-core/src/main/java/org/jasig/cas/client/validation/Cas30ServiceTicketValidator.java b/cas-client-core/src/main/java/org/jasig/cas/client/validation/Cas30ServiceTicketValidator.java index 236ea6e13..160c0ab08 100644 --- a/cas-client-core/src/main/java/org/jasig/cas/client/validation/Cas30ServiceT...
2
2
1
[{"id": "G0", "claim": "The repeated `attribute.getAttributes()` calls in the new extraction loop should be pulled out into a local variable instead of being called again and again.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request...
null
apereo__java-cas-client__260
apereo/java-cas-client
260
defect
06e39dba4464ee6ba6aed077187e7007a2c58454
10b805c697f9d433885c74504a7be5330bc4fd5b
Handle encrypted PGTs
This PR allows the CAS client to handle encrypted PGTs directly sent in the CAS response. For that, a private key must be defined.
diff --git a/README.md b/README.md index 8dfdd0903..ccc14f420 100644 --- a/README.md +++ b/README.md @@ -371,6 +371,7 @@ Validates the tickets using the CAS 2.0 protocol. If you provide either the `acc | `millisBetweenCleanUps` | Startup delay for the cleanup task to remove expired tickets from the storage. Defaults t...
5
4
4
[{"id": "G0", "claim": "The buildPrivateKey helper assumes keys are PEM files; binary keys should be supported too, perhaps by switching to Bouncycastle to load/parse keys for all scenarios.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The value of the...
null
apereo__java-cas-client__49
apereo/java-cas-client
49
defect
826432d3f791557a66e36c6ea79ed484c1ad1865
22d092c72a00aae977bbba7ba998216304b13ca2
CASC-206 Added Authentication Redirect Strategy to support original use case and new Faces support
This seems to have pulled in code that I thought had already been merged back. A minor fix to multi-valued support. Apologies for the double-pull request.
diff --git a/cas-client-core/src/main/java/org/jasig/cas/client/authentication/AuthenticationFilter.java b/cas-client-core/src/main/java/org/jasig/cas/client/authentication/AuthenticationFilter.java index 3ff189620..3807969c9 100644 --- a/cas-client-core/src/main/java/org/jasig/cas/client/authentication/AuthenticationF...
1
1
0
[{"id": "G0", "claim": "The new private classNameToClass helper duplicates existing functionality and should be replaced by, or at least moved into, the existing ReflectionUtils class.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apereo__java-cas-client__87
apereo/java-cas-client
87
defect
e8c78b8dd3e665912f635fe3dacad6a6a2edd29a
3ea2c3a47e49d298731e26a89581865207446a4b
CASC-233 ErrorRedirectFilter Can throw Null Pointer Exception
Problem: the ErrorRedirectFilter assumes there is a root cause and will null pointer if there is not. Solution: Only use the root cause if there is one, otherwise use the original exception. QA Notes: Added unit test to confirm non-root cause error.
diff --git a/cas-client-core/src/main/java/org/jasig/cas/client/util/ErrorRedirectFilter.java b/cas-client-core/src/main/java/org/jasig/cas/client/util/ErrorRedirectFilter.java index 74496c030..dd6f4a288 100644 --- a/cas-client-core/src/main/java/org/jasig/cas/client/util/ErrorRedirectFilter.java +++ b/cas-client-core/...
1
1
0
[{"id": "G0", "claim": "The catch of Throwable in ErrorRedirectFilter.doFilter is excessive and a catch of Exception would be preferable, since catching Throwable makes no sense for errors like OutOfMemoryError or LinkageError.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apereo__java-cas-client__88
apereo/java-cas-client
88
defect
a4d3cb77aaf8b461fc076a0621a447161dbb5748
a7010659f1d42cb3ab965ff8644463d233d87bdd
CASC-231 HttpsURLConnectonFactory is Not Serializable
Problem: THe HttpsURLConnectionFactory is not serializable, causing problems for clients that must serialize the principal (which depends on a ProxyRetriever). Solution: Make the HttpsURLConnectionFactory serializable. QA Notes: added unit test to confirm serialize-deserialize
diff --git a/cas-client-core/src/main/java/org/jasig/cas/client/ssl/HttpURLConnectionFactory.java b/cas-client-core/src/main/java/org/jasig/cas/client/ssl/HttpURLConnectionFactory.java index e280b7a62..8ea298f09 100644 --- a/cas-client-core/src/main/java/org/jasig/cas/client/ssl/HttpURLConnectionFactory.java +++ b/cas-...
6
1
0
[{"id": "G0", "claim": "The hard-coded `serialVersionUID = 1L` should instead be a generated value so that people know there is something to do with it when the class changes.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new test file HttpsU...
null
apex__up__255
apex/up
255
defect
657d6b3853c1b23167e5d3c61b0cd0f025d3b2a4
6510645407bb1ab184f013474822bf79485f3e03
Delegate default region to aws sdk
Close https://github.com/apex/up/issues/250. If `regions` is not present in `up.json` delegates default region to aws sdk. More info about how this process works can be found [here](https://godoc.org/github.com/aws/aws-sdk-go/aws/session#hdr-Shared_Config_Fields) and [here](https://godoc.org/github.com/aws/aws-sdk-g...
diff --git a/.gitignore b/.gitignore index 7b4562c1..efed9540 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,5 @@ testing up-proxy !cmd/up-proxy dist -.idea \ No newline at end of file +.idea +.vscode \ No newline at end of file diff --git a/Gopkg.lock b/Gopkg.lock index 6aa5b261..a7651216 100644 --- a/Gopkg.lo...
1
1
0
[{"id": "G0", "claim": "The Gopkg.lock changes committed by the pull request (e.g. the added github.com/golang/sync entry) can be uncommitted, since running `dep ensure` shows the dependencies are already up to date.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apex__up__627
apex/up
627
defect
7ffbcd38c7257c87c80fa9fc4580c58f4702e39a
972a319e03f7923411253a9f1aee3f13fd576f28
add: robots middleware
Closes #610 Haven't add a way to turn it off. Should I? If so, in what format?
diff --git a/handler/handler.go b/handler/handler.go index 114a5dcc..12d27667 100644 --- a/handler/handler.go +++ b/handler/handler.go @@ -18,6 +18,7 @@ import ( "github.com/apex/up/http/poweredby" "github.com/apex/up/http/redirects" "github.com/apex/up/http/relay" + "github.com/apex/up/http/robots" "github.com...
1
1
0
[{"id": "G0", "claim": "Tj asks to tweak the robots middleware so that in the production stage it returns `next` early (if os.Getenv(\"UP_STAGE\") == \"production\" { return next }) instead of checking the environment inside the request handler, or alternatively delegate that decision to handler.go so the middleware is...
null
apexcharts__apexcharts.js__5185
apexcharts/apexcharts.js
5,185
defect
adc952b1681959c92c21b4d804d107896c06390f
b2f4ca82b21b705a6097320f88516f253ae1d811
feat: support CSS variables as fill colors using `color-mix` for opacity
## Hi there! 👋 First of all — huge thanks for building and maintaining ApexCharts! We've been using it extensively in [Tabler](https://tabler.io), our open-source admin dashboard, and it's been an absolute pleasure to work with. 🙌 This PR adds native CSS custom properties (CSS variables) support for chart fill c...
diff --git a/samples/vanilla-js/misc/css-variables.html b/samples/vanilla-js/misc/css-variables.html new file mode 100644 index 000000000..9e0bc1221 --- /dev/null +++ b/samples/vanilla-js/misc/css-variables.html @@ -0,0 +1,241 @@ +<!DOCTYPE html> +<html lang="en"> + +<head> + <meta charset="UTF-8" /> + <meta name="vi...
2
2
2
[{"id": "G0", "claim": "In Fill.fillPath, `opts.opacity` is applied with a truthy check, so an explicitly set opacity of 0 falls back to the config fill opacity instead of being respected; use an explicit undefined/null check.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}...
null
apexcharts__apexcharts.js__5192
apexcharts/apexcharts.js
5,192
defect
8b00676823318fea860037bc7126bd3b43385231
daf2cc83367bfd9e389d98ebb8bc76d6d1c58beb
ApexCharts : Fix for data labels on first/last bars hidden in mixed charts due to missing barPad offset.
## Summary In mixed charts (bar + line), the first and last bar data labels are incorrectly blanked out. The out-of-bounds check in DataLabels.js compares the label's x-position against the grid boundaries, but does not account for barPadForNumericAxis — the extra horizontal padding ApexCharts adds when bars are plott...
diff --git a/src/modules/DataLabels.js b/src/modules/DataLabels.js index 82b2c99388..027e862ff3 100644 --- a/src/modules/DataLabels.js +++ b/src/modules/DataLabels.js @@ -272,11 +272,15 @@ class DataLabels { if (correctedLabels.textRects) { // fixes #2264 + const barPad = w.globals.barPadForNumericAx...
1
1
1
[{"id": "G0", "claim": "A regression test should be added for this boundary change (e.g., a mixed/combo chart with bar + line where w.globals.barPadForNumericAxis is non-zero) to assert that first/last bar data label text is not blanked when the chart is wide/resized, since the logic currently is not covered by existin...
null
apexcharts__apexcharts.js__5194
apexcharts/apexcharts.js
5,194
defect
8b00676823318fea860037bc7126bd3b43385231
429eb11d8771a77cb46a57791be32579af1f53df
fix: x-axis labels not updating after zoom reset
Fixes #3853 ## Summary This PR fixes an issue where, after zooming a chart using the toolbar buttons or selection zoom and then resetting it via the home button, the chart correctly resets but the x-axis labels remain at the zoomed state. ## Steps to Reproduce 1. Open a chart with zoom enabled. 2. Zoom in...
diff --git a/src/modules/Toolbar.js b/src/modules/Toolbar.js index 3c2ab4f187..aaf320aa0d 100644 --- a/src/modules/Toolbar.js +++ b/src/modules/Toolbar.js @@ -665,6 +665,9 @@ export default class Toolbar { charts.forEach((ch) => { const w = ch.w + // if user is hitting zoom reset button without zoomi...
1
1
1
[{"id": "G0", "claim": "The new test can pass even if handleZoomReset() does not trigger a full update, because chart.zoomX(2, 4) already calls update() and satisfies expect(updateSpy).toHaveBeenCalled() before the reset; the spies should be cleared after zoomX and the reset's own call asserted (e.g. toHaveBeenCalledOn...
null
apify__crawlee-python__107
apify/crawlee-python
107
defect
5e9a851c373aa9d093938019e0fe3fd245dccb33
e3cbccbdee8227ca1a9d14c1a5d85a5c9184c1f1
feat: BeautifulSoupCrawler
- closes #31
diff --git a/Makefile b/Makefile index ea715fb5ab..a7cbbdfe9c 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ clean: install-dev: python3 -m pip install --upgrade pip poetry - poetry install + poetry install -E beautifulsoup poetry run pre-commit install lint: diff --git a/pyproject.toml b/pyproject.to...
8
7
0
[{"id": "G0", "claim": "The install-dev script should prefer the long CLI variant, i.e. `poetry install --extras beautifulsoup` (or the suggested `poetry install --all-extras`) instead of the short `-E beautifulsoup`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i...
null
apify__crawlee-python__118
apify/crawlee-python
118
defect
4974dfa20c7911ee073438fd388e60ba4b2c07db
bd6d4ec24807b072afdca3dc969e839564499579
refactor: HTTP request handling
- closes #114
diff --git a/src/crawlee/basic_crawler/basic_crawler.py b/src/crawlee/basic_crawler/basic_crawler.py index adb4d59b72..408ab027ad 100644 --- a/src/crawlee/basic_crawler/basic_crawler.py +++ b/src/crawlee/basic_crawler/basic_crawler.py @@ -21,9 +21,11 @@ from crawlee.basic_crawler.types import BasicCrawlingContext, Fin...
1
1
0
[{"id": "G0", "claim": "Convert _ignore_http_error_status_codes into a set in BaseHttpClient.__init__, as is already done for _additional_http_error_status_codes.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apify__crawlee-python__120
apify/crawlee-python
120
defect
7a9bc414499751244a06ee3c66fa6834893ab819
a5b6b208f78c56834718cb465fe4225b208449d4
feat: add_requests and enqueue_links context helpers
- closes #5
diff --git a/src/crawlee/basic_crawler/types.py b/src/crawlee/basic_crawler/types.py index 33695ad3e0..e545312e34 100644 --- a/src/crawlee/basic_crawler/types.py +++ b/src/crawlee/basic_crawler/types.py @@ -1,14 +1,55 @@ # ruff: noqa: TCH003 from __future__ import annotations +import re from dataclasses import dat...
1
1
0
[{"id": "G0", "claim": "The setter's `user_data is None` guard could be avoided by making `user_data` itself default to an empty dict (Field default_factory=dict), removing many None checks in request.py.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apify__crawlee-python__1270
apify/crawlee-python
1,270
defect
ad66c821eaa3f34b34abc65e4409487d9115ef88
eecb609fa26e1e4b75b5a562f35d2fd839583bc5
feat: Prevent overloading system memory when running locally
- closes #1232
diff --git a/src/crawlee/_autoscaling/_types.py b/src/crawlee/_autoscaling/_types.py index 3763054a8a..4508b31905 100644 --- a/src/crawlee/_autoscaling/_types.py +++ b/src/crawlee/_autoscaling/_types.py @@ -91,9 +91,15 @@ class MemorySnapshot: current_size: ByteSize """Memory usage of the current Python proce...
4
3
2
[{"id": "G0", "claim": "The hardcoded 0.97 system-wide overload threshold in is_overloaded should be extracted into a named constant.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Tests should cover the new branch in _snapshot_memory that fills...
null
apify__crawlee-python__1274
apify/crawlee-python
1,274
defect
e55cfba99be867629e002f8cb4c39b68c41485bf
65ea2fc2d6bb0834538be1a55aa706c3fe9bd5c3
feat: Persist RequestList state
- closes #99
diff --git a/src/crawlee/_utils/recoverable_state.py b/src/crawlee/_utils/recoverable_state.py index 2cfdcd9ec7..6f2d6003b5 100644 --- a/src/crawlee/_utils/recoverable_state.py +++ b/src/crawlee/_utils/recoverable_state.py @@ -1,6 +1,6 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Generic,...
10
4
0
[{"id": "G0", "claim": "The docstring should explain how the 'explicit_only' value of persistence_enabled differs from True.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The camelCase pydantic aliases on RequestListState may be unnecessary and s...
null
apify__crawlee-python__142
apify/crawlee-python
142
defect
acdb1a1ad5130f4a8d11b4f87f69f62902d499f0
20b2cb0794fdeca56388c44abd342d15a690b70a
feat: Capture statistics about the crawler run
- closes #97 TODO - [x] public interface of `Statistics` class - [x] error tracking - [x] persistence - [x] test coverage - [x] tracking the statistics in `BasicCrawler` - [x] periodic logging
diff --git a/src/crawlee/basic_crawler/basic_crawler.py b/src/crawlee/basic_crawler/basic_crawler.py index 9aa0160198..3f3a32b2e1 100644 --- a/src/crawlee/basic_crawler/basic_crawler.py +++ b/src/crawlee/basic_crawler/basic_crawler.py @@ -30,7 +30,6 @@ from crawlee.basic_crawler.router import Router from crawlee.basi...
1
1
0
[{"id": "G11", "claim": "`FinalStatistics` should have a user-friendly `__repr__`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apify__crawlee-python__1474
apify/crawlee-python
1,474
defect
4379d873fbc9d0e9179f5e25a2a2c1cda038ca63
1b440709b4a20c213fe9a1ad0ba255f4afbbdb4b
fix: Only apply requestHandlerTimeout to request handler
I stumbled upon this when working on ContextPipeline for the JS version. I'm eager to hear your thoughts 🙂
diff --git a/src/crawlee/crawlers/_basic/_basic_crawler.py b/src/crawlee/crawlers/_basic/_basic_crawler.py index cdf7e527e2..3d1b74837d 100644 --- a/src/crawlee/crawlers/_basic/_basic_crawler.py +++ b/src/crawlee/crawlers/_basic/_basic_crawler.py @@ -1483,12 +1483,15 @@ async def __run_task_function(self) -> None: ...
2
1
1
[{"id": "G0", "claim": "Tests should be added covering the correct application of the timeout.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G3", "claim": "Parts of the context pipeline can now run without any time limit, so the context pipeline can get stuck.", "cat...
null
apify__crawlee-python__1585
apify/crawlee-python
1,585
defect
826adbf37d285c9351c5d11b6f47638b213f9281
d0c9a7dd8591a31f8dfeaf0332bb9cb0b290d15f
fix: Protect `Request` from partial mutations on request handler failure
### Description - Protect `Request` from partial mutations on request handler failure relevant with `AdaptivePlaywrightCrawler` ### Issues - Closes: #1514
diff --git a/src/crawlee/_types.py b/src/crawlee/_types.py index da11adae5d..a746a880af 100644 --- a/src/crawlee/_types.py +++ b/src/crawlee/_types.py @@ -2,6 +2,7 @@ import dataclasses from collections.abc import Callable, Iterator, Mapping +from copy import deepcopy from dataclasses import dataclass from typing...
7
5
2
[{"id": "G0", "claim": "Isolating the session and reverting its state when a handler fails may revert changes made to the session by parallel handlers sharing the same session (race condition).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "If any c...
null
apify__crawlee-python__1594
apify/crawlee-python
1,594
defect
131f1f085d39bfea267fe68c166d99c5cf1c98c2
6afdb345275f643419b09f4da086e78a581330b7
chore: Reduce the number of warnings in tests
### Description - Reduce the number of warnings in tests
diff --git a/pyproject.toml b/pyproject.toml index 1f5a619268..ae6c029e51 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -221,6 +221,10 @@ timeout = 300 markers = [ "run_alone: marks tests that must run in isolation", ] +filterwarnings = [ + "ignore:websockets.legacy is deprecated:DeprecationWarning", + ...
2
2
0
[{"id": "G0", "claim": "The reviewer is unsure about silently suppressing the Uvicorn/websockets deprecation warnings via the new filterwarnings entries in pyproject.toml and asks that a comment explaining why they were added be placed there.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "i...
null
apify__crawlee-python__1605
apify/crawlee-python
1,605
defect
60e39a33c937c04f9204eb7e72abf9bcc702563c
6580a0329b61d76e7aab4f2755274fa8e7595d56
fix: Fix short error summary
### Description - Wrap Timeout errors raised by user-defined handler by `UserHandlerTimeoutError` (Otherwise it would be misunderstood as `Request handler timed out after 60 s`) - Ensure that `get_one_line_error_summary_if_possible` does not access a non-existing index ### Issues - Closes: #1602 ### Testin...
diff --git a/src/crawlee/crawlers/_basic/_basic_crawler.py b/src/crawlee/crawlers/_basic/_basic_crawler.py index 5b3e797d41..25f887ba4b 100644 --- a/src/crawlee/crawlers/_basic/_basic_crawler.py +++ b/src/crawlee/crawlers/_basic/_basic_crawler.py @@ -59,6 +59,7 @@ RequestHandlerError, SessionError, UserD...
1
1
0
[{"id": "G0", "claim": "The `import crawlee.router` added to _logging_utils.py may be unnecessary and should be dropped if so.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apify__crawlee-python__1607
apify/crawlee-python
1,607
defect
826adbf37d285c9351c5d11b6f47638b213f9281
cc85532b90c8fbe6b8798ea1abc912a0ff02e72f
fix: Respect `enqueue_strategy` after redirects in `enqueue_links`
### Description - Sets the `enqueue_strategy` attribute in `Request` during `enqueue_links` processing, for correct check of requests that have completed redirection. ### Issues - Closes: #1606
diff --git a/src/crawlee/crawlers/_abstract_http/_abstract_http_crawler.py b/src/crawlee/crawlers/_abstract_http/_abstract_http_crawler.py index a3e303f088..6c1fbb63f8 100644 --- a/src/crawlee/crawlers/_abstract_http/_abstract_http_crawler.py +++ b/src/crawlee/crawlers/_abstract_http/_abstract_http_crawler.py @@ -191,6...
2
1
0
[{"id": "G0", "claim": "The change makes enqueue_links overwrite an enqueue_strategy explicitly set on a passed-in Request with the strategy kwarg, and the reviewer expects context.request.enqueue_strategy to be used as the default instead, so the precedence among the three strategy sources (context.request.enqueue_str...
null
apify__crawlee-python__1669
apify/crawlee-python
1,669
defect
0a0995c4c7a3c2fcc29fbe3cfc2fd5d76ab63592
31e16d2c0a6f4d75d8d2c0ba4a02493b85a9ec39
fix: Do not share state between different crawlers unless requested
### Description - Introduces a new argument `id` for `BasicCrawler`. This argument controls the shared state. - Each new instance of the `BasicCrawler` gets an automatically incremented `id` to avoid unintentional sharing of state between crawlers. - If two crawlers should use the same state, then it is possible t...
diff --git a/src/crawlee/crawlers/_basic/_basic_crawler.py b/src/crawlee/crawlers/_basic/_basic_crawler.py index be489f9c9a..df93168603 100644 --- a/src/crawlee/crawlers/_basic/_basic_crawler.py +++ b/src/crawlee/crawlers/_basic/_basic_crawler.py @@ -266,6 +266,7 @@ class BasicCrawler(Generic[TCrawlingContext, TStatist...
7
3
0
[{"id": "G0", "claim": "Making the single `state` key this prominent in the API (via `crawler_id`) feels weird; the option would make more sense if it were about the entire KVS (so e.g. `get_key_value_store` also returns it), i.e. explicitly passing the store rather than a state-scoped id.", "category": "design", "verd...
null
apify__crawlee-python__1674
apify/crawlee-python
1,674
defect
dc380a5bb7883cc7c1bb235ee6783bda618c5444
2d3fe823d6c976c7a640187f9e2bbe8f1a101017
fix: Fix adding extra link for `EnqueueLinksFunction` with `limit`
### Description - fix adding extra link for `EnqueueLinksFunction` with `limit` ### Issues - Closes: #1673 ### Testing - Add tests for `enqueue_links` with `limit` argument
diff --git a/src/crawlee/crawlers/_basic/_basic_crawler.py b/src/crawlee/crawlers/_basic/_basic_crawler.py index be489f9c9a..077cc23c9d 100644 --- a/src/crawlee/crawlers/_basic/_basic_crawler.py +++ b/src/crawlee/crawlers/_basic/_basic_crawler.py @@ -1057,7 +1057,7 @@ def _enqueue_links_filter_iterator( ...
1
1
0
[{"id": "G0", "claim": "Restructure the limit handling in _enqueue_links_filter_iterator into a nested condition so that the limit is not checked for None twice.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apify__crawlee-python__1715
apify/crawlee-python
1,715
defect
8c0dae65e1d700e60c3f631255c3696c457dcb01
7fc246386904c3df9a23b38b45b8ee4a38e0e2ff
feat: Dynamic memory snapshots
### Description - Add `Ratio` type to represent the maximum relative available memory of the system. - Allow to initialize the `Snapshotter.max_memory_size` with either `Ratio` (dynamic memory) or `ByteSize` (fixed memory) - When `Ratio` is used, `Snapshotter` will take into account the current available memory. (...
diff --git a/src/crawlee/_autoscaling/_types.py b/src/crawlee/_autoscaling/_types.py index b231c9062d..aa59e45fb0 100644 --- a/src/crawlee/_autoscaling/_types.py +++ b/src/crawlee/_autoscaling/_types.py @@ -2,11 +2,9 @@ from dataclasses import dataclass, field from datetime import datetime, timedelta, timezone -fro...
10
9
5
[{"id": "G0", "claim": "The docstring of `available_memory_ratio` in `Configuration` should also mention the dynamic memory scaling behavior.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "`Configuration.available_memory_ratio` should get `gt=0.0`...
null
apify__crawlee-python__1735
apify/crawlee-python
1,735
defect
309fb38a5f624d70421dbe71a288314b3ce76a85
093478768381f43c125b6918ab440a453df1065d
fix: Fix `Snapshotter` handling of out of order samples
### Description: - Update `test_snapshot_pruning_removes_outdated_records` to remove the expected source of flaky behavior - The root cause of the flaky test behavior is a design flaw in snapshot handling: `event_manager.on(event=Event.SYSTEM_INFO, listener=self._snapshot_cpu)` adds `self._snapshot_cpu` listener, bu...
diff --git a/tests/unit/_autoscaling/test_snapshotter.py b/tests/unit/_autoscaling/test_snapshotter.py index 9d26e018e7..e6a5dc9a8a 100644 --- a/tests/unit/_autoscaling/test_snapshotter.py +++ b/tests/unit/_autoscaling/test_snapshotter.py @@ -213,9 +213,6 @@ async def test_methods_raise_error_when_not_active() -> None:...
3
3
1
[{"id": "G0", "claim": "The CI run fails: test_snapshot_pruning_removes_outdated_records leaves 3 snapshots instead of 2 (assert 3 == 2), so the test this PR un-skipped still fails.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The Snapshotter's pr...
null