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

Trying to access SCSS files results ambiguous method overloading for method on FileReader #49

Open
calicoderco opened this issue Mar 8, 2017 · 3 comments

Comments

@calicoderco
Copy link

calicoderco commented Mar 8, 2017

Using grails 2.5.1, I started using 2.13.1 of the sass plugin, with one empty scss file: something.scss in assets. Unfortunately, when I go to the file: /assets/something.css, I get:

groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method java.io.FileReader#<init>.
Cannot resolve which method to invoke for [null] due to overlapping prototypes between:
        [class java.lang.String]
        [class java.io.File]
        [class java.io.FileDescriptor]
        at com.cloudzilla.webclient.HomeController.index(HomeController.groovy:74)
        at grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:198)
        at grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63)
        at org.apache.logging.log4j.core.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:59)
        at grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.java:53)
        at grails.plugin.springsecurity.web.authentication.RequestHolderAuthenticationFilter.doFilter(RequestHolderAuthenticationFilter.java:49)
        at grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.java:82)
        at com.cloudzilla.web.api.AccessLogFilter.doFilter(AccessLogFilter.groovy:91)
        at com.cloudzilla.web.api.PatchSessionFilter.doFilter(PatchSessionFilter.groovy:146)
        at com.granicus.grails.plugins.cookiesession.CookieSessionFilter.doFilterInternal(CookieSessionFilter.java:84)
        at com.cloudzilla.web.api.ReturnedCookiesFilter.doFilter(ReturnedCookiesFilter.groovy:204)
        at com.cloudzilla.web.api.ReturnedUrlFilter.doFilter(ReturnedUrlFilter.groovy:101)
        at org.apache.logging.log4j.core.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:66)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)

And I'm redirected to the homepage.

I am also using the less plugin of the same version. Perhaps the ambiguous overload is due to both of them being loaded at the same time?

@calicoderco calicoderco changed the title SCSS files result in Trying to access SCSS files results ambiguous method overloading for method on FileReader Mar 8, 2017
@davydotcom
Copy link
Contributor

davydotcom commented Mar 9, 2017 via email

@calicoderco
Copy link
Author

calicoderco commented Mar 13, 2017

That is not true because I can access other assets such as ".less" and ".js" files in the same directory. Also, I have this in my Config.groovy:

grails.plugin.springsecurity.controllerAnnotations.staticRules = [
...
'/assets/**': ['permitAll'],
...
]

Besides, if it was security related, wouldn't I get a security exception in the logs or a security-related http code as a response?

@davydotcom
Copy link
Contributor

davydotcom commented Mar 14, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants