kibana/packages/core/saved-objects
Jeramy Soucy c5faa31faf
[Saved Objects] Fixes namespace argument to encryption calls in repository update method (#149074)
Closes #149037.

## Summary

The namespace argument in Saved Object Repository Update method's call
to optionallyEncryptAttributes was being supplied by an unqualified
optional parameter. This means that when the namespace option was not
defined, the current namespace was not being passed to the encrypt
method. This PR updates the argument to the qualified namespace
determined by the optional parameter and the Spaces Extension's
getCurrentNamespace method.

Unit tests have also been updated to catch this case should it occur in
the future. The same consideration will be made for security extension
unit tests in [PR
148165](https://github.com/elastic/kibana/pull/148165).

## Testing
To test, follow the instructions given in [the
issue](https://github.com/elastic/kibana/issues/149037).
2023-01-19 12:10:31 -05:00
..
core-saved-objects-api-browser [Saved Objects] Fix deprecated Browser SO types (#149195) 2023-01-19 05:23:31 -07:00
core-saved-objects-api-server Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
core-saved-objects-api-server-internal [Saved Objects] Fixes namespace argument to encryption calls in repository update method (#149074) 2023-01-19 12:10:31 -05:00
core-saved-objects-api-server-mocks Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
core-saved-objects-base-server-internal Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
core-saved-objects-base-server-mocks Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
core-saved-objects-browser [Saved Objects] Browser-side client deprecation notice (#148979) 2023-01-18 04:03:23 -07:00
core-saved-objects-browser-internal [Saved Objects] Browser-side client deprecation notice (#148979) 2023-01-18 04:03:23 -07:00
core-saved-objects-browser-mocks [Saved Objects] Browser-side client deprecation notice (#148979) 2023-01-18 04:03:23 -07:00
core-saved-objects-common [Saved Objects] Browser-side client deprecation notice (#148979) 2023-01-18 04:03:23 -07:00
core-saved-objects-import-export-server-internal Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
core-saved-objects-import-export-server-mocks Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
core-saved-objects-migration-server-internal Check diffMappings after WAIT_FOR_YELLOW_SOURCE (#148980) 2023-01-17 12:20:56 +01:00
core-saved-objects-migration-server-mocks Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
core-saved-objects-server [Saved Objects] Fix deprecated Browser SO types (#149195) 2023-01-19 05:23:31 -07:00
core-saved-objects-server-internal Increase the maximum number of saved objects that could be installed with a Fleet package (#148441) 2023-01-13 14:56:46 +01:00
core-saved-objects-server-mocks Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
core-saved-objects-utils-server Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00