[Android] Remote access: align file routes under session authentication block
Nicolas Pomepuy
git at videolan.org
Thu Sep 10 04:41:21 UTC 2026
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Wed Sep 9 15:04:20 2026 +0200| [f0360a8a88c903f00be8d88988bfc91908e751c4] | committer: Nicolas Pomepuy
Remote access: align file routes under session authentication block
> https://code.videolan.org/videolan/vlc-android/commit/f0360a8a88c903f00be8d88988bfc91908e751c4
---
.../videolan/vlc/remoteaccessserver/routing/RemoteAccessRouting.kt | 1 -
.../vlc/remoteaccessserver/routing/RemoteAccessRoutingFile.kt | 5 +----
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/application/remote-access-server/src/main/java/org/videolan/vlc/remoteaccessserver/routing/RemoteAccessRouting.kt b/application/remote-access-server/src/main/java/org/videolan/vlc/remoteaccessserver/routing/RemoteAccessRouting.kt
index b948e04722..5e80cad35d 100644
--- a/application/remote-access-server/src/main/java/org/videolan/vlc/remoteaccessserver/routing/RemoteAccessRouting.kt
+++ b/application/remote-access-server/src/main/java/org/videolan/vlc/remoteaccessserver/routing/RemoteAccessRouting.kt
@@ -43,7 +43,6 @@ fun Route.setupRouting(appContext: Context, scope: CoroutineScope) {
staticFiles("", File(getServerFiles(appContext)))
publicAuthRouting(appContext, scope, settings)
- publicFileRouting(appContext, settings)
publicCommonRouting(appContext)
authenticate("user_session", optional = RemoteAccessServer.byPassAuth) {
diff --git a/application/remote-access-server/src/main/java/org/videolan/vlc/remoteaccessserver/routing/RemoteAccessRoutingFile.kt b/application/remote-access-server/src/main/java/org/videolan/vlc/remoteaccessserver/routing/RemoteAccessRoutingFile.kt
index b72fd3ab65..4582c09cd1 100644
--- a/application/remote-access-server/src/main/java/org/videolan/vlc/remoteaccessserver/routing/RemoteAccessRoutingFile.kt
+++ b/application/remote-access-server/src/main/java/org/videolan/vlc/remoteaccessserver/routing/RemoteAccessRoutingFile.kt
@@ -88,7 +88,7 @@ import java.io.OutputStreamWriter
private const val TAG = "RARoutingFile"
-fun Route.publicFileRouting(appContext: Context, settings: SharedPreferences) {
+fun Route.authenticatedFileRouting(appContext: Context, scope: CoroutineScope, settings: SharedPreferences) {
// Upload a file to the device
post("/upload-media") {
verifyLogin(settings)
@@ -258,9 +258,6 @@ fun Route.publicFileRouting(appContext: Context, settings: SharedPreferences) {
call.respondJson(convertToJson(result))
}
-}
-
-fun Route.authenticatedFileRouting(appContext: Context, scope: CoroutineScope, settings: SharedPreferences) {
post("/logs") {
val formParameters = try {
call.receiveParameters()
More information about the Android
mailing list