Skip to content

Fixing encryption create with contentResponseOnWriteEnabled false#23218

Merged
simplynaveen20 merged 3 commits intoAzure:mainfrom
simplynaveen20:users/nakumar/supportNoContentWriteOnEncryption
Jul 29, 2021
Merged

Fixing encryption create with contentResponseOnWriteEnabled false#23218
simplynaveen20 merged 3 commits intoAzure:mainfrom
simplynaveen20:users/nakumar/supportNoContentWriteOnEncryption

Conversation

@simplynaveen20
Copy link
Member

@simplynaveen20 simplynaveen20 commented Jul 28, 2021

Currently we are getting below exception on createItem as code is trying to decrypt the data for null response when contentResponseOnWriteEnabled is false(default), this PR will fix it.

Caused by: java.lang.AssertionError
	at com.azure.cosmos.encryption.implementation.EncryptionProcessor.decrypt(EncryptionProcessor.java:353)
	at com.azure.cosmos.encryption.CosmosEncryptionAsyncContainer.lambda$createItemHelper$13(CosmosEncryptionAsyncContainer.java:383)
	at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:125)
	at reactor.core.publisher.MonoPublishOn$PublishOnSubscriber.run(MonoPublishOn.java:181)
	at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:68)
	at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:28)

Copy link
Contributor

@moderakh moderakh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. some minor comments.
Thanks.

Copy link
Member

@FabianMeiswinkel FabianMeiswinkel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@simplynaveen20 simplynaveen20 merged commit 3434ae4 into Azure:main Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants