Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8030447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:46:19+00:00 2026-06-05T00:46:19+00:00

Note I am using Grails 2.0.4 and spring security core plugin 1.2.7.2 This appears

  • 0

Note I am using Grails 2.0.4 and spring security core plugin 1.2.7.2

This appears to be a bug but I want to make sure I’m doing things correctly first. Basically, I want certain URLs secured with HTTPS, and the rest not, seems very standard. If a user goes to a non-secure URL, I don’t want them staying on HTTPS. Everything works fine until I add this line to accomplish the last point:

    '/**':          'REQUIRES_INSECURE_CHANNEL'

at which point for some reason all my secure controller names get rewritten with ‘grails’ and things break horribly. So for example if I go to

http://localhost:8080/login/index

it becomes

http://localhost:8080/grails/auth/index.dispatch 

(‘grails’ is not the name of my app nor do I have any controller named ‘grails’ – my app runs at root)

If I remove that entry for root wildcard, everything works fine, I no longer get that weird ‘grails’ in my URL, although I stay on https outside the pages I want secured.

Here is my full configuration. Note that secure pages don’t try and load any insecure resources that I can see, only things defined under ‘ANY_CHANNEL’

grails.plugins.springsecurity.secureChannel.definition = [
        '/login/**':         'REQUIRES_SECURE_CHANNEL',
        '/register/**':         'REQUIRES_SECURE_CHANNEL',
        '/changePassword/**':         'REQUIRES_SECURE_CHANNEL',
        '/userAccountManagement/**':    'REQUIRES_SECURE_CHANNEL',


        '/simpleCaptcha/**': 'ANY_CHANNEL',
        '/img/**':        'ANY_CHANNEL',
        '/images/**':        'ANY_CHANNEL',
        '/static/**':        'ANY_CHANNEL',

        '/**':          'REQUIRES_INSECURE_CHANNEL'  //remove this, everything OK

]
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T00:46:21+00:00Added an answer on June 5, 2026 at 12:46 am

    The /grails/controller/action.dispatch URIs are what comes out of the Grails URL mapping mechanism. URL mappings in Grails are implemented by a servlet filter that forwards the request (in the RequestDispatcher sense) to a /grails URI, and it’s these that drive the DispatcherServlet.

    I suspect what’s happening here is that the /** is causing the channel security filter to fire on these forwarded request URIs as well as the original pre-mapping ones. Does it work if you put an explicit ANY_CHANNEL for /grails/** ahead of the /** rule?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Spring security core plugin . I want to test if the
First as a note I am using this plugin in a Rails app. Ok
I'm using Spring Security in Grails to restrict access to my controllers. I have
Note: I've cross-posted this question in the grails-user mailing list This weekend using this
I'm using Grails and want to use groovyws to call an web-service. But my
Note: I'm using Google Chrome Currently I have this test page http://www.evecakes.com/doodles/canvas_size_issue.htm It should
[NOTE: I'm using ASP.NET MVC2 RC2.] I have URLs like this: /customers/123/orders/456/items/index /customers/123/orders/456/items/789/edit My
( Note : I'm using Scala 2.7.7 here, not 2.8). I'm doing something pretty
NOTE: I'm using a BSD based system so if I remember correctly this means
Note: In this question I'm using the term autocomplete (or iterative search) to refer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.