Skip to content

Commit

Permalink
Merge pull request #78 from GoogleCloudPlatform:jetty-updates
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 580560087
Change-Id: I737f9aeb4925132993fe5a725bc3b38b2ca75ad2
  • Loading branch information
gae-java-bot committed Nov 8, 2023
2 parents 4225f88 + 1708b7a commit eef7388
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ public boolean accept(File dir, String name) {
}
});
scanner.addListener(new ScannerListener());
scanner.doStart();
scanner.start();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ public boolean accept(File dir, String name) {
}
});
scanner.addListener(new ScannerListener());
scanner.doStart();
scanner.start();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ public boolean accept(File dir, String name) {
}
});
scanner.addListener(new ScannerListener());
scanner.doStart();
scanner.start();
}

@Override
Expand Down Expand Up @@ -463,7 +463,7 @@ private File getScanTarget() throws Exception {
}
}

private void fullWebAppScanner(int interval) throws IOException {
private void fullWebAppScanner(int interval) throws Exception {
String webInf = context.getWebInf().getFile().getPath();
List<File> scanList = new ArrayList<>();
Collections.addAll(
Expand All @@ -488,7 +488,7 @@ public void filesChanged(List<String> changedFiles) throws Exception {
}
});

scanner.doStart();
scanner.start();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import com.google.apphosting.utils.servlet.ee10.SnapshotServlet;
import com.google.apphosting.utils.servlet.ee10.WarmupServlet;
import com.google.common.collect.ImmutableSet;
import com.google.common.flogger.GoogleLogger;
import jakarta.servlet.DispatcherType;
import jakarta.servlet.Filter;
import jakarta.servlet.Servlet;
Expand Down Expand Up @@ -161,11 +160,13 @@ public AppEngineWebAppContext(File appDir, String serverInfo, boolean extractWar

// Configure the Jetty SecurityHandler to understand our method of
// authentication (via the UserService).
setSecurityHandler(EE10AppEngineAuthentication.newSecurityHandler());
EE10AppEngineAuthentication.configureSecurityHandler(
(ConstraintSecurityHandler) getSecurityHandler());

setMaxFormContentSize(MAX_RESPONSE_SIZE);

addFilter(new ParseBlobUploadFilter(), "/*", EnumSet.allOf(DispatcherType.class));
// TODO: Can we change to a jetty-core handler? what to do on ASYNC?
addFilter(new ParseBlobUploadFilter(), "/*", EnumSet.of(DispatcherType.REQUEST));
ignoreContentLength = isAppIdForNonContentLength();
}

Expand Down

0 comments on commit eef7388

Please sign in to comment.