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
strongbox__strongbox__1576
strongbox/strongbox
1,576
defect
81c56d810a87ea67067670dc62683a65aa072679
c81a8ba7bb53c69d9a22ba935469e427ba61d50f
Issue 1538: Implement support for generating test artifacts with a specified size for Pypi
# Pull Request Description This pull request closes #1538 . # Acceptance Test * [x] Building the code with `mvn clean install -Dintegration.tests` still works. * [x] Running `mvn spring-boot:run` in the `strongbox-web-core` still starts up the application correctly. * [x] Building the code and running the `s...
diff --git a/strongbox-storage/strongbox-storage-layout-providers/strongbox-storage-pypi-layout-provider/src/test/java/org/carlspring/strongbox/artifact/generation/PyPiArtifactGeneratorTest.java b/strongbox-storage/strongbox-storage-layout-providers/strongbox-storage-pypi-layout-provider/src/test/java/org/carlspring/st...
16
16
0
[{"id": "G0", "claim": "The @PypiTestArtifact annotation arguments in testArtifactGeneration should be split one per line and aligned under the first argument, as laid out in the comment.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The openin...
null
strongbox__strongbox__1598
strongbox/strongbox
1,598
defect
3390cef8a9d87b9e7ca9483390daa9ee832374d1
0d0590fdf7916ae6edd1a7d2e7045fcc87e07bc5
Issue 1569: Integration Tests fail in strongbox-web-core due to messa…
# Pull Request Description This pull request closes #1569 # Acceptance Test * [x] Building the code with `mvn clean install -Dintegration.tests` still works. * [x] Running `mvn spring-boot:run` in the `strongbox-web-core` still starts up the application correctly. * [x] Building the code and running the `st...
diff --git a/strongbox-web-core/src/test/java/org/carlspring/strongbox/forms/configuration/RepositoryFormTestIT.java b/strongbox-web-core/src/test/java/org/carlspring/strongbox/forms/configuration/RepositoryFormTestIT.java index b5be379c8b..d179b97539 100644 --- a/strongbox-web-core/src/test/java/org/carlspring/strongb...
2
2
0
[{"id": "G0", "claim": "The try/catch braces in the new getPatternLocalisedMessage helper should open on new lines, per the project coding convention.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The chained PlatformResourceBundleLocator call ...
null
strongbox__strongbox__1610
strongbox/strongbox
1,610
defect
ee9195331dc83d9f04c74e92672aabf7cd7b1937
138ca9931befddfcb48b1a43ef5dea02c157b87b
Issue 1543: Implement support for the npm unpublish command
# Pull Request Description This pull request closes #1543 . # Acceptance Test * [x] Building the code with `mvn clean install -Dintegration.tests` still works. * [x] Running `mvn spring-boot:run` in the `strongbox-web-core` still starts up the application correctly. * [x] Building the code and running the `s...
diff --git a/strongbox-storage/strongbox-storage-core/src/main/java/org/carlspring/strongbox/storage/repository/Repository.java b/strongbox-storage/strongbox-storage-core/src/main/java/org/carlspring/strongbox/storage/repository/Repository.java index 03e0a97716..5c92ac7c5c 100644 --- a/strongbox-storage/strongbox-stora...
12
11
2
[{"id": "G0", "claim": "The pull request should not be merged until a couple of integration tests for the unpublish functionality have been implemented in the strongbox-web-integration-tests repository, to be used as a check that the functionality works.", "category": "testing", "verdict": "uncertain", "priority": "P1"...
null
strongbox__strongbox__1625
strongbox/strongbox
1,625
defect
130c9f37d55fd3bdc0253cfaadc8eb8d891d7310
967d55736c66fb57dcabed99edc274c4023bdb91
Implemented PypiArtifact Controller
# Pull Request Description This pull request closes #811 , is required for strongbox/strongbox-web-integration-tests#59. # Acceptance Test * [x] Building the code with `mvn clean install -Dintegration.tests` still works. * [x] Running `mvn spring-boot:run` in the `strongbox-web-core` still starts up the appli...
diff --git a/strongbox-storage/strongbox-storage-layout-providers/strongbox-storage-pypi-layout-provider/src/main/java/org/carlspring/strongbox/artifact/coordinates/PypiArtifactCoordinates.java b/strongbox-storage/strongbox-storage-layout-providers/strongbox-storage-pypi-layout-provider/src/main/java/org/carlspring/str...
12
10
1
[{"id": "G0", "claim": "The pull request should provide unit tests for the new Pypi controller functionality.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "It would help to also create tests for this in the strongbox-web-integration-tests module, altho...
null
strongbox__strongbox__1637
strongbox/strongbox
1,637
defect
96249bef193810b677b8776f56197d77d06a8495
c9b86c70e8fd490e37cc547aa5930ef1dbfa4c66
Adding Multipart File support for putPackage NugetArtifactController
# Pull Request Description This pull request closes #1636 # Acceptance Test * [x] Building the code with `mvn clean install -Dintegration.tests` still works. * [x] Running `mvn spring-boot:run` in the `strongbox-web-core` still starts up the application correctly. * [x] Building the code and running the `str...
diff --git a/strongbox-web-core/src/main/java/org/carlspring/strongbox/controllers/layout/nuget/NugetArtifactController.java b/strongbox-web-core/src/main/java/org/carlspring/strongbox/controllers/layout/nuget/NugetArtifactController.java index ae4f7fa7e6..945a39eb32 100644 --- a/strongbox-web-core/src/main/java/org/ca...
5
3
2
[{"id": "G0", "claim": "Use REST Assured's mockMvc support instead of Spring MockMvc in NugetArtifactControllerTest, as before and in all other tests (later: remove the Spring MockMvc code entirely).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":...
null
strongbox__strongbox__1660
strongbox/strongbox
1,660
defect
98a081583ba49d6e358d6a209378a8dbfa12af96
6887760da091bb1134a01394621d3a8948c8383f
Issue 1656: Upgrade spring-webmvc to version 5.2.3
# Pull Request Description This pull request closes #1656 Fixed test cases `NugetArtifactControllerTest`, `MavenArtifactControllerTest` and `LayoutRequestMappingTest` # Acceptance Test * [x] Building the code with `mvn clean install -Dintegration.tests` still works. * [x] Running `mvn spring-boot:run` in ...
diff --git a/strongbox-web-core/src/test/java/org/carlspring/strongbox/controllers/layout/maven/MavenArtifactControllerTest.java b/strongbox-web-core/src/test/java/org/carlspring/strongbox/controllers/layout/maven/MavenArtifactControllerTest.java index ad6efe2429..179953e5d8 100644 --- a/strongbox-web-core/src/test/jav...
3
3
1
[{"id": "G0", "claim": "The reviewer asks what the purpose is of rewriting the NuGet search-test assertions from rest-assured body() matchers to XmlPath-based assertEquals, i.e. requests justification for the rewrite.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"...
null
strongbox__strongbox__1670
strongbox/strongbox
1,670
defect
30b65700a68560f136c3084e0857d43b56588067
a098c53d990c5820ad11ccd72b88408ab9946aaa
LDAP Authorization test Cases Fix
# Pull Request Description This pull request closes #1614, #960 # Acceptance Test * [x] Building the code with `mvn clean install -Dintegration.tests` still works. * [x] Running `mvn spring-boot:run` in the `strongbox-web-core` still starts up the application correctly. * [x] Building the code and running t...
diff --git a/strongbox-security/strongbox-authentication-providers/strongbox-ldap-authentication-provider/src/main/java/org/carlspring/strongbox/authentication/api/ldap/LdapAuthenticationConfigurationManager.java b/strongbox-security/strongbox-authentication-providers/strongbox-ldap-authentication-provider/src/main/jav...
4
3
1
[{"id": "G0", "claim": "Enable the disabled ldapConfigurationTestShouldFailWithWithInvalidManagerDn test, since with the new manager dn/password settings it should pass now.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Why was the manager password map...
null
strongbox__strongbox__1675
strongbox/strongbox
1,675
defect
89e8866db42963517febcce3a87ff665a79c1ae8
93a13538fc22a5500bbd92952557f5af9c6070f1
Out of Service Repository Handling
# Pull Request Description This pull request closes #1664 # Acceptance Test * [x] Building the code with `mvn clean install -Dintegration.tests` still works. * [x] Running `mvn spring-boot:run` in the `strongbox-web-core` still starts up the application correctly. * [x] Building the code and running the `st...
diff --git a/strongbox-web-core/src/main/java/org/carlspring/strongbox/web/RepositoryMapping.java b/strongbox-web-core/src/main/java/org/carlspring/strongbox/web/RepositoryMapping.java index a6a5919260..cacaf26032 100644 --- a/strongbox-web-core/src/main/java/org/carlspring/strongbox/web/RepositoryMapping.java +++ b/st...
6
6
3
[{"id": "G0", "claim": "The new annotation attribute should be named allowOutOfServiceRepository with a default of false instead of inServiceRepository defaulting to true.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The extra indentation the change in...
null
strongbox__strongbox__1750
strongbox/strongbox
1,750
defect
fa7f2df74a7a21505f5647decd2dbf34c31fe0f0
6795f32d0689c7e87ed80b46f46bd22a31c5d47c
Fix for AuthorizationConfigControllerTestIT#roleShouldBeDeleted Test case
# Pull Request Description This pull request closes #1744 # Acceptance Test * [x] Building the code with `mvn clean install -Dintegration.tests` still works. * [x] Running `mvn spring-boot:run` in the `strongbox-web-core` still starts up the application correctly. * [x] Building the code and running the `st...
diff --git a/strongbox-security/strongbox-user-management/src/main/java/org/carlspring/strongbox/repositories/UserRepository.java b/strongbox-security/strongbox-user-management/src/main/java/org/carlspring/strongbox/repositories/UserRepository.java index 108052ec03..ef620dba27 100644 --- a/strongbox-security/strongbox-...
1
1
1
[{"id": "G0", "claim": "The S1 approach — getting the roleShouldBeDeleted test to pass by replacing the Gremlin role query with an in-memory stream filter workaround in findUsersWithRole — is not what needs to be done.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
strongbox__strongbox__1908
strongbox/strongbox
1,908
defect
2ca4eef0126b5429d2e739eb3211aa1b08788323
bfaf246a6a172dad20172a2d9d19c52c5eb13fdf
Backport the fixes related to replacing ApacheDS with UnboundID from pull #1783 to the master #1846 And Upgrade our UnboundID dependencies from 4.0.9 to 5.1.1 #1858 #105
# Pull Request Description This pull request fixes #1846 . # Acceptance Test * [x] Building the code with `mvn clean install -Dintegration.tests` still works. * [x] Running `mvn spring-boot:run` in the `strongbox-web-core` still starts up the application correctly. * [x] Building the code and running the `st...
diff --git a/pom.xml b/pom.xml index 7131dd0c02..f284446155 100644 --- a/pom.xml +++ b/pom.xml @@ -8,7 +8,7 @@ <parent> <groupId>org.carlspring.strongbox</groupId> <artifactId>strongbox-parent</artifactId> - <version>1.0-SNAPSHOT</version> + <version>1.0-issue-1846-SNAPSHOT</version...
6
6
2
[{"id": "G0", "claim": "The newly added unboundid-ldapsdk dependency in strongbox-cron/strongbox-cron-tasks/pom.xml is not properly indented, and carlspring's suggestion block re-indents the tabbed artifactId line with spaces.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduc...
null
strongbox__strongbox__229
strongbox/strongbox
229
defect
918024c202ea09f28fdd5e6641e0b3332469efe7
4963085b05f1479ef2210659fef64cad07a48891
SB-603 Implement per repository access
Implementation notes: - If user has no general privilege for some action but features defined for him under security-users.xml config file, dynamic voting system will try to grant access for him - During first authentication phase (related to Spring Filters) request URL will be pre-saved and stored under principal ...
diff --git a/strongbox-resources/strongbox-common-resources/src/main/resources/logback.xml b/strongbox-resources/strongbox-common-resources/src/main/resources/logback.xml index 6246dc4303..391da0939a 100644 --- a/strongbox-resources/strongbox-common-resources/src/main/resources/logback.xml +++ b/strongbox-resources/str...
16
8
2
[{"id": "G0", "claim": "The Features class name is too broad and generic, and the class should be renamed to something more meaningful such as UserAccessModel.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The <features> element in security-use...
null
strongbox__strongbox__435
strongbox/strongbox
435
defect
ee036aa3d27c8210354518b4c4b8c5642de48cfa
11f099ed5227b7cf3a908b6e9e785b7d9c9f0c93
SB-749: Implement a raw layout provider
- Initial implementation. - Minor `*ArtifactManagementService` refactoring.
diff --git a/strongbox-commons/src/main/java/org/carlspring/strongbox/artifact/coordinates/AbstractArtifactCoordinates.java b/strongbox-commons/src/main/java/org/carlspring/strongbox/artifact/coordinates/AbstractArtifactCoordinates.java index a28db1954a..f5cef8a03a 100644 --- a/strongbox-commons/src/main/java/org/carls...
3
2
2
[{"id": "G0", "claim": "Exceptional return value of java.io.File.mkdirs() is ignored in RawRepositoryManagementStrategy.createRepositoryStructure(String, String).", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new setMediaTypeHeader calls Files....
null
strongbox__strongbox__436
strongbox/strongbox
436
defect
ee036aa3d27c8210354518b4c4b8c5642de48cfa
b0aab93c86fc815395736fc6fe08707ba3661f15
Issue #434 : Merge the NugetHierarchicalArtifactCoordinates into the NugetArtifactCoordinates and carry out minor refactoring
Issue #434 434 merged NugetHierarchicalArtifactCoorfinates Class into NugetArtifactCoordinates Class Refactored "Nuget Hierarchical" into "NuGet" Refactored "NUGET_HIERARCHICAL" into "NUGET"
diff --git a/strongbox-resources/strongbox-storage-resources/strongbox-storage-api-resources/src/main/resources/etc/conf/strongbox.xml b/strongbox-resources/strongbox-storage-resources/strongbox-storage-api-resources/src/main/resources/etc/conf/strongbox.xml index 28aa63d7a0..116a06bb8f 100644 --- a/strongbox-resources...
3
3
0
[{"id": "G0", "claim": "Fix the issue Sonar reported on this pull request — the new String(byte[]) call in NugetLayoutProvider's toBase64 that decodes with the platform default charset instead of an explicit one.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1...
null
strongbox__strongbox__454
strongbox/strongbox
454
defect
80e6bfaac72cf62fb249f7bc0418d3f7912c87d2
3b5a04d8fe2f443dc9d86deaac0cd4fd060022f4
Implement a Spring controller that returns the list of files and directories in a path as JSON
The /browse endpoint allows to fetch storage, repository, and repository file contents in JSON format. Served paths are in the following format: - Storage list: `/browse` - Repository list: ` /browse/{storage}` - Repository root contents: `/browse/{storage}/{repository}` - Repository pat...
diff --git a/strongbox-web-core/src/main/java/org/carlspring/strongbox/controllers/BrowseController.java b/strongbox-web-core/src/main/java/org/carlspring/strongbox/controllers/BrowseController.java new file mode 100644 index 0000000000..1b2aa69d0e --- /dev/null +++ b/strongbox-web-core/src/main/java/org/carlspring/str...
5
5
3
[{"id": "G0", "claim": "Inject the project's custom ObjectMapper bean via @Inject instead of creating a new ObjectMapper() at each call site.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The @ApiResponse documentation says error responses return code 4...
null
strongbox__strongbox__557
strongbox/strongbox
557
defect
c94f1c81a658249c9349ff0f70da2328050c3363
3926fb948312c4a8ae6c8ac4da2c7131bef40324
Made .index inside Maven 2 Repositories browsable #548
#548 Made .index browsable inside Maven 2 Repositories !
diff --git a/strongbox-web-core/src/main/java/org/carlspring/strongbox/controllers/BaseArtifactController.java b/strongbox-web-core/src/main/java/org/carlspring/strongbox/controllers/BaseArtifactController.java index 93af1ec614..20666ca850 100644 --- a/strongbox-web-core/src/main/java/org/carlspring/strongbox/controlle...
1
1
1
[{"id": "G0", "claim": "Extract a template method from the browseability condition in BaseArtifactController.probeForDirectoryListing and override it in MavenArtifactController, so the base controller stays generic without repository-layout-specific information and the code is not repeated.", "category": "design", "ver...
null
strongbox__strongbox__583
strongbox/strongbox
583
defect
dffc32d609576372bddd47616a30ef597abbdf70
aecf1f7f5c80a8145e3179f024c821d358b26c06
Implemented browsing in BrowseController under /browse
Implemented browsing under /browse. All folders are redirected to /browse again from browsing. All files are redirected to /storages for download. Note: File/Artifact download not supported for Nuget currently as NugetArtifactController does not support direct file download currently. Test this with accept-text/htm...
diff --git a/strongbox-web-core/src/main/java/org/carlspring/strongbox/controllers/BrowseController.java b/strongbox-web-core/src/main/java/org/carlspring/strongbox/controllers/BrowseController.java index 4e3c76c32e..f92d4eb6a3 100644 --- a/strongbox-web-core/src/main/java/org/carlspring/strongbox/controllers/BrowseCon...
10
10
5
[{"id": "G0", "claim": "The browse endpoints should list storages and repositories from the configuration instead of treating the directories on the file system as storages/repositories, since disabled storages should not be browsable.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "int...
null
strongbox__strongbox__668
strongbox/strongbox
668
defect
ec791900424202441fad25d42d0768a687700177
b980c7bbba46147ff566a08c0ef78744fc3bcf87
Add methods for listing the available artifact coordinate validators in the ArtifactCoordinateValidatorsManagementController.
Closes #619. Moves `ArtifactCoordinateValidatorsManagementController` to configuration folder. Adds methods to `ArtifactCoordinateValidatorRegistry`
diff --git a/strongbox-storage/strongbox-storage-api/src/main/java/org/carlspring/strongbox/storage/validation/artifact/ArtifactCoordinatesValidatorRegistry.java b/strongbox-storage/strongbox-storage-api/src/main/java/org/carlspring/strongbox/storage/validation/artifact/ArtifactCoordinatesValidatorRegistry.java index a...
1
1
0
[{"id": "G0", "claim": "The new test methods getACollectionOfArtifactCoordinateValidators and getAArtifactCoordinateValidatorsForLayoutProvider should place their opening braces on a new line.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
strongbox__strongbox__971
strongbox/strongbox
971
defect
09d3831f04cc02b3c029fe064b0a984684649687
ed1653993432e58e70468622bc55bd0ac1f37ba9
Issue 955: Refactor CronTaskController to use Form Validation and make sure it follows the How-To-Write-Controllers guide
Fixes #955. * UUID has been added to cron job tasks as unique identifier. * Methods modified in `CronTaskController` to use Form Validation and to follow the controllers guide. * The proper tests cases have been modified and new cases have been added.
diff --git a/strongbox-cron/strongbox-cron-api/src/main/java/org/carlspring/strongbox/cron/domain/CronTaskConfiguration.java b/strongbox-cron/strongbox-cron-api/src/main/java/org/carlspring/strongbox/cron/domain/CronTaskConfiguration.java index 06b295d726..d9621e014c 100644 --- a/strongbox-cron/strongbox-cron-api/src/m...
2
2
1
[{"id": "G0", "claim": "The new PUT endpoint method `saveConfiguration` should be renamed to `createConfiguration` (cosmetic naming).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The form should not carry a UUID field: for updates the UUID should be ta...
null
strongloop__loopback__1015
strongloop/loopback
1,015
defect
e0e9d6ecffa8ee22ae11709371c10e0ebb57a629
e2d9f67425a401f39c648d8e1c0f67a202208157
Extend AccessToken to parse Basic auth headers
Allow convenient URLs for curl and browsers such as: - http://some-long-token@localhost:3000/ - http://token:some-long-token@localhost:3000/ Basic Auth specifies a 'Basic' scheme for the Authorization header similar to how OAuth specifies 'Bearer' as an auth scheme. Following a similar convention, extract the access ...
diff --git a/common/models/access-token.js b/common/models/access-token.js index 4e01a33d6..4e9f0b1f8 100644 --- a/common/models/access-token.js +++ b/common/models/access-token.js @@ -189,6 +189,25 @@ module.exports = function(AccessToken) { // Decode from base64 var buf = new Buffer(id, 'base64'...
1
1
1
[{"id": "G0", "claim": "If the decoded Basic-auth id does not contain ':', the longest-part slicing yields a wrong token (e.g. '1234' comes out as '123').", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
strongloop__loopback__1131
strongloop/loopback
1,131
defect
3d977f3e68749e4d0aa1279252269fb84a2557f6
c63d848df0da23fb886962d25111584c4f7a5539
Add a workaround to avoid conflicts with NewRelic
/to @bajtos NewRelic intercepts express `app.use` and injects its middleware. It also wraps middleware handlers. This monkey-patching trick breaks the assumption in LoopBack that the last item in the router stack is the one being added. As a result, the phase name is not set to the correct handler and middleware orde...
diff --git a/lib/server-app.js b/lib/server-app.js index 13f993a8f..95ceb5135 100644 --- a/lib/server-app.js +++ b/lib/server-app.js @@ -161,7 +161,28 @@ proto.middleware = function(name, paths, handler) { this._skipLayerSorting = true; this.use(paths, handler); - this._router.stack[this._router.stack.length -...
4
2
1
[{"id": "G0", "claim": "Extract the inline handler-search block into a standalone function that accepts the handler and returns the matching stack layer, handling the not-found case (e.g. printing a warning).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",...
null
strongloop__loopback__1140
strongloop/loopback
1,140
defect
19a3fe64e45c083e998cdd65f8c31cc19d1cb807
ef7db9f0d86df3095cccfb3d877d0ec29d477798
Guids for replicated models
- Print a deprecation warning when a persisted model is tracking changes but does not have a client-generated unique string id property (GUID). - Fix all test models that are tracking changes so that they have a generated unique string id. - Make model names unique where possible to prevent tests reusing the same model...
diff --git a/lib/persisted-model.js b/lib/persisted-model.js index 6e9d07e5c..4a5f8dea3 100644 --- a/lib/persisted-model.js +++ b/lib/persisted-model.js @@ -7,6 +7,7 @@ var registry = require('./registry'); var runtime = require('./runtime'); var assert = require('assert'); var async = require('async'); +var depreca...
2
2
1
[{"id": "G0", "claim": "The new GUID/UUID check regex /^[ug]uid$/ is silly and should be rewritten as an explicit comparison of defaultFn against 'uuid' or 'guid'.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The newly added depd dependency do...
null
strongloop__loopback__1205
strongloop/loopback
1,205
defect
8bfa3ba8d7489d04839e9c653ef747d35b889ed7
9ecc54fa9a81e962f5e0cfc93ea90cf8c771beb5
Add ability to pass in custom verification token generator
This PR adds the ability for the developer to use a custom token generator function for the user.verify(...) method. By default, the system will still use the crypto.randomBytes() method if no option is provided. Example usage is below. Note that this feature was indirectly asked for on [StackOverflow](http://stackover...
diff --git a/common/models/user.js b/common/models/user.js index dcbd2813b..463d1a51b 100644 --- a/common/models/user.js +++ b/common/models/user.js @@ -303,11 +303,12 @@ module.exports = function(User) { * * ```js * var options = { - * type: 'email', - * to: user.email, - * template: '...
3
3
1
[{"id": "G0", "claim": "The new custom-token-generator test should use process.nextTick instead of setTimeout to exercise async execution.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The token generator should be exposed as an overridable method on U...
null
strongloop__loopback__1212
strongloop/loopback
1,212
defect
1cabd74308e8c57aa8033641c77bccfcf86e57f3
1b9a3bb37ed9e1a6b153356cd597e9869391b3a3
Per-app Models
This PR adds the following behavior: **`loopback.registry` is now a true global registry** If you have multiple `loopback` modules in your `require.cache` you will still get the same registry from `loopback.registry`. All previous `Registry` methods (eg. `loopback.createModel()` and `loopback.getModel()`) will use `l...
diff --git a/common/models/acl.js b/common/models/acl.js index f8c7e4f85..c544bd6ee 100644 --- a/common/models/acl.js +++ b/common/models/acl.js @@ -375,6 +375,8 @@ module.exports = function(ACL) { */ ACL.checkAccessForContext = function(context, callback) { + var registry = this.registry; + if (!(...
22
16
9
[{"id": "G0", "claim": "Drop the redundant `|| loopback.registry` fallback in RoleMapping.prototype.application, since `ModelCtor.registry` is always set.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new `name` parameter of dataSourcesFrom...
null
strongloop__loopback__1214
strongloop/loopback
1,214
defect
8bfa3ba8d7489d04839e9c653ef747d35b889ed7
552be0488667ffc8b2f7837198be321a0aa9cabe
Detect 3rd-party changes made during replication
- Modify `Change.diff()` to include current data revision in each delta reported back. The current data revision is stored in `delta.prev`. - Modify `PersistedModel.bulkUpdate()` to check that the current data revision matches `delta.prev` and report a conflict if a third party has modified the database under our hands...
diff --git a/common/models/change.js b/common/models/change.js index 572ed43f3..afd6625de 100644 --- a/common/models/change.js +++ b/common/models/change.js @@ -126,7 +126,7 @@ module.exports = function(Change) { modelId: modelId }); ch.debug('creating change'); - ch.save(callback); ...
3
3
1
[{"id": "G0", "claim": "Deleting during replication should report a conflict when the target's current revision does not match the change's previous revision, instead of blindly deleting.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `count !==...
null
strongloop__loopback__1323
strongloop/loopback
1,323
defect
ca004adfc66bee0b170957222b3fbcf806cdc041
30e058034f93b74b0b4d4a22b6284228fe331e2b
Auto-configure models required by `app.enableAuth`
Modify `app.enableAuth` to automaticaly setup all required models that are not attached to the app nor a datasource. Users wishing to use this option must provide the name of the data-source to use for these models. Example usage: ``` var app = loopback(); app.dataSource('db', { connector: 'memory' }); app.enableAut...
diff --git a/lib/application.js b/lib/application.js index 590c65843..d0043bf4e 100644 --- a/lib/application.js +++ b/lib/application.js @@ -291,10 +291,27 @@ app.dataSources = app.datasources = {}; * Enable app wide authentication. */ -app.enableAuth = function() { +app.enableAuth = function(options) { + var AU...
1
1
1
[{"id": "G0", "claim": "The new enableAuth auto-configuration should not attach a builtin model (e.g. User) when an already-attached subclass of it exists, instead of attaching it unconditionally — raymondfeng asked what happens if these models are sub-classed, and bajtos proposed not attaching a base model when a subc...
null
strongloop__loopback__1370
strongloop/loopback
1,370
defect
694ab814f984119f380c398124647f958a25439a
a8b87c7f92fdd1d34e54b637e778f67b0a59c422
Use the new remoting.authorization hook for check access
/to @raymondfeng /cc @bajtos @fabien This PR uses the authorization hook added with [this strong-remoting PR](https://github.com/strongloop/strong-remoting/pull/212). Connect strongloop/loopback#1363 Connect strongloop/loopback#1191
diff --git a/lib/application.js b/lib/application.js index 590c65843..8ed27cedb 100644 --- a/lib/application.js +++ b/lib/application.js @@ -295,7 +295,8 @@ app.enableAuth = function() { var remotes = this.remotes(); var app = this; - remotes.before('**', function(ctx, next, method) { + remotes.authorization ...
4
1
0
[{"id": "G0", "claim": "The new authorization override should save the original remotes.authorization implementation and call it once loopback auth passes, instead of silently discarding it.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The closing of t...
null
strongloop__loopback__1496
strongloop/loopback
1,496
defect
70ca7c51b465c0b282a7e4663e83a6d47b29b3d1
624907bec274dbf18f8a6ce8c83032a6667e4ab9
Fail with "401 Unauthorized" when token is not provided to User.logout()
Connect to https://github.com/strongloop/strong-arc/issues/1414 Fix #1669
diff --git a/common/models/user.js b/common/models/user.js index 2677f0d98..f68e0a07e 100644 --- a/common/models/user.js +++ b/common/models/user.js @@ -269,6 +269,14 @@ module.exports = function(User) { */ User.logout = function(tokenId, fn) { + if(!tokenId) { + process.nextTick(function() { + ...
4
4
1
[{"id": "G0", "claim": "The error raised when the access token is not found should also set a statusCode (404 or 400), like the newly added missing-token path does.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "User.logout could simply call destr...
null
strongloop__loopback__1561
strongloop/loopback
1,561
defect
7ff771c6bf28e8f17c7743de09a1ea50b7dbc341
76d4e949ede2e919386888653052bac8ce7c2943
Allow methods filter for middleware config
/to @ritch /cc @bajtos This PR allows `methods` in middleware configuration so that the request can be filtered by the http methods. It's a requirement from declarative policies.
diff --git a/lib/server-app.js b/lib/server-app.js index 7e51dc91f..1cbd22d22 100644 --- a/lib/server-app.js +++ b/lib/server-app.js @@ -65,6 +65,29 @@ proto.middlewareFromConfig = function(factory, config) { } var handler = factory.apply(null, params); + + // Check if methods/verbs filter exists + var verbs ...
3
2
2
[{"id": "G0", "claim": "The method/verb values coming from the JSON config should be normalised to a consistent case (lowercase suggested) so the filter matches regardless of how the user writes them.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "T...
null
strongloop__loopback__1584
strongloop/loopback
1,584
defect
3c18d385480c077f86eab2fdc51be49804c90b84
3531a4382f20ca1fea10df1d72bde4f2675275a5
Enhance the ACL related models
/to @ritch The PR cleans up how related models are referenced and adds two utilities to ACL.
diff --git a/common/models/acl.js b/common/models/acl.js index 0bc48c7d5..c033432a6 100644 --- a/common/models/acl.js +++ b/common/models/acl.js @@ -496,4 +496,76 @@ module.exports = function(ACL) { if (callback) callback(null, access.permission !== ACL.DENY); }); }; + + ACL.getRelatedModels = function(...
2
1
0
[{"id": "G0", "claim": "The new getRelatedModels helpers resolve related models in a non-standard way -- instead of doing it in setup() they mutate each model without returning anything -- and the reviewer asks to do it in setup() or another more standard mechanism, or to elaborate on what prevents that.", "category": ...
null
strongloop__loopback__1804
strongloop/loopback
1,804
defect
e633617b8fb2c47f340b8337dd40a78f98704277
49a725658aab6b7dd804f77b982af30b8439df3c
Add case-sensitive email option for User model
Have not created a test file for this yet. @ritch could you review this please (if you get a chance)? Fix #1150 Connect to #1150
diff --git a/.strong-pm/env.json b/.strong-pm/env.json new file mode 100644 index 000000000..9e26dfeeb --- /dev/null +++ b/.strong-pm/env.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/common/models/user.js b/common/models/user.js index d53d0998d..1fdce052f 100644 --- a/common/models/user.js +++ b/comm...
8
5
3
[{"id": "G0", "claim": "The caseSensitiveEmail default should be established when configs are read (in configuration) rather than via the `if (this.settings.caseSensitiveEmail === undefined)` default block in user.js.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",...
null
strongloop__loopback__1896
strongloop/loopback
1,896
defect
69940ad3b0ad041db5eb3187cd8e8629c54eaeaf
f0c2c2c66b1209394ab8b61695d3984ad9369fd0
[SEMVER-MAJOR] Always use bluebird as promise library
This pr is created for updating files to use `bluebird` as promise library. See details here: Connect to strongloop-internal/scrum-loopback#615 Related: https://github.com/strongloop/loopback-datasource-juggler/pull/790
diff --git a/lib/utils.js b/lib/utils.js index 306a1764a..098003840 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -1,17 +1,9 @@ exports.createPromiseCallback = createPromiseCallback; +var Promise = require('bluebird'); function createPromiseCallback() { var cb; - - if (!global.Promise) { - cb = function() ...
4
2
1
[{"id": "G0", "claim": "superkhau asks why the pull request has so many failing CI checks.", "category": "testing", "verdict": "uncertain", "priority": "P0", "scope": "unclear"}, {"id": "G1", "claim": "Remove the trailing empty line bajtos pointed at at the end of test/support.js.", "category": "maintainability", "verd...
null
strongloop__loopback__1989
strongloop/loopback
1,989
defect
18da6993d9e4f9385b094b871bf08d264e908cd4
9e940ac8e6dbe8739da1e87c467ddeabd4afc19e
[SEMVER-MAJOR] Remove "loopback.autoAttach()"
The method was deprecated since LoopBack 2.0, there is no need to keep it around in 3.0. Close #294 /to @ritch please review
diff --git a/lib/builtin-models.js b/lib/builtin-models.js index 78bf63990..69e986af6 100644 --- a/lib/builtin-models.js +++ b/lib/builtin-models.js @@ -41,25 +41,6 @@ module.exports = function(registry) { require('../common/models/checkpoint.json'), require('../common/models/checkpoint.js')); - /*! - * ...
4
3
1
[{"id": "G0", "claim": "Registry.createDataSource should assert or throw when the removed DataSource option \"defaultForType\" is used, instead of only logging a console.warn and ignoring the setting.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "I...
null
strongloop__loopback__214
strongloop/loopback
214
defect
1512ef4561e6f1b2b3d0e5d964630f139e4762f7
328a72ac9107128e6f2bb9d9c1808e04325444b8
Improve the ACL matching algorithm
/to @ritch See https://github.com/strongloop/loopback-example-access-control/issues/8
diff --git a/lib/models/access-context.js b/lib/models/access-context.js index 9bbc1464f..72b24810a 100644 --- a/lib/models/access-context.js +++ b/lib/models/access-context.js @@ -217,10 +217,19 @@ function AccessRequest(model, property, accessType, permission) { if (!(this instanceof AccessRequest)) { return ...
3
1
0
[{"id": "G0", "claim": "The debug statements should not be wrapped in debug.enabled checks.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The weighting code should be commented more, with the weighting behavior also documented in the JSDoc annota...
null
strongloop__loopback__2174
strongloop/loopback
2,174
defect
b4e230389d76dcd5d8c90fad9fb874c5bc9d9c9a
1765642e43c26075ac5fb8538d6e196b6600d2cb
Remove constraint making isStatic required
Connect to: https://github.com/strongloop-internal/scrum-loopback/issues/617
diff --git a/lib/model.js b/lib/model.js index f3ec47b25..b766ded3f 100644 --- a/lib/model.js +++ b/lib/model.js @@ -415,7 +415,9 @@ module.exports = function(registry) { Model.remoteMethod = function(name, options) { if (options.isStatic === undefined) { - options.isStatic = true; + var m = name.ma...
6
4
0
[{"id": "G0", "claim": "The new else-block in _defineRemoteMethods is unnecessary nesting; use the flatter if/else-if/else chain instead.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The change to the app.dataSource error assertion is unrelate...
null
strongloop__loopback__2266
strongloop/loopback
2,266
defect
4cd84dcd8af5f4f90ff62f506a6bf49e6fc2036b
0701b859d8439016d87f9f72e90c5ad8322c9538
Emit a remoteMethodDisabled event when disabling a remote method
This PR for #686 to make loopback emits a remoteMethodDisabled event. I'll make another PR for loopback-component-explorer to register for this event.
diff --git a/lib/application.js b/lib/application.js index 44e35b1d6..6b03511ef 100644 --- a/lib/application.js +++ b/lib/application.js @@ -153,6 +153,11 @@ app.model = function(Model, config) { this.emit('modelRemoted', Model.sharedClass); } + _self = this; + Model.on('remoteMethodDisabled', function(mode...
5
4
0
[{"id": "G0", "claim": "In lib/application.js the PR should use `var self = this;` (name the variable `self`, not `_self`, and call `self.emit`).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In test/app.test.js the two-line declaration should ...
null
strongloop__loopback__2298
strongloop/loopback
2,298
defect
cc95860c68d5b7726c0dd762687af4940e8a82c9
a1a86a222b9defad0e7d8d43360ac810cad55a83
Composite Key validation for Realm enabled users
connect to https://github.com/strongloop/loopback/issues/2322 addresses this https://github.com/strongloop/loopback/blob/cc95860c68d5b7726c0dd762687af4940e8a82c9/common/models/user.js#L759 currently realm doesnt enforce user-uniqueness at all. @raymondfeng @gunjpan PTAL
diff --git a/common/models/user.js b/common/models/user.js index ea9ffc60d..4b9b0324b 100644 --- a/common/models/user.js +++ b/common/models/user.js @@ -756,10 +756,20 @@ module.exports = function(User) { UserModel.validatesFormatOf('email', { with: re, message: g.f('Must provide a valid email') }); - // FI...
2
1
0
[{"id": "G0", "claim": "Swap the if-else blocks in the realm uniqueness validation so the realm branch comes first, for easier readability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "raymondfeng asks whether the pull request has a test cover...
null
strongloop__loopback__2299
strongloop/loopback
2,299
defect
1559db2ca3f5cf75606a09a806428140e9c967d6
c15ec270be20869cda49bf320ae1cf6515604ac8
[SEMVER-MAJOR] Removed unused user properties
connect to https://github.com/strongloop/loopback/issues/1854 ##### Removed properties - credentials - challenges - status - created - lastUpdated
diff --git a/3.0-RELEASE-NOTES.md b/3.0-RELEASE-NOTES.md index f70b11851..8f87ca221 100644 --- a/3.0-RELEASE-NOTES.md +++ b/3.0-RELEASE-NOTES.md @@ -62,4 +62,11 @@ methods: { } ``` -Please see [related code change](https://github.com/strongloop/loopback/pull/2174) here. \ No newline at end of file +Please see [rela...
4
4
1
[{"id": "G0", "claim": "The release-notes heading should use the imperative form ('## Remove unused user properties') instead of '## Removing unused user properties', for consistency with the rest of the file.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ...
null
strongloop__loopback__2316
strongloop/loopback
2,316
defect
aa47f79ca60349a28f5d79d64261ed99f1c74ad4
79622b6966f9609b16a024a0a1e5244aa2909f53
Expose `Replace*` methods
##### Description: - Re-mapping `updateAttributes` and `updateOrCreate` endpoints to use `PATCH` verb by default for `3.X`. - Exposing `replaceById` and `replaceORCreate` via `PUT` verbs by default for `3.X`. - Add a flag `model.settings.options.updateOnPUT` for `3.X`. **Note:** This patch is for `3.X` Related to htt...
diff --git a/common/models/user.json b/common/models/user.json index 582a09cb2..411c7030a 100644 --- a/common/models/user.json +++ b/common/models/user.json @@ -76,6 +76,12 @@ "permission": "ALLOW", "property": "resetPassword", "accessType": "EXECUTE" + }, + { + "principalType": "ROLE", ...
7
6
5
[{"id": "G0", "claim": "When `updateOnPUT` is set, the HTTP path must change too, not only the verb (e.g. replaceById => POST /:id/replace, replaceOrCreate => POST /replaceOrCreate).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G4", "claim": "`replaceById` shoul...
null
strongloop__loopback__2559
strongloop/loopback
2,559
defect
b3c66f34c81d7c3daa47ec5230722b61b1314cb1
e1b252e6e9eed702a85e58419ad6fb5c3323eba1
Deprecate current-context API [2.x]
Deprecate all current-context APIs in favour of loopback-context-cls. This is a follow-up for https://github.com/strongloop/loopback-context-cls/pull/1 > Based on our discussions, I think we should remove `getCurrentContext` from LoopBack 3.0. In order to simplify upgrade path and allow community to take over mainten...
diff --git a/Gruntfile.js b/Gruntfile.js index 756bede3a..25b0a880b 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -44,9 +44,6 @@ module.exports = function(grunt) { common: { src: ['common/**/*.js'] }, - browser: { - src: ['browser/**/*.js'] - }, server: { src: [...
2
2
0
[{"id": "G0", "claim": "The deprecation message should be reworded because saying 'As a short-term fix, use loopback-context-cls module' is confusing, since loopback-context-cls is already the implementation in use.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ...
null
strongloop__loopback__2718
strongloop/loopback
2,718
defect
74deec814251f534745361b50ba276007eeb6dd1
6a33c17907339c58cfc5e27e0f89eccf8010b971
Fix double-slash in confirmation URL [2.x]
Fix the code building the URL used in the email-verification email to prevent double-slash in the URL when e.g. restApiRoot is '/'. Before: ``` http://example.com//users/confirm?... ``` Now: ``` http://example.com/users/confirm?... ``` This patch is based on #2712 from @jonathan-chin Connect to #2452 @loay @ri...
diff --git a/common/models/user.js b/common/models/user.js index ea35f6b13..e90980cde 100644 --- a/common/models/user.js +++ b/common/models/user.js @@ -401,14 +401,18 @@ module.exports = function(User) { (options.protocol === 'https' && options.port == '443') ) ? '' : ':' + options.port; + var urlPath...
1
1
0
[{"id": "G0", "claim": "The new test should follow the project convention of using `@example.com` addresses in test cases instead of `bar@bat.com`.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
strongloop__loopback__2765
strongloop/loopback
2,765
defect
8d0f319dd616a047793f8e8bc02f0649a97afdff
e565bffcd172ac501a6bf91539e5aea5c02d4c33
Require verification after email change
connect to https://github.com/strongloop-internal/scrum-loopback/issues/1029
diff --git a/common/models/user.js b/common/models/user.js index 80f6de68b..8cbb0515c 100644 --- a/common/models/user.js +++ b/common/models/user.js @@ -15,6 +15,7 @@ var path = require('path'); var SALT_WORK_FACTOR = 10; var crypto = require('crypto'); var MAX_PASSWORD_LENGTH = 72; +var async = require('async'); v...
3
2
1
[{"id": "G0", "claim": "Resetting emailVerified from the 'after save' hook loops infinitely because ctx.Model.updateAll triggers the save hooks again and missing data.email is treated as an email change, so tests hang or die with 'Callback was already called'; bajtos asks that the reset be moved to the 'before save' ho...
null
strongloop__loopback__2782
strongloop/loopback
2,782
defect
f3317ec39bf3d123f340f822674ff08f3cdb4841
477d13fa6e7d86d6c9bf50b9bf31d61c72b3086c
Update tests to use registry for model creation [2.x]
Current implementation of `app.model(modelName, settings)` works as a sugar for model creation. From LB 3.0 onwards, this is not supported. This backporting: - keeps the sugar method for model creation for backward compatibility - updates test cases to use `app.registry.createModel()` for model creation Backport ...
diff --git a/example/colors/app.js b/example/colors/app.js index b7a3038c2..44d75c493 100644 --- a/example/colors/app.js +++ b/example/colors/app.js @@ -14,9 +14,9 @@ var schema = { name: String }; -var Color = app.model('color', schema); - -app.dataSource('db', {adapter: 'memory'}).attach(Color); +app.dataSource...
1
1
1
[{"id": "G0", "claim": "The `remoting.errorHandler` configuration this PR adds to the 2.x tests appears to be a 3.x-only option that does not exist in 2.x, and should be checked and removed from both test files.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
strongloop__loopback__2842
strongloop/loopback
2,842
defect
953cfa9e2de3215053cc8ddbd1a72aaf0c1fe815
e8f2942d78fd1236279dbd16250a3ea57ca0bf5e
Fix description of updateAll response
Correctly describe the first non-error callback arg as an `info` object containing a `count` property. Supersedes #2535 Connect to #2104 @superkhau please review
diff --git a/lib/persisted-model.js b/lib/persisted-model.js index d3a5c5975..00ccd1bc7 100644 --- a/lib/persisted-model.js +++ b/lib/persisted-model.js @@ -808,9 +808,14 @@ module.exports = function(registry) { description: 'An object of model property name/value pairs' }, ], returns: { - ...
1
1
0
[{"id": "G0", "claim": "The updateAll return-value description should read 'Information related to the outcome of the operation' instead of 'Information about the operation outcome'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
strongloop__loopback__2947
strongloop/loopback
2,947
defect
61c0c85ab527d9da67032809d9eb61d004e32835
9d0bb18472fb4eae640dad5c1909c80c096f4dc7
add allowArray to relations' 'create' remoteMethod
connected to #2928 ### Description this is a problem where relation's model's remoteMethods are rebuilt (not inherited). Eg lets say - **Author.hasMany(Book)** - `POST /book` (book.create) has flag allowArray - `POST /Author/id/Book` will rebuild `remoteMethod` per relation type #### Related issues...
diff --git a/lib/model.js b/lib/model.js index a8fe7ebd2..de0ab24c6 100644 --- a/lib/model.js +++ b/lib/model.js @@ -668,7 +668,11 @@ module.exports = function(registry) { define('__create__' + scopeName, { isStatic: isStatic, http: { verb: 'post', path: '/' + pathName }, - accepts: { arg: 'data...
2
1
1
[{"id": "G0", "claim": "Inheriting the create remoteMethod's accepts from the original remoteClass via retrieveRemoteMethodInformation may be too much trouble for too little benefit; consider simply adding allowArray to the relation's create remoteMethod instead.", "category": "design", "verdict": "supported", "priorit...
null
strongloop__loopback__2980
strongloop/loopback
2,980
defect
c0e96ffa12813413c21193075cfd768c34a38644
71e9a36a575f36192de1a43aacb8b2a0dde1cfaa
Allow password reset request for users in realms
### Description Currently the `User.resetPassword` method only accepts an email address as a parameter. When you have a LoopBack application that partitions the users in Realms you need to `find` the user based on it's email address + realm, because it allows for 2 users with the same email address. This PR f...
diff --git a/common/models/user.js b/common/models/user.js index 8d1debfe4..41ad6232a 100644 --- a/common/models/user.js +++ b/common/models/user.js @@ -546,11 +546,12 @@ module.exports = function(User) { }; /** - * Create a short lived acess token for temporary login. Allows users + * Create a short lived ...
1
1
1
[{"id": "G0", "claim": "Adding `realm: 'foobar'` to the existing `validCredentials` variable would make the previous tests using that variable test a different thing, so a new variable should be introduced instead to test the realm feature while keeping coverage of the old no-realm behaviour.", "category": "testing", "...
null
strongloop__loopback__3018
strongloop/loopback
3,018
defect
dac1295ad78f1f758dcfd65dbdc7d4395af0ebf7
018c642bb2e859ac71926c6bf6dfdc4d15ed5d3d
Invalidate AccessTokens on password change
Invalidate all existing sessions (delete all access tokens) after user's password was changed. This patch supersedes #2665 Connect to strongloop-internal/scrum-loopback#925 @loay @raymondfeng PTAL
diff --git a/common/models/user.js b/common/models/user.js index 368dace9b..9442039ff 100644 --- a/common/models/user.js +++ b/common/models/user.js @@ -648,6 +648,15 @@ module.exports = function(User) { err.statusCode = 422; throw err; }; + + User._invalidateAccessTokensOfUsers = function(userIds, cb) { ...
1
1
1
[{"id": "G0", "claim": "User._invalidateAccessTokensOfUsers should guard against a non-array userIds argument (!Array.isArray(userIds) || !userIds.length) and invoke cb via process.nextTick on its early-return paths so the callback is not called synchronously.", "category": "correctness", "verdict": "supported", "prior...
null
strongloop__loopback__308
strongloop/loopback
308
defect
5f1c3a86ebcf37910f86b8657c85ec386d47d5c9
1de6325a80a05d3cd9acdb2ca704c8900aa00f8a
[2.0] cleanup after pr 304
- fix jsdoc comments in lib/loopback - remove `assertIsModel` and `isDataSource` - remove the circular dependency between lib/application and lib/loopback /to @ritch please review
diff --git a/docs.json b/docs.json index 6df5005f7..5822b1534 100644 --- a/docs.json +++ b/docs.json @@ -3,6 +3,8 @@ "content": [ "lib/application.js", "lib/loopback.js", + "lib/runtime.js", + "lib/registry.js", "lib/middleware/token.js", "lib/models/access-token.js", "lib/models/acces...
1
1
0
[{"id": "G0", "claim": "The JSDoc `@options` and `@property` tags for the data-source options in lib/registry.js are missing names.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
strongloop__loopback__3098
strongloop/loopback
3,098
defect
d2e9e7ee77c0ec64e0aa69c8aa8c286e1db714ce
8e9de326bb66b435e6ec6568b3d22093bc6c577a
Preserve current session when invalidating access tokens
Fix User model to preserve the current session (provided via "options.accessToken") when invalidating access tokens after a change of email or password property. See #3034 @superkhau please review cc @ivanschwarz @doublemarked
diff --git a/common/models/user.js b/common/models/user.js index ca1f8fd83..c88a8bce5 100644 --- a/common/models/user.js +++ b/common/models/user.js @@ -657,7 +657,12 @@ module.exports = function(User) { throw err; }; - User._invalidateAccessTokensOfUsers = function(userIds, cb) { + User._invalidateAccessTo...
1
1
1
[{"id": "G0", "claim": "The invalidation call should pass `options` to AccessToken.deleteAll.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
strongloop__loopback__314
strongloop/loopback
314
defect
d8c6f9d96228169aa8af7f30e21dfe841573971a
be695f483e546328466d170587fe05bc9d74cdd2
Allow the creation of access token to be overriden
/to @ritch This PR allows us to customize the access token creation so that we can calculate the TTL based on the current user/application and other context.
diff --git a/lib/models/user.js b/lib/models/user.js index 73a18d39b..f9806b5b6 100644 --- a/lib/models/user.js +++ b/lib/models/user.js @@ -2,14 +2,12 @@ * Module Dependencies. */ -var Model = require('../loopback').Model - , loopback = require('../loopback') +var loopback = require('../loopback') + , Model = ...
2
2
1
[{"id": "G0", "claim": "Since the method requires the user object, it should be a prototype method (`User.prototype.createAccessToken`) rather than a static method on `User`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The static `User` reference insi...
null
strongloop__loopback__3163
strongloop/loopback
3,163
defect
5fd79b14f49ebd0b7e6cf2a176fc0d75da4c8ba5
9f09ba26af54c73aaac42b50ded5c60a0331af63
Add promise support to built-in model ACL
### Description None of the functions from built-in acl.js currently support promises. this PR adds promise support by using loopback utils helper #### Related issues related issue: https://github.com/strongloop/loopback/issues/418 related PR (similar for built-in role model) : https://github.com/strongloop/lo...
diff --git a/common/models/acl.js b/common/models/acl.js index 312bb5171..06bca6668 100644 --- a/common/models/acl.js +++ b/common/models/acl.js @@ -32,6 +32,7 @@ var g = require('../../lib/globalize'); var loopback = require('../../lib/loopback'); +var utils = require('../../lib/utils'); var async = require('asyn...
5
5
0
[{"id": "G0", "claim": "Expanding the one-line `if (err) return cb(err);` statements in ACL.isMappedToRole into multi-line brace blocks is a change that is not required.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new promise tests in acl...
null
strongloop__loopback__3169
strongloop/loopback
3,169
defect
c099d8c731a4c7d883dae65c1cb04efd44db9d5e
336abd7e088126a77f48aa1db0585c37551fd5b7
Add promise support to built-in model RoleMapping
### Description None of the methods from built-in model RoleMapping currently support promises. this PR adds promise support by using loopback utils helper In addition no tests exist for RoleMapping model. this PR also add a new set of tests in a dedicated file to cover both callback and promise versions of those m...
diff --git a/common/models/role-mapping.js b/common/models/role-mapping.js index 630cbd3c5..8dfa58087 100644 --- a/common/models/role-mapping.js +++ b/common/models/role-mapping.js @@ -5,6 +5,7 @@ 'use strict'; var loopback = require('../../lib/loopback'); +var utils = require('../../lib/utils'); /** * The `Ro...
2
2
0
[{"id": "G0", "claim": "The RoleMapping.create call in the '.user() with a callback' test should put one argument per line per the LoopBack style guide.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The RoleMapping.create call in the '.applicat...
null
strongloop__loopback__3180
strongloop/loopback
3,180
defect
304ecc4784c927be69caaa01a1b7344b169f0fa9
6fd3ab24405db04868bc9e384eae6d941d9ccdc2
Fix Role.isOwner() when multiple user models
### Description When merging https://github.com/strongloop/loopback/pull/2971 which i authored, @bajtos noted a missing test on the built-in role resolver `$owner` which internally calls the `Role.isOwner()` method ([see here](https://github.com/strongloop/loopback/pull/2971#issuecomment-276900888)) The added test ...
diff --git a/common/models/role.js b/common/models/role.js index 8bdd43930..51287f6d7 100644 --- a/common/models/role.js +++ b/common/models/role.js @@ -179,8 +179,8 @@ module.exports = function(Role) { } var modelClass = context.model; var modelId = context.modelId; - var userId = context.getUserId()...
3
3
2
[{"id": "G1", "claim": "Removing the ownerId (.userId/.owner) shortcut breaks backwards compatibility, so the pull request should keep resolving ownership via that property when principalType is USER.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G5", "claim": "A...
null
strongloop__loopback__3245
strongloop/loopback
3,245
defect
ed4f56c7f8f8405e0b61246af3a5f9d2382b78da
d804e927344cbb153b9a04d242a7401a51f5b65e
fix custom token model in token middleware
cc @bajtos @beeman ### Description Specifying a custom AccessToken model via the auth middleware options is broken when the app is using a single global registry. The faulty line are ``` if (registry === loopback.registry) { TokenModel = options.model || loopback.AccessToken; } ``` where `options.mode...
diff --git a/server/middleware/token.js b/server/middleware/token.js index e154a7d26..0d4cf2265 100644 --- a/server/middleware/token.js +++ b/server/middleware/token.js @@ -96,7 +96,7 @@ function token(options) { var registry = app.registry; if (!TokenModel) { if (registry === loopback.registry) { - ...
2
2
2
[{"id": "G0", "claim": "Resolving the token model via `app.models[options.model]` does not support the case where `options.model` is a model constructor; use `registry.getModel`, which handles both strings and constructors, simplifying the branch to `TokenModel = registry.getModel(options.model || 'AccessToken')`.", "c...
null
strongloop__loopback__3344
strongloop/loopback
3,344
defect
9fef5284c73a16d099d5bf17661d327ee387f554
e76d693996ecb3036ccf90fa477d7e7824adf385
forward context options in user.verify
### Description change original "options" argument name to "verifyOptions" adds ctx options argument as "options" forward context "options" down to relevant downstream functions review "verifyOptions" assertions overall code cleaning #### Related issues required by https://github.com/strongloop/loopback/pu...
diff --git a/common/models/user.js b/common/models/user.js index 4892fc0a3..225caa628 100644 --- a/common/models/user.js +++ b/common/models/user.js @@ -437,18 +437,18 @@ module.exports = function(User) { * Verify a user's identity by sending them a confirmation email. * * ```js - * var options = { + ...
5
4
1
[{"id": "G0", "claim": "Email.send does not support the options argument, so the new branch forwarding options to it has no effect with the built-in Email model, and fixing Email's API should be left out of scope of this pull request.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"...
null
strongloop__loopback__3350
strongloop/loopback
3,350
defect
95240598b3d7d3b365eaa184f53a0ae26a6aad14
b3ed388a8202d39370116c0579a0720d3ac54970
Set password with token, disable password changes via patch/replace
### Description **Add `User.setPassword(id, new, cb)`** Implement a new method for changing user password with password-reset token but without the old password. REST API POST /api/users/reset-password Authorization: your-password-reset-token-id Content-Type: application/json {"newPassw...
diff --git a/common/models/user.js b/common/models/user.js index 4892fc0a3..0a8c2254f 100644 --- a/common/models/user.js +++ b/common/models/user.js @@ -105,6 +105,7 @@ module.exports = function(User) { ttl = Math.min(ttl || userModel.settings.ttl, userModel.settings.maxTTL); this.accessTokens.create({ ...
17
12
0
[{"id": "G0", "claim": "The static setPassword API should be built around the password-reset token - the argument should be named resetToken (with the user id taken from resetToken.userId) rather than a bare userId.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "...
null
strongloop__loopback__3376
strongloop/loopback
3,376
defect
b96605c63a66c4bf7918f7b31e96bf597037a7e9
175e712dc5bccb1bfdc232e23a77e611e1039110
Support remoting adapters with no ctx.req object
Reason: some strong-remoting adapters don't have the "req" object. ### Description Not all strong-remoting adapters have the "req" property attached to the context. The proposal changes implement a more restrictive check. #### Related issues - None ### Checklist <!-- Please mark your choice with a...
diff --git a/lib/model.js b/lib/model.js index f7633b4df..eeecfbc96 100644 --- a/lib/model.js +++ b/lib/model.js @@ -1046,7 +1046,7 @@ module.exports = function(registry) { */ Model.createOptionsFromRemotingContext = function(ctx) { return { - accessToken: ctx.req.accessToken, + accessToken: ctx.r...
1
1
1
[{"id": "G0", "claim": "Add a unit test verifying the fix directly (calling Model.createOptionsFromRemotingContext with a context that has no ctx.req) now rather than waiting for the primus adapter, with a comment explaining the test case relates to websocket/primus adapters.", "category": "testing", "verdict": "suppor...
null
strongloop__loopback__3540
strongloop/loopback
3,540
defect
deec84f3b58466a8b688f62668c2ca25097a8ee7
e4f9efad27ca974f919a9990b760c32fb54967b1
Do not add isStatic properties to method settings
### Description As discussed in #3529, here the PR to fix the issue where creating models from JSON descriptions modifies their remote method settings by adding `isStatic` properties to them. Once a model inherits from another, these `isStatic` properties would trigger deprecation warnings. #### Related issues ...
diff --git a/lib/registry.js b/lib/registry.js index 363c6686b..ea0195a4b 100644 --- a/lib/registry.js +++ b/lib/registry.js @@ -273,7 +273,7 @@ Registry.prototype._defineRemoteMethods = function(ModelCtor, methods) { if (typeof meta.isStatic !== 'boolean') { key = isStatic ? key : m[1]; - meta.isSta...
2
2
0
[{"id": "G0", "claim": "The new test should not boot a test/fixtures app; unit tests should set up a minimal app inline with app.registry.createModel, app.dataSource and app.model, containing only what the test needs.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"...
null
strongloop__loopback__3548
strongloop/loopback
3,548
defect
2809d629908a38d305ecb23a13e5d620f25732f9
6657210cbd43bc0b1ce63044a98e349d9b94da6e
Support createOnlyInstance in model
This is part of solution for https://github.com/strongloop/loopback/issues/2924. Other PRs involved in the solution of issue https://github.com/strongloop/loopback/issues/2924 - https://github.com/strongloop/loopback-datasource-juggler/pull/1453 - https://github.com/strongloop/loopback-swagger/pull/92 @bajto...
diff --git a/lib/model.js b/lib/model.js index 37bd024be..98f528167 100644 --- a/lib/model.js +++ b/lib/model.js @@ -758,6 +758,14 @@ module.exports = function(registry) { var pathName = (scope.options && scope.options.http && scope.options.http.path) || scopeName; + var updateOnlyProps = this.getUpdat...
2
2
1
[{"id": "G0", "claim": "The new createOnlyInstance code in lib/model.js and lib/persisted-model.js should use a more descriptive name (e.g. hasUpdateOnlyProps) and const instead of var, per the LoopBack style guide.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"...
null
strongloop__loopback__3556
strongloop/loopback
3,556
defect
74cbe129186a164b79d26620323b3650dcb857e5
ebe2b8b50e12494dbb0b086de9a1e89dde7e3301
fix(validatePassword): Reword password too long error.
This password is hashed before entering the database, there is no need for a hardcoded size limit. Additionally, it looks very bad when a server error echoes back a plaintext password.
diff --git a/common/models/user.js b/common/models/user.js index 0f15a320d..2df9f58cc 100644 --- a/common/models/user.js +++ b/common/models/user.js @@ -16,7 +16,6 @@ var path = require('path'); var qs = require('querystring'); var SALT_WORK_FACTOR = 10; var crypto = require('crypto'); -var MAX_PASSWORD_LENGTH = 72;...
6
5
2
[{"id": "G0", "claim": "The hardcoded maximum password length cannot be removed: bcrypt truncates input to the first 72 characters, so without the limit a 73+-character password could be logged into by changing anything after the 72nd character.", "category": "security", "verdict": "supported", "priority": "P0", "scope...
null
strongloop__loopback__3693
strongloop/loopback
3,693
defect
6e0e60c2a215546d42c6a7b06b6d814409e99272
9a862a7a6efeacba85bf935047e095d93a9a3da3
fix(AccessContext): Tighten falsy userid/appid check
### Description An application may have a use for a falsy ID. Tightening the check from `(!id)` to `(id != null)` solves this problem. This PR is intended for the 2.x branch. See also #2374 ### Checklist <!-- - Please mark your choice with an "x" (i.e. [x], see https://github.com/blog/1375-task-lists-i...
diff --git a/lib/access-context.js b/lib/access-context.js index af04bdbba..4f32e7200 100644 --- a/lib/access-context.js +++ b/lib/access-context.js @@ -61,16 +61,16 @@ function AccessContext(context) { var principalType = context.principalType || Principal.USER; var principalId = context.principalId || undefined...
4
3
0
[{"id": "G0", "claim": "The Boolean() cast in isAuthenticated() is unnecessary, since with the != operators the inner condition is always a boolean.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The change should also be forward-ported to the m...
null
strongloop__loopback__3733
strongloop/loopback
3,733
defect
0a4940e31ef99ffbae98f91812f631a7d9a524cc
2079dd3282b4e44e1ad406178727132bb6050662
Fixed data sources not retaining the correct name value
### Description Data source names are not correctly assigned or retained in the resulting object. #### Related issues <!-- Please use the following link syntaxes: - connect to #49 (to reference issues in the current repository) - connect to strongloop/loopback#49 (to reference issues in another repository...
diff --git a/lib/application.js b/lib/application.js index 977cc3a4d..6564e3bf6 100644 --- a/lib/application.js +++ b/lib/application.js @@ -505,21 +505,21 @@ function dataSourcesFromConfig(name, config, connectorRegistry, registry) { 'can not create data source without config object'); if (typeof config.conn...
4
2
1
[{"id": "G0", "claim": "Landing this change in a non-major release may break applications out there that read the datasource name and rely on it matching the connector name.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use `const` instead of `var` for th...
null
strongloop__loopback__3954
strongloop/loopback
3,954
defect
6d23c2edd19f9a42d36983daa1e8b21077b54afb
ab90b5dfc03d8bb1ee36e3afd48afbe634c1a9d2
Fix ACL rules with a wildcard match ('*') for model property
fixes #3953
diff --git a/common/models/acl.js b/common/models/acl.js index c94e29fbc..3b13823d6 100644 --- a/common/models/acl.js +++ b/common/models/acl.js @@ -478,7 +478,8 @@ module.exports = function(ACL) { var effectiveACLs = []; var staticACLs = self.getStaticACLs(model.modelName, property); - this.find({where:...
2
1
1
[{"id": "G0", "claim": "A unit test is needed to verify the wildcard-model ACL fix and prevent regressions before the pull request can land.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Assertions inside the callback functions of the existing ACL test...
null
strongloop__loopback__4120
strongloop/loopback
4,120
defect
b77907ffa59c7031fcb3bb6dbff96894bc597ba4
2b0807535f2da1ef203f51033a538345ff1b3c01
Fix Model.exists() to work with remote connector
### Description The `GET /Models/:id/exists` service doesn't work for remote connector. It proxies to `GET /Models/:id/exists?id=${id}` endpoint except the required ### Checklist <!-- - Please mark your choice with an "x" (i.e. [x], see https://github.com/blog/1375-task-lists-in-gfm-issues-pulls-comments) - P...
diff --git a/lib/persisted-model.js b/lib/persisted-model.js index 2d5080f64..22f964f91 100644 --- a/lib/persisted-model.js +++ b/lib/persisted-model.js @@ -724,7 +724,8 @@ module.exports = function(registry) { description: 'Check whether a model instance exists in the data source.', accessType: 'READ', ...
2
1
0
[{"id": "G0", "claim": "The patch changes the exposed URL of Model.exists from GET /Models/exists?id=:id to GET /Models/:id/exists, which is backwards-incompatible, and the reviewer asks for a backwards-compatible fix.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", ...
null
strongloop__loopback__4262
strongloop/loopback
4,262
defect
9b1d4885ab869d977bc7d464aa861b4f88691862
9dd2257cd8ed76fc7a6ae48372d2dcd8c2e497bb
test: switch from PhantomJS to HeadlessChrome
Rework browser tests to run in Headless Chrome instead of PhantomJS, because the latter is no longer maintained. This allows us to remove transpilation to ES5 via babelify, which significantly improves speed of our tests. Fixes #4252 ### Checklist <!-- - Please mark your choice with an "x" (i.e. [x], see ...
diff --git a/.travis.yml b/.travis.yml index 2b9bf173f..806e70ad4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,18 +5,10 @@ node_js: - "10" - "12" +addons: + chrome: stable + after_success: npm run coverage -# see https://www.npmjs.com/package/phantomjs-prebuilt#continuous-integration -cache: - director...
2
1
1
[{"id": "G0", "claim": "Use `ChromiumHeadless` instead of `ChromeHeadless` as the launcher base, since Chromium is installed and it might \"just work\".", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Browser tests could perhaps be re-enabled on the ...
null
strongloop__loopback__659
strongloop/loopback
659
defect
f511bd38c9a0f5eb4594422afa7221f6bb223aeb
a575c9414d5dc658c33cd57c9a0bc5a56c3cbf82
lib/application: improve URL building algo
When running on Unix and no hostname is specified, use `0.0.0.0` as the hostname instead of `localhost`. When running on Windows and the hostname is either not specified or it is `0.0.0.0`, use `localhost` in the URL. The reason is that Windows cannot open URLs using `0.0.0.0` as a hostname. See also https://github.c...
diff --git a/lib/application.js b/lib/application.js index 67359426c..e1b466a00 100644 --- a/lib/application.js +++ b/lib/application.js @@ -436,9 +436,13 @@ app.listen = function(cb) { server.on('listening', function() { self.set('port', this.address().port); if (!self.get('url')) { - // A better def...
1
1
1
[{"id": "G0", "claim": "The fallback default host should be the address the server actually bound to (server.address().address) instead of the hard-coded '0.0.0.0', e.g. by doing app.set('host', server.address().address) when no host is configured.", "category": "correctness", "verdict": "supported", "priority": "P1", ...
null
strongloop__loopback__786
strongloop/loopback
786
defect
beb55ee9f428c64011fdea61ae6edab0732f7081
98d439050a0d721a09c381cbdd47966f2449dda7
Implement `app.defineMiddlewarePhases`
Implement method for registering (new) middleware phases. - If all names are new, then the phases are added just before the "routes" phase. - Otherwise the provided list of names is merged with the existing phases in such way that the order of phases is preserved. Example ``` // built-in phases: // initial, s...
diff --git a/lib/server-app.js b/lib/server-app.js index 7f7cda164..71ea7b0cd 100644 --- a/lib/server-app.js +++ b/lib/server-app.js @@ -54,6 +54,77 @@ proto.middlewareFromConfig = function(factory, config) { this.middleware(config.phase, handler); }; +/** + * Register (new) middleware phases. + * + * If all name...
1
1
0
[{"id": "G0", "claim": "The middleware phase definition logic should be refactored into the `loopback-phase` module (registering phases by relative order there) rather than implemented in server-app.js.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
strongswan__strongswan__1614
strongswan/strongswan
1,614
defect
bb6174a4d1114648a5c04d05fc5a66262bfe3248
18a34fec1eba5f9bf6e445d9a60ae8c97b891ce2
pki: add support for EST server label
Hello together, the PR adds support for EST server labels within the `pki est` and `pki estca` commands. As C is not my typical language I'd be happy to receive any feedback on the implementation. reference: EST [RFC 7030, Section 3.1](https://www.rfc-editor.org/rfc/rfc7030.html#section-3.1) Many thanks for y...
diff --git a/src/pki/commands/est.c b/src/pki/commands/est.c index 67e011f9631..b9859e9ba04 100644 --- a/src/pki/commands/est.c +++ b/src/pki/commands/est.c @@ -32,7 +32,7 @@ */ static int est() { - char *arg, *url = NULL, *file = NULL, *error = NULL; + char *arg, *url = NULL, *label = NULL, *file = NULL, *error = ...
2
2
2
[{"id": "G0", "claim": "In the label handling added to est_tls_init, `label` could be NULL and could be empty, so using `strdup()`/`strlen()` on it directly and checking the last character (integer underflow when `strlen()` returns 0) won't work, the `malloc()` length does not account for the null-terminator, and the f...
null
strophe__libstrophe__131
strophe/libstrophe
131
defect
c10c930e8f670c50c45c85b1039c474a7bebbdb5
41679e32e43394dac2b98f0d966ec192ebe8bfe5
memory leak in hash values fixed
One can check this leak's manifestations in a following way: ``` export CC='clang -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer -O1'; export CXX='clang++ -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer -O1'; ./bootstrap.sh && ./configure && make && make tests/test_hash && tests/tes...
diff --git a/src/hash.c b/src/hash.c index a524f5b6..dc9dd2c7 100644 --- a/src/hash.c +++ b/src/hash.c @@ -163,6 +163,8 @@ int hash_add(hash_t *table, const char * const key, void *data) entry->next = table->entries[table_index]; table->entries[table_index] = entry; table->num_keys++; + } else { ...
1
1
0
[{"id": "G0", "claim": "Since this patch the test arrays contain 6 entries, so the hardcoded `nkeys = 5` should be replaced by a number of keys found at compile time, e.g. via ARRAY_SIZE.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
strophe__libstrophe__184
strophe/libstrophe
184
defect
2bf1988b3c150fc7e77106076289b98d8ee3c4ce
9a254b4b838d1f43c0b74f8a246eeb7c29b05155
Implement XEP-0198
This PR started off by adding send-queue management API's As Stream Management (SM) support as defined in XEP-0198 was also requested and those features are tightly coupled, those topics had to be handled at the same time. In the current state this PR implements the complete XEP-0198 and adds 5 new API functions ...
diff --git a/.gitignore b/.gitignore index d7b5bba6..7e02676a 100644 --- a/.gitignore +++ b/.gitignore @@ -54,6 +54,7 @@ tests/test_rand tests/test_resolver tests/test_sasl tests/test_scram +tests/test_send_queue tests/test_sha1 tests/test_sha256 tests/test_sha512 diff --git a/Makefile.am b/Makefile.am index 71ab...
3
3
0
[{"id": "G0", "claim": "The new test file's header comment should say \"test_send_queue.c\" instead of the copied \"test_xmppaddr.c\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ENSURE_EQ macro defined in the test file should be moved in...
null
strophe__libstrophe__239
strophe/libstrophe
239
defect
5142eea2eb380f5430a590088a3c7d5d51b970a2
2e3757aaeba7e183668462d414e01a3d8839a0f8
Allow serializing SM state
It is useful in some applications to get a snapshot of the stream management state for storage outside the process, in order to recover from crashes and other things. The get_sm_state already present is not suitable for this because it returns a live object tied in to the current context and such, and containing much ...
diff --git a/Makefile.am b/Makefile.am index 9540b28f..394ac065 100644 --- a/Makefile.am +++ b/Makefile.am @@ -190,6 +190,7 @@ STATIC_TESTS = \ tests/test_jid \ tests/test_ctx \ tests/test_send_queue \ + tests/test_serialize_sm \ tests/test_string \ tests/test_resolver @@ -285,6 +286,11 @@ tests_test_send_q...
4
4
3
[{"id": "G0", "claim": "Exposing the SM state struct members makes them part of the API&ABI and is therefore not mergeable; the library should instead offer an opaque serialize/deserialize blob API (xmpp_sm_state_serialize/xmpp_sm_state_deserialize).", "category": "design", "verdict": "supported", "priority": "P1", "sc...
null
strukturag__libheif__1053
strukturag/libheif
1,053
defect
56ef61d8daa55b56d782e5d8ab6f0ed31b98b494
714c2acca956beca6c56162c0ee115246a8097e3
idat: protect against trying to output negative size
This one showed up in box fuzzing. I wasn't sure about creating a new unit test - can drop that part if you would prefer.
diff --git a/libheif/box.cc b/libheif/box.cc index e752ac48076..4d79942421b 100644 --- a/libheif/box.cc +++ b/libheif/box.cc @@ -2854,7 +2854,9 @@ std::string Box_idat::dump(Indent& indent) const std::ostringstream sstr; sstr << Box::dump(indent); - sstr << indent << "number of data bytes: " << get_box_size() ...
2
2
1
[{"id": "G0", "claim": "Add an else branch to Box_idat::dump that prints \"number of data bytes is invalid\" when get_box_size() is not greater than get_header_size(), instead of silently omitting the line.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "...
null
strukturag__libheif__1072
strukturag/libheif
1,072
defect
94c3b21d8df09b69c2c1752752e1810fd902d7d7
2aa79283c55d3184b2af1a2936b20ba80c3ff9b0
openjph: HT-J2K encoder
This is an early-exposure draft of an OpenJPH based High Throughput JPEG-2000 encoder. Thanks to @aous72 for OpenJPH and for debugging assistance. Also thanks to @Jamaika1 for suggesting this at #420. An OpenJPH-based decoder is practical, but is not yet written. In the meantime, the OpenJPEG decoder will work. ...
diff --git a/CMakeLists.txt b/CMakeLists.txt index fbfd99e79aa..82a80760150 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -177,6 +177,14 @@ if (WITH_FFMPEG_DECODER) find_package(FFMPEG COMPONENTS avcodec) endif () +# openjph + +plugin_option(OPENJPH_ENCODER "OpenJPH HT-J2K encoder" OFF ON) +# plugin_optio...
1
1
0
[{"id": "G0", "claim": "The new `heif_compression_HTJ2K` case in HeifContext::encode_image could be combined with the `heif_compression_JPEG2000` case above.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
strukturag__libheif__1246
strukturag/libheif
1,246
defect
a3f43c1b67fbdd9892cc101d231029d4fde10c19
0a0fec6d88955b67317c629f7a5f3262019923cd
libheif: add API to get UUID for user extension boxes
This is an alternative approach to solving #1244, adding a function to get the UUID (`extended_type` field). Also includes documentation, a unit test, and some refactoring of shared code.
diff --git a/libheif/api/libheif/heif_properties.cc b/libheif/api/libheif/heif_properties.cc index e076429a23..5f99d28d4e 100644 --- a/libheif/api/libheif/heif_properties.cc +++ b/libheif/api/libheif/heif_properties.cc @@ -334,16 +334,11 @@ struct heif_error heif_item_add_raw_property(const struct heif_context* context...
1
1
1
[{"id": "G0", "claim": "The new function should be named heif_item_get_property_uuid_type instead of heif_item_get_property_extended_type, so users who do not know the standard see that it belongs together with uuid boxes.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
strukturag__libheif__1556
strukturag/libheif
1,556
defect
c164ed719bd8fafd6cdc2181c6fc08afb7401b93
de9c5882324f1890df2fed81cf792bcdb2ee2872
feat: initial work on adding text items
From ISO/IEC 23008-12:2025 Section 6.10 Remaining work: - [ ] TextLayoutProperty (`txlo`) descriptive property - [ ] Default text layout - [ ] Transformative item support - [ ] Extended language tag (`elng`) descriptive property - [ ] Font item support
diff --git a/libheif/CMakeLists.txt b/libheif/CMakeLists.txt index 55d63136e1c..1c7c1c6ad56 100644 --- a/libheif/CMakeLists.txt +++ b/libheif/CMakeLists.txt @@ -25,6 +25,7 @@ set(libheif_headers api/libheif/heif_context.h api/libheif/heif_tiling.h api/libheif/heif_uncompressed.h + api/...
4
4
2
[{"id": "G0", "claim": "`heif_item_id` is unsigned, so probably 0 should be used as the invalid-item return value of `heif_text_item_get_id()` (and the documented -1) since item IDs may not be zero.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "`he...
null
strukturag__libheif__1559
strukturag/libheif
1,559
defect
d1542cecf46d4be000d586f5c1168f0476fd12ab
18bb58de4739ce349d45c8b480777dba3ac1c9b5
text: add extended language property support
I went back-and-forward a bit on whether adding and getting should take the item or the item id. Would appreciate feedback on that.
diff --git a/examples/heif_info.cc b/examples/heif_info.cc index b45b4e35cff..fda0b43f14b 100644 --- a/examples/heif_info.cc +++ b/examples/heif_info.cc @@ -38,10 +38,12 @@ #endif #include <libheif/heif.h> +#include <libheif/heif_library.h> #include <libheif/heif_regions.h> #include <libheif/heif_properties.h> #...
3
2
0
[{"id": "G0", "claim": "heif_item_get_property_extended_language should take a heif_text_item* instead of item id plus property id (unless elng turns out usable on non-text items), and the logic should be moved out of the api/ directory into the main library.", "category": "design", "verdict": "uncertain", "priority": ...
null
strukturag__libheif__609
strukturag/libheif
609
defect
88085bacb3138c44400fb8f395436732c96a3b2b
6579dff8cb007dd3ff67d32b15e116663f84319d
CI: Run clang-tidy
This can help finding some errors / possible optimizations.
diff --git a/examples/heif_enc.cc b/examples/heif_enc.cc index 4729adef3b..00c4f9f2df 100644 --- a/examples/heif_enc.cc +++ b/examples/heif_enc.cc @@ -972,9 +972,9 @@ void list_encoder_parameters(heif_encoder* encoder) } -void set_params(struct heif_encoder* encoder, std::vector<std::string> params) +void set_para...
1
1
0
[{"id": "G0", "claim": "The `lround` calls in Op_YCbCr420_to_RGB24::convert_colorspace should be replaced with a simple cast altogether (as in 499a0a31d79936042c7abeef2513bb0b56b81489) because this code is time critical.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
stryker-mutator__stryker-js__3787
stryker-mutator/stryker-js
3,787
defect
a9f793e1fa203dabe5af8b3580fde39349d500ef
3a27c34d775cb182c72bb5e6de06fe0a5b624347
fix(karma-runner): bug #3780
- fix bug, #3780 - add unit test for that same bug, - correct description in `CONTRIBUTING.md` on how to run stryker-js locally
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index bc53f76e40..65a1b72bde 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -52,7 +52,10 @@ To run local changes you made in StrykerJS in an actual project you have two opt ```sh cd my-project open stryker.conf.json - # Add `"plugins": ["/home/use...
3
3
1
[{"id": "G0", "claim": "The changes to package-lock.json should not be included in this pull request.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The added line `window.__stryker__ = window.__stryker__ || {};` should use the existing `${NAMES...
null
stryker-mutator__stryker-js__3802
stryker-mutator/stryker-js
3,802
defect
7f8e27fa2d589e84295e1525b2b87d807cd0c606
c98244fdb625cd24be4484e5d538f19fd0a4f4d8
feat(core): add support for pnpm as package manager
stryker init command now has the option to use pnpm instead of npm as package manager. ![image](https://user-images.githubusercontent.com/62144407/197364548-856b2d5a-222b-49b1-bbf9-4118c39307b9.png) Resolves #3448 and closes #3221 (duplicates)
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 65a1b72bde..2172bcb83e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -63,7 +63,7 @@ To run local changes you made in StrykerJS in an actual project you have two opt ## VSCode environment configuration -We've chosen to **check in in our vscode configurati...
2
2
1
[{"id": "G0", "claim": "The new getInstallCommand method should use a switch statement instead of an if/else-if chain.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Because automatic plugin detection fails with pnpm's installation model, `stryk...
null
stryker-mutator__stryker-js__3814
stryker-mutator/stryker-js
3,814
defect
c3ce6fedc79cf00e65322d9a5fa8c8d832c4209c
75de35da5d6affd8d3355010d1e269cd9b2082ca
feat: add argument --dryRunOnly to only run initial tests
This is to provide a better option to check if the Stryker configuration is correct. Prevent rollbacks, as a dry-run takes less time than a full test run. closes: #3088
diff --git a/packages/api/schema/stryker-core.json b/packages/api/schema/stryker-core.json index d028e7ec1d..893ba337d7 100644 --- a/packages/api/schema/stryker-core.json +++ b/packages/api/schema/stryker-core.json @@ -290,6 +290,11 @@ "$ref": "#/definitions/dashboardOptions", "default": {} }, + "...
4
4
1
[{"id": "G0", "claim": "The new CLI argument should be named in camelCase (--dryRun) instead of kebab-case (--dry-run), matching the project's convention for cli arguments.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The option's description should be...
null
stryker-mutator__stryker-js__3821
stryker-mutator/stryker-js
3,821
defect
26be04cb36b4c33822b6dcb74cd6759c4c71669f
d0901c4108d8350849e20fa5464db5273b89c636
feat: add worker count env variable to processes
Fixes #3231
diff --git a/packages/core/src/checker/checker-child-process-proxy.ts b/packages/core/src/checker/checker-child-process-proxy.ts index d2c66e06d7..4ebcec9bd4 100644 --- a/packages/core/src/checker/checker-child-process-proxy.ts +++ b/packages/core/src/checker/checker-child-process-proxy.ts @@ -6,6 +6,7 @@ import { Disp...
7
7
3
[{"id": "G0", "claim": "The IdGenerator class should replace its childId field and constructor initialization with a single field initializer (private id = 0).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 'worker-id-generator' token should be added...
null
stryker-mutator__stryker-js__3842
stryker-mutator/stryker-js
3,842
defect
df7467e90f074c886f2e3a4a84c905202767da99
a055134b43ae731a2bfb51bc11a50fbe4bb056c8
Warn when Mutator in directive does not exist
Closes #3812 When a directive references an unknown Mutator, log a warning that this directive is not used. **Mutated code** ```js const compare = (a, b) => { // Stryker disable HelloThere // Stryker disable next-line Equality: Wrong Mutator name return a - b >= 0 ? 1 : -1; } module.exports = { co...
diff --git a/packages/instrumenter/src/instrumenter.ts b/packages/instrumenter/src/instrumenter.ts index 8a590e9c6b..38aaa95a82 100644 --- a/packages/instrumenter/src/instrumenter.ts +++ b/packages/instrumenter/src/instrumenter.ts @@ -2,7 +2,7 @@ import path from 'path'; import { tokens, commonTokens } from '@stryke...
6
6
2
[{"id": "G0", "claim": "The author questions whether the assumed position (line -1) used when collecting a mutant for an unused directive is correct, whether it is confusing that such an ignored mutant shows a diff on the comment without an added line in the HTML view, and whether the reported line number is off by one...
null
stryker-mutator__stryker-js__4290
stryker-mutator/stryker-js
4,290
defect
f0f863c9912f378f733698a4932cfc7366b24448
f6f6420331f8d02fd5d5d86215d65750d5fce04c
set NODE_ENV to test in vitest runner
fix #4289 I would like to add tests but I'm not really sure how, there are a lot of configuration needed, and coping from the jest test is not really fit
diff --git a/packages/vitest-runner/src/vitest-test-runner.ts b/packages/vitest-runner/src/vitest-test-runner.ts index 9e875cb655..2640bdac05 100644 --- a/packages/vitest-runner/src/vitest-test-runner.ts +++ b/packages/vitest-runner/src/vitest-test-runner.ts @@ -89,6 +89,7 @@ export class VitestTestRunner implements Te...
2
2
1
[{"id": "G0", "claim": "The setEnv() call should be made in init() instead of in run().", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A unit test for the NODE_ENV behaviour should be added in test/unit/vitest-runner.spec.ts, which is possible once the e...
null
stryker-mutator__stryker-js__4326
stryker-mutator/stryker-js
4,326
defect
7de303bd9145be7b8a25ad12b84f68c6a8d07165
740f9f8eb3e24204d89bc9a6fba70f728d4d8b2d
Feature: added tap runner force bail
Added optional `forceBail` option to the `tap-runner`, because test runners which run the tests in a child process that gets killed by Stryker don't output the test result. Fixes #4276
diff --git a/e2e/test/tap-ava/stryker.conf.json b/e2e/test/tap-ava/stryker.conf.json index 385cc8f382..67e2da7ce8 100644 --- a/e2e/test/tap-ava/stryker.conf.json +++ b/e2e/test/tap-ava/stryker.conf.json @@ -3,11 +3,11 @@ "testRunner": "tap", "concurrency": 1, "reporters": ["json", "clear-text", "html", "event-...
4
4
1
[{"id": "G0", "claim": "The forceBail schema description should read \"Force a running test process to hard-exit after first bail test failure when disableBail is false.\" instead of the vaguer wording.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
stryker-mutator__stryker-js__4407
stryker-mutator/stryker-js
4,407
defect
068ef9cba4124eef671ba3c1ff6697897264e678
11098a3747352cadf971ead9d097c850a84ac454
feat(string-literals) change mutation of Symbols
This PR fixes the issue as described in https://github.com/stryker-mutator/stryker-js/issues/3870. String literals and templates inside of Symbol declarations will no longer de mutated. closes #3870
diff --git a/packages/instrumenter/src/mutators/string-literal-mutator.ts b/packages/instrumenter/src/mutators/string-literal-mutator.ts index 0534ecc158..b27c68ea51 100644 --- a/packages/instrumenter/src/mutators/string-literal-mutator.ts +++ b/packages/instrumenter/src/mutators/string-literal-mutator.ts @@ -8,17 +8,1...
2
2
1
[{"id": "G0", "claim": "isValidParentForStringLiteral now duplicates the logic of isValidParentForTemplateLiteral; the shared implementation should live in one place (one calling the other, or both calling a common isValidParent).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "intr...
null
stryker-mutator__stryker-js__4477
stryker-mutator/stryker-js
4,477
defect
a286204db5967bac33b96214239d9c8480931668
b5e3086164d1813598c5bf837081573b24544ad3
fix(core): short circuit test executor when no tests and allowEmpty
This should fix #4475 by short circuiting the test executor when no tests found and `allowEmpty=true` (same behaviour as `dryRunOnly`): - prevent thresholds evaluation - avoid unnecessary run of the mutation executor (save some processing time)
diff --git a/packages/core/src/process/4-mutation-test-executor.ts b/packages/core/src/process/4-mutation-test-executor.ts index 6934e467b5..d6ed3afec7 100644 --- a/packages/core/src/process/4-mutation-test-executor.ts +++ b/packages/core/src/process/4-mutation-test-executor.ts @@ -2,7 +2,7 @@ import { from, partition,...
1
1
1
[{"id": "G0", "claim": "A test should also be added covering that the executor does not short circuit when no tests are found and allowEmpty is disabled.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
stryker-mutator__stryker-js__4918
stryker-mutator/stryker-js
4,918
defect
08c0eaafaef66ca3c3902e5e18363e6ec67e535e
51907fa5f717ecf845158b1d474e72bfa1c4bdc0
feat(instrumenter): add expression mutator for Date (#4917)
It would be interesting to have mutation produced for operation on Date. Expression like : ```typescript aDate.setDate(aDate.getDate()+1) ``` will produce interesting mutation based on the +1. It would also be interesting to have mutation changing the `setDate` or `getDate` operation (as updating month and not...
diff --git a/packages/instrumenter/src/mutators/method-expression-mutator.ts b/packages/instrumenter/src/mutators/method-expression-mutator.ts index 56731bd17e..c58bdd034c 100644 --- a/packages/instrumenter/src/mutators/method-expression-mutator.ts +++ b/packages/instrumenter/src/mutators/method-expression-mutator.ts @...
1
1
0
[{"id": "G0", "claim": "The discussion in issue #4917 about the Date mutator design must be resolved before this pull request is merged.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
stryker-mutator__stryker-js__4945
stryker-mutator/stryker-js
4,945
defect
494045d3686c478bee9e59f2b961f446bb755a5a
01b0002e45d56de5ffec6eb03d35e0663848e0c7
Add "% score of covered" column to the clear text report
The metric `mutationScoreBasedOnCoveredCode` is already calculated by Stryker and is present in the metrics object. This PR shows this additional metric in the clear text report. Continuing the trend from https://github.com/stryker-mutator/mutation-testing-elements/pull/3310 Thanks to @vivganes for motivation
diff --git a/packages/core/src/reporters/clear-text-score-table.ts b/packages/core/src/reporters/clear-text-score-table.ts index 24b4ef1876..8e5cbbcbca 100644 --- a/packages/core/src/reporters/clear-text-score-table.ts +++ b/packages/core/src/reporters/clear-text-score-table.ts @@ -78,7 +78,7 @@ class MutationScoreColu...
7
7
4
[{"id": "G0", "claim": "The clear-text table should implement the same proposal as mutation-testing-elements — a '% Mutation score' group header spanning the total and covered score columns — to shave off an entire column's worth of width.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "intr...
null
stryker-mutator__stryker-js__5016
stryker-mutator/stryker-js
5,016
defect
2faded7848d67ec306e1f65a00586c5cd3f6604d
04ed6d9f4d0bc2354afd5d9a163cc35146da0a91
fix: jest prerelease support (#5015)
Previously, stryker failed `jasmine2-setup-coverage-analysis.cts` runTest ... node_modules/jest-runner/build/index.js:340:7), Cannot read properties of undefined (reading 'getEnv') TypeError: Cannot read properties of undefined (reading 'getEnv') When using the latest jest prerelease version (30.0.0...
diff --git a/packages/jest-runner/src/jest-plugins/with-coverage-analysis.ts b/packages/jest-runner/src/jest-plugins/with-coverage-analysis.ts index 22b45be647..22345e319e 100644 --- a/packages/jest-runner/src/jest-plugins/with-coverage-analysis.ts +++ b/packages/jest-runner/src/jest-plugins/with-coverage-analysis.ts @...
1
1
1
[{"id": "G0", "claim": "Unit tests should be added for the newly coerced Jest-version detection (\"Could we add a unit test for this?\"), following the existing tests in jest-test-runner.spec.ts.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
stryker-mutator__stryker-js__5243
stryker-mutator/stryker-js
5,243
defect
7545d087ab6775e7e818c1627636b90df7e498cd
69d0978e12057e26780999ea5cb9ae43c171a16d
fix(vitest-runner): Ensure no test failure screenshots from Vitest
When using browser environments in Vitest, browser screenshots on test failure are now enabled by default. This is unnecessary overhead when using StrykerJS, so this should be disabled instead. Closes #5242
diff --git a/packages/vitest-runner/src/vitest-test-runner.ts b/packages/vitest-runner/src/vitest-test-runner.ts index 5c45e60a69..a8f415d855 100644 --- a/packages/vitest-runner/src/vitest-test-runner.ts +++ b/packages/vitest-runner/src/vitest-test-runner.ts @@ -67,6 +67,7 @@ export class VitestTestRunner implements Te...
1
1
0
[{"id": "G0", "claim": "The new test could use fs.glob instead of fs.existsSync on a single hard-coded screenshot path.", "category": "testing", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
stryker-mutator__stryker-js__5498
stryker-mutator/stryker-js
5,498
defect
e15f4e9bb810a04d7f3bdc69adb61a7d44185724
a5a2dd07ce013f868c9748a8cff88ba297febc5c
fix(server): do not overwrite mutate config with params
Resolves #5496
diff --git a/packages/core/src/fs/project-reader.ts b/packages/core/src/fs/project-reader.ts index 72b3259605..1803ba8f35 100644 --- a/packages/core/src/fs/project-reader.ts +++ b/packages/core/src/fs/project-reader.ts @@ -83,9 +83,12 @@ export class ProjectReader { this.force = force; } - public async read(...
3
3
1
[{"id": "G0", "claim": "The new `targetMutatePatterns` parameter should be typed `string[] | undefined` instead of using the optional-parameter `?`, so that forgetting to pass `undefined` is a compile error.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
stryker-mutator__stryker-js__5511
stryker-mutator/stryker-js
5,511
defect
9351961563e9ff656cb9e828b0a2f2cf915d463b
152ae387e10563f31fd9584a5601246c5f88b573
feat(init):Added Core Installation during init
Resolved #5505 - Added stryker-mutator/core as a peer dependency while initializing stryker in both custom and normal init - Added test for all the package installers as well as for the case where testRunner is the command.
diff --git a/packages/core/src/initializer/stryker-initializer.ts b/packages/core/src/initializer/stryker-initializer.ts index 066bbc737b..27beb56356 100644 --- a/packages/core/src/initializer/stryker-initializer.ts +++ b/packages/core/src/initializer/stryker-initializer.ts @@ -113,7 +113,7 @@ export class StrykerIniti...
2
2
0
[{"id": "G0", "claim": "Rename the test title to 'should install core package and any additional dependencies' so it also says the core package is installed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Rename the private method ensureCoreSe...
null
stryker-mutator__stryker-js__5818
stryker-mutator/stryker-js
5,818
defect
82ddc0dcf503695bb764996d84eda9e32e3cf2ae
136d906a9b91104f941c98e7c8d8eac1d0db86e7
feat(cli): allow percentage-based concurrency configuration (e.g., "50%")
- Allow concurrency option to accept percentage strings (e.g., "50%") in addition to absolute numbers - Switch from os.cpus() to os.availableParallelism() for more accurate CPU count detection Closes #5808
diff --git a/docs/configuration.md b/docs/configuration.md index 8c92254f59..649672f074 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -126,14 +126,16 @@ Settings for the `clear-text` reporter. - `reportScoreTable`: Indicates whether or not to log score table. - `skipFull`: Indicates whether rows w...
1
1
0
[{"id": "G0", "claim": "The schema could add a \"Default 100%\" entry for the concurrency field so that it becomes a required field in the schema, removing a code path.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
sts10__tidy__25
sts10/tidy
25
defect
04b776118c62ea567009c358ab5295d6bb213fc8
079ba8da36b0e9d8b94ea6787f7a0198933f727e
Add option for user to normalize Unicode of all words
Without this, Tidy has trouble counting and handling accented characters. I think [this crate](https://crates.io/crates/unicode-normalization) and my new function solved this, but I need to write some tests. See [this Rust Playground for an illustration issue](https://play.rust-lang.org/?version=stable&mode=debug&e...
diff --git a/Cargo.lock b/Cargo.lock index 3ac0cfb..c1c98ad 100755 --- a/Cargo.lock +++ b/Cargo.lock @@ -307,21 +307,46 @@ dependencies = [ [[package]] name = "tidy" -version = "0.2.78" +version = "0.2.79" dependencies = [ "clap", "itertools", "memchr", "radix_fmt", "rand", + "unicode-normalization", ] ...
2
2
1
[{"id": "G0", "claim": "The trim + normalize_unicode path allocates an intermediate String; since UnicodeNormalization is implemented for char iterators it could be applied to an iterator (e.g. new_word.trim().chars().nfc().collect::<String>()) to avoid it.", "category": "performance", "verdict": "supported", "priority...
null
stumpy-dev__stumpy__1001
stumpy-dev/stumpy
1,001
defect
f04aa7c65056444c59bef807f44cbf0538e2ce78
7eccc269b5b5ce07eb26e04928fbdfac0a85feaa
Fix #998: Speed up stumpi and aampi
See #998 . - [x] Speed up stumpi, `_update_egress` method - [x] Speed up stumpi, `_update` method - [x] Speed up aampi, `_update_egress` method - [x] Speed up aampi, `_update` method
diff --git a/stumpy/stumpi.py b/stumpy/stumpi.py index 1731b2808..f79a3c42f 100644 --- a/stumpy/stumpi.py +++ b/stumpy/stumpi.py @@ -3,6 +3,7 @@ # STUMPY is a trademark of TD Ameritrade IP Company, Inc. All rights reserved. import numpy as np +from numba import njit from . import config, core, stump from .aampi...
7
6
0
[{"id": "G0", "claim": "The `_update_egress_PI` helper should be moved to `core.py` (with a test) for consistency, instead of being defined on `stumpi` and redefined for `aampi`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The docstring's array shape ...
null
stumpy-dev__stumpy__1015
stumpy-dev/stumpy
1,015
defect
3077d0ddfb315464321dc86f8ec3bf2cab9ce3b1
5d5a039c2e016ed72c03a08fdcc38a0262940af1
Fixed #1014 Fix max_matches=None bug
This fix addresses issue #1014 by not slicing the `query_matches` if `max_matches` is set to `None` for `motifs` (which in turn calls `_motifs` with `max_matches=np.inf`. I made an initial effort to add testing, but I'm sure there are better ways to do so. # Pull Request Checklist - [x] Fork, clone, and checko...
diff --git a/stumpy/aamp_motifs.py b/stumpy/aamp_motifs.py index 0d5f67dd1..e08204dd4 100644 --- a/stumpy/aamp_motifs.py +++ b/stumpy/aamp_motifs.py @@ -126,8 +126,12 @@ def _aamp_motifs( ) if len(query_matches) > min_neighbors: - motif_distances.append(query_matches[:max_matches, 0]) - ...
2
2
1
[{"id": "G0", "claim": "The max_matches=None case should default max_matches to P.shape[-1] (the explicit integer number of subsequences in T) instead of the np.inf default, which was a poor choice and makes the isinf workaround necessary.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "pre_...
null
stumpy-dev__stumpy__1070
stumpy-dev/stumpy
1,070
defect
bbc97e4c8ba7a4cb4976d0afaf7ab0cacefbaf87
0c022a76c75653c42113b8950399da94754b5a4e
Fixed #1069 Added numba cache dir for pytest
See #1069 # Pull Request Checklist Below is a simple checklist but please do not hesitate to ask for assistance! - [x] Fork, clone, and checkout the newest version of the code - [x] Create a new branch - [x] Make necessary code changes - [x] Install `black` (i.e., `python -m pip install black` or `conda in...
diff --git a/stumpy/cache.py b/stumpy/cache.py index fbaf35230..7e3a049e0 100644 --- a/stumpy/cache.py +++ b/stumpy/cache.py @@ -5,6 +5,7 @@ import ast import importlib import inspect +import os import pathlib import site import warnings @@ -102,48 +103,57 @@ def _enable(): raise -def _clear(...
8
6
2
[{"id": "G0", "claim": "A warning should be raised so the user knows that the fastmath flag was not set because NUMBA JIT is disabled.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "In _clear and _get_cache, cache_dir should be assigned directly (...
null
stumpy-dev__stumpy__1126
stumpy-dev/stumpy
1,126
defect
dad6e03770d8c5fd9204c9bb0d35f69ab2f45156
d0b237586cbaea39d0da51f01acef26d529110fe
Refactor/sdp structure cleanup
This is to address `PR 1` described in [this comment](https://github.com/stumpy-dev/stumpy/pull/1118#issuecomment-3854039523). Have copied the corresponding notes below: > 1. Create a new sdp.py file > 2. Move _sliding_dot_product to sdp.py and call it _njit_sliding_dot_product > 3. Removing the core._sliding_do...
diff --git a/stumpy/core.py b/stumpy/core.py index e038a00a0..c393fea86 100644 --- a/stumpy/core.py +++ b/stumpy/core.py @@ -12,10 +12,9 @@ from numba import cuda, njit, prange from scipy import linalg from scipy.ndimage import maximum_filter1d, minimum_filter1d -from scipy.signal import convolve from scipy.spatial...
4
4
2
[{"id": "G0", "claim": "The convolve-based implementation of core.sliding_dot_product from main should be handled in this PR by copying it into the sdp module as _convolve_sliding_dot_product, with sdp._sliding_dot_product pointing to it.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "intro...
null
stumpy-dev__stumpy__170
stumpy-dev/stumpy
170
defect
bf8df9e67c3705faa14091caf3e937187860274f
8dccdfc15f8820dc45370c30c62b1b6154c4f289
Refactor scrump test
This is still work in progress on some things from #113 . First of all, I corrected a small indexing error in SCRUMP. For now I removed the checks for the exclusion zone, because also for A_B joins this will not be necessary. I think I have an idea how they can be implemented. Then I refactored the SCRUMP tests...
diff --git a/stumpy/scrump.py b/stumpy/scrump.py index 6a8e75de9..c81eccf52 100644 --- a/stumpy/scrump.py +++ b/stumpy/scrump.py @@ -46,12 +46,12 @@ def _get_max_order_idx(m, n, orders, start, percentage): max_n_dist = 0 for order_idx in range(orders.shape[0]): k = orders[order_idx] - max_n_di...
4
4
0
[{"id": "G0", "claim": "The removed `ranges` docstring entry should be kept in and renamed to `orders_ranges` so the parameter stays documented.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `excl_zone : int` docstring entry should be deleted...
null
stumpy-dev__stumpy__553
stumpy-dev/stumpy
553
defect
7c20aceb52385cc7d3cd519312423ac16518dab8
d086d6bc5ecaace0e0f842634c5b07dd17357a61
[WIP] Add `mmotifs` and `aamp_mmoitfs` Unit Tests
# Pull Request Checklist Below is a simple checklist but please do not hesitate to ask for assistance! - [x] Fork, clone, and checkout the newest version of the code - [x] Create a new branch - [x] Make necessary code changes - [x] Install `black` (i.e., `python -m pip install black` or `conda install -c conda...
diff --git a/test.sh b/test.sh index 03fc1dde8..657508abd 100755 --- a/test.sh +++ b/test.sh @@ -107,6 +107,8 @@ test_unit() check_errs $? pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_motifs.py check_errs $? + pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWa...
9
5
1
[{"id": "G0", "claim": "mmotifs returns no motif pair when min_neighbors=1 because only the self-match is found and `len(query_matches) > min_neighbors` is then False; the author suggests using `query_matches.size` or `>=` and asks whether min_neighbors should guarantee at least one motif pair.", "category": "correctne...
null
stumpy-dev__stumpy__613
stumpy-dev/stumpy
613
defect
998e5d2017ed3d01d1a3993ce01e96de3dfd5254
4fcf6b60b319bda1eaab0583de57a805a6a11f06
Fixed #612 and #611
This PR addresses issues #612 (adding line6 of algorithm2 of [scrimp paper](https://www.cs.ucr.edu/~eamonn/SCRIMP_ICDM_camera_ready_updated.pdf)) and #611 (improving docstrings in `stumpy/scrump.py`). In figure below, we can see the impact of the added part on the estimated matrix profile. For the sake of visualiza...
diff --git a/stumpy/scrump.py b/stumpy/scrump.py index 002847507..57118f0a7 100644 --- a/stumpy/scrump.py +++ b/stumpy/scrump.py @@ -86,6 +86,10 @@ def _compute_PI( excl_zone : int The half width for the exclusion zone relative to the `i`. + Returns + ------- + None + Notes ----- ...
3
2
0
[{"id": "G0", "claim": "The self-join updates should use combined indexing such as `P_squared[thread_idx, mask] =` and `I[thread_idx, mask] =` (and likewise `P_NORM[thread_idx, mask]` in scraamp) instead of chained `arr[thread_idx][mask] =`.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scop...
null