Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CDN should use redirects for specific cases #3

Open
3 tasks
PhantomYdn opened this issue Aug 1, 2020 · 1 comment
Open
3 tasks

CDN should use redirects for specific cases #3

PhantomYdn opened this issue Aug 1, 2020 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@PhantomYdn
Copy link
Member

Cases are:

  • Particular version was not specified - redirect to URL with latest version
  • Version was specified as range - redirect to URL with latest version from the range
  • Path was not specified - redirect to URL with specified path from corresponding params from package.json

Example for def paths:

  "unpkg": "dist/vue.js",
  "jsdelivr": "dist/vue.js",
@PhantomYdn PhantomYdn added the enhancement New feature or request label Aug 1, 2020
@PhantomYdn PhantomYdn added this to the v1.1 milestone Aug 1, 2020
@PhantomYdn
Copy link
Member Author

If 3rd is requested - currently it will lead to the following exception:

java.lang.IllegalArgumentException: Path '/vue2-leaflet' should corresponds pattern '/([^/@]*)@?([^/]*)/(.*)'
        at org.orienteer.jnpm.cdn.CDNRequest.valueOf(CDNRequest.java:80)
        at org.orienteer.jnpm.cdn.CDNWicketResource.newResourceResponse(CDNWicketResource.java:49)
        at org.apache.wicket.request.resource.AbstractResource.respond(AbstractResource.java:630)
        at org.apache.wicket.request.handler.resource.ResourceRequestHandler.respond(ResourceRequestHandler.java:105)
        at org.apache.wicket.request.handler.resource.ResourceReferenceRequestHandler.respond(ResourceReferenceRequestHandler.java:100)
        at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:899)
        at org.apache.wicket.request.RequestHandlerExecutor.execute(RequestHandlerExecutor.java:65)
        at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:282)
        at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:253)
        at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:275)
        at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:206)
        at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:305)

@PhantomYdn PhantomYdn modified the milestones: v1.1, v1.2 Dec 12, 2020
@PhantomYdn PhantomYdn modified the milestones: v1.2, v1.3 Jan 18, 2022
@PhantomYdn PhantomYdn modified the milestones: v1.3, v1.4 Jan 29, 2022
@PhantomYdn PhantomYdn modified the milestones: v1.4, v1.5 Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant