-
-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 8.0.x: (44 commits) 💚 Putting back distroless docker image generations since gcr.io/distroless/java21-debian12 is available now 🐛 Fix bulk post with writeMode=update does not replace the matching documents but just updates the passed properties ✨ Cookie based authentication ♻️ Use patter matching for switch in AclVarsInterpolator ♻️ Refactor ACLRegistry to use Predicate<Request<?>> ♻️ Refactor OperatorsBlacklist and GetRoleService to use ACLRegistry ✨ Programmatic configuration of ACLs using both allow and veto predicates 💡 Remove reference to worker-threads in comments ⚰️ Remove worker-threads configuration option since RESTHeart now uses Virtual Threads ✨ Allow to create indexes with collation ✨ if no content type is specified MogoService assumes it is application/json ♻️ Restore blocking attribute of PingService ⚡ Replace Undertow's ByteBufferPool with FastByteBufferPool for Virtual Thread compatibility 🔧 Since JIT compilation conflicts with Virtual Threads, the 'truffle-runtime' is excluded from 'restheart.jar' 🐛 "Prevent null return in HashMapLoadingCache.getLoading() to address potential multithreading cache issue 🥅 Handle mongodb error 241 (ConversionFailure) to return status code 400 🐛 Add truffle-runtime to restheart. 🐛 Fix reflect configuration for CaffeineLoadingCache ✅ Fix PluginsTest after PluginsScanner update 🐛 Can build native image again. Don't use virtual threads on native image, since GraalVM still doesn't support it. ...
- Loading branch information
Showing
106 changed files
with
2,389 additions
and
3,563 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,15 +19,18 @@ | |
*/ | ||
package org.restheart.exchange; | ||
|
||
import com.google.common.reflect.TypeToken; | ||
import io.undertow.connector.PooledByteBuffer; | ||
import io.undertow.server.HttpServerExchange; | ||
import io.undertow.util.Headers; | ||
import java.io.IOException; | ||
import java.lang.reflect.Type; | ||
import java.nio.ByteBuffer; | ||
|
||
import org.restheart.utils.BuffersUtils; | ||
|
||
import com.google.common.reflect.TypeToken; | ||
|
||
import io.undertow.connector.PooledByteBuffer; | ||
import io.undertow.server.HttpServerExchange; | ||
import io.undertow.util.Headers; | ||
|
||
/** | ||
* | ||
* @author Andrea Di Cesare {@literal <[email protected]>} | ||
|
@@ -63,6 +66,9 @@ public byte[] readContent() throws IOException { | |
* | ||
* allocates the PooledByteBuffer array so close() must be invoked | ||
* to avoid memory leaks | ||
* | ||
* @param content | ||
* @throws java.io.IOException | ||
*/ | ||
@Override | ||
public void writeContent(byte[] content) throws IOException { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.