sebduggan / muraURLTools

Mura plugin for managing alternative URLs and redirection
10 stars 11 forks source link

Doesn't seem to work with 6.1 with .htaccess in place on Ubuntu #31

Closed davidpanzarella closed 8 years ago

davidpanzarella commented 10 years ago

I'm not 100% sure if this is a Mura or URLTools issue, so i'm posting it in both places.

I'm not quite sure why this is, as it was working flawlessly in development on another machine, but URLTools seems to get completely ignored

Here's what I'm working with: OS: Ubuntu 12.04.4 LTS Railo 4.1.2.005 final Mura Core Version 6.1.5715

Initially, I did not have any .htaccess even setup, and instead used what've been using on my old Linux box for years within my Apache Virtual Hosts:

RewriteEngine on RewriteLogLevel 0 RewriteLog "/log/rewrite.log" Options +FollowSymlinks RewriteCond %{HTTP_HOST} !^www [NC] RewriteRule (/.*) http://www.walnuts.org$1 [R,L,QSA] RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^([a-zA-Z0-9/-]+)$ /index.cfm%{REQUEST_URI} [PT] RemoveHandler .exe AddHandler cgi-script .cgi AddHandler cgi-script .pl CheckSpelling on

However, using this on Ubuntu doesn't seem to work for URL Tools, and it even removes the access of getting into the admin. Though again it worked flawlessly in the same format on an older version of Slackware.

I then removed everything above, in favor for the default Mura .htaccess file, and admin access came back, but URLTools still didn't redirect to the correct page.

What's even more odd is that for some pages that did have a redirect URL which didn't have any "/" in them (aka a root folder or file redirect), it sends the request to a the user to a Object Moved page with this errror:

Object Moved

here Catch Entries: 12 additional
Struct Detail
string
ErrorCode
string 0 Extended_Info
string
ExtendedInfo
string
Message string Page /health-professionals/index.cfm [/home/walnuts/walnuts.org/health-professionals/index.cfm] not found MissingFileName string /health-professionals/index.cfm MissingFileName_abs string /home/walnuts/walnuts.org/health-professionals/index.cfm MissingFileName_rel string /health-professionals/index.cfm StackTrace
string Page /health-professionals/index.cfm [/home/walnuts/walnuts.org/health-professionals/index.cfm] not found at railo.runtime.PageSourceImpl.loadPage(PageSourceImpl.java:873):873 at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:834):834 at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:790):790 at railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:205):205 at railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:18):18 at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2135):2135 at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2102):2102 at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:332):332 at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:29):29 at javax.servlet.http.HttpServlet.service(HttpServlet.java:728):728 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305):305 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210):210 at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51):51 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243):243 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210):210 at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source):-1 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43):43 at java.lang.reflect.Method.invoke(Method.java:606):606 at com.intergral.fusionreactor.j2ee.filterchain.WrappedFilterChain.doFilter(WrappedFilterChain.java:97):97 at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doNext(FusionReactorRequestHandler.java:472):472 at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doHttpServletRequest(FusionReactorRequestHandler.java:312):312 at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doFusionRequest(FusionReactorRequestHandler.java:192):192 at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.handle(FusionReactorRequestHandler.java:507):507 at com.intergral.fusionreactor.j2ee.filter.FusionReactorCoreFilter.doFilter(FusionReactorCoreFilter.java:36):36 at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source):-1 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43):43 at java.lang.reflect.Method.invoke(Method.java:606):606 at com.intergral.fusionreactor.j2ee.filterchain.WrappedFilterChain.doFilter(WrappedFilterChain.java:79):79 at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source):-1 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43):43 at java.lang.reflect.Method.invoke(Method.java:606):606 at com.intergral.fusionreactor.agent.filter.FusionReactorStaticFilter.doFilter(FusionReactorStaticFilter.java:53):53 at com.intergral.fusionreactor.agent.pointcuts.NewFilterChainPointCut$1.invoke(NewFilterChainPointCut.java:41):41 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java):-1 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222):222 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123):123 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502):502 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171):171 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100):100 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118):118 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408):408 at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200):200 at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603):603 at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310):310 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145):1145 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615):615 at java.lang.Thread.run(Thread.java:744):744 TagContext
Array type
string missinginclude

Furthermore, those pages that actually did have a "/" (ex. somepage/somepage) went to Mura's 404 page.

Any ideas what's going on here? Appreciate any input, thanks!

dgibson666 commented 10 years ago

I'm running Apache 2.2 on Windows and this plugin is not working in Mura 6.1 for me either.

davidpanzarella commented 10 years ago

@sebduggan I've done some more testing, and while there do seem to be some Apache rewrite issues, even when I use the port only and use only tomcat, the rewrites still don't seem to work. Let me know when you have a moment, and we'll take a look together. Maybe Railo's not seeing something, or the logic has changed somewhere in the code. I'm always on Skype, so just ping me when you can.

dgibson666 commented 10 years ago

I don't think it's Railo, as I'm having the same problem with Adobe CF9.

davidpanzarella commented 10 years ago

Yea i'm not too sure what's going on, but surely some weird stuff.

dgibson666 commented 10 years ago

We discovered that the Mura team changed around the execution order for a few things that broke some of our custom code. Upon talking to them, they reverted it in a later version and now our code works and so does this plugin again (as of Mura 6.1.5832).

stevefarwell commented 10 years ago

Not working for me Mura Version: 6.1.5963 IIS 7.0.601 CF 9.0.2