google-code-export / rubycas-client

Automatically exported from code.google.com/p/rubycas-client
1 stars 1 forks source link

Parameter naming clash with "ticket" #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create new Rails app with rubycas-client plugin
2. Created REST-style scaffolding with a model called "Ticket":
ruby script/generate scaffold ticket subject:string description:text
3. Started app and create a new ticket (after succesfully authenticated via
CAS)

What is the expected output? What do you see instead?

Instead of creating a new ticket, the following is received:

URI::InvalidURIError in TicketsController#create
bad URI(is not URI?):
https://XXX.XXX.com/cas/proxyValidate?service=http%3A%2F%2Flocalhost%3A3000%2Fti
ckets&ticket=subjectmy
ticketdescriptionmy description

What version of the product are you using? On what operating system?

Rails 2.02 and rubycas-client 1.1.0, rubycas-server 0.5.0

Please provide any additional information below.

Using a different model name works as expected.
Is there a fix or workaround? In my particular example, I am created a Help
Desk Ticket application and it would be nice to be able to have a model
named "Ticket". Or is it simply not possible within the current CAS
specification?

Original issue reported on code.google.com by rich.re...@gmail.com on 30 Dec 2007 at 6:22

GoogleCodeExporter commented 9 years ago
I think this is fixable. I'll have to try it out and get back to you. 

Original comment by matt.zuk...@gmail.com on 31 Dec 2007 at 3:19