Git Product home page Git Product logo

Comments (5)

Emilyserap avatar Emilyserap commented on June 9, 2024

Are there any limitations for Jetty 12 PathSpecs?

from jetty.project.

janbartel avatar janbartel commented on June 9, 2024

I think we have a bug in ee10 handling of suffix-mapped DefaultServlet instances. I believe this works in ee9, can you back down to that version?

I've opened issue #11794.

from jetty.project.

Emilyserap avatar Emilyserap commented on June 9, 2024

Yes, it works in EE9, but I want to know if this bug will be fixed soon in EE10?

from jetty.project.

Emilyserap avatar Emilyserap commented on June 9, 2024

Thanks for fixing this issue, but I want to know why when I refresh the dependencies, I don't see the new modification in the class DefaultServlet.java

from jetty.project.

Emilyserap avatar Emilyserap commented on June 9, 2024

I think we have a bug in ee10 handling of suffix-mapped DefaultServlet instances. I believe this works in ee9, can you back down to that version?

I've opened issue #11794.

I think we have a bug in ee10 handling of suffix-mapped DefaultServlet instances. I believe this works in ee9, can you back down to that version?

I've opened issue #11794.

I'm also having the same problem with static resources index.html. I'm not sure if it's a bug in DefaultServlet or a limitation of PathSpecs, but I'd appreciate it if you could take a look into it.

ServletContextHandler context = new ServletContextHandler(ServletContextHandler.SESSIONS);
context.setContextPath("/");
ResourceFactory resourceFactory = ResourceFactory.of(context);
context.setBaseResource(resourceFactory.newResource(mainResourceBase));
ServletHolder holderAlt = new ServletHolder("static-alt", DefaultServlet.class);
holderAlt.setInitParameter("dirAllowed", "true");
 holderAlt.setInitParameter("acceptRanges", "true");
context.addServlet(holderAlt, "*.js");
ServletHolder holderstat = new ServletHolder("static", DefaultServlet.class);
holderstat.setInitParameter("dirAllowed", "true");
holderstat setInitParameter("acceptRanges", "true");
holderstat.setInitParameter("cacheControl", "no-store");
context.addServlet(holderstat , "/index.html");
ServletHolder holderDef = new ServletHolder("default", DefaultServlet.class);
holderDef.setInitParameter("dirAllowed", "true");
context.addServlet(holderDef, "/");

from jetty.project.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.