Forum: JRuby Glassfish gem removes quotes from post parameters

Posted by Albert Ramstedt (Guest)
on 2010-03-30 10:50
(Received via mailing list)
Hello!

We are experiencing a wierd problem with Glassfish-Gem. When we post
parameters to our rails application running glassfish-gem (1.0.2), our
rails process gets the parameters somehow altered, any quotes
surrounding a parameter string gets stripped. Ie "String" becomes
String. Running it in mongrel (on JRuby or MRI) does not do this, so
it must be something in Glassfish-gem. We used to run glassfishv2 in
production, and did not experience the problem there.

I suspect it might be something in the glue between glassfish and
rack, but I cannot find anything in the gem source that seems to be
the culprit.

Any clues to resolving this problem would be greatly appreciated.

Albert

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Posted by Charles Nutter (headius)
on 2010-04-03 10:22
(Received via mailing list)
Have you tried to chase this down with the GF folks?

On Tue, Mar 30, 2010 at 3:50 AM, Albert Ramstedt
<albert.ramstedt@gmail.com> wrote:
> I suspect it might be something in the glue between glassfish and
>    http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Posted by Albert Ramstedt (Guest)
on 2010-04-03 17:26
(Received via mailing list)
I filed a bug with gfgem, but it seems that project is abandoned right
now. Which is a shame, since it is the most rails-like deployment
around.

On Sat, Apr 3, 2010 at 10:21 AM, Charles Oliver Nutter
<headius@headius.com> wrote:
>> String. Running it in mongrel (on JRuby or MRI) does not do this, so
>>
>
>    http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Posted by Eagle Kessler (Guest)
on 2010-04-03 19:20
(Received via mailing list)
It's probably abandoned since both people working on it (Myself and
Vivek Pandey) didn't make the transition to Oracle. If someone in the
community wanted to take ownership of it, I'm sure neither of us would
object (It was a very cool project, but difficult for me to find time to
really work on it now. I suspect similar for Vivek), and I'd be happy to
help get a new owner up to speed.

In the mean time, I'll grab the current version of the source and see if
I can help track this down.

On 4/3/2010 08:26, Albert Ramstedt wrote:
>> <albert.ramstedt@gmail.com>  wrote:
>>>
>>>
>>
>>
>>      
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>      http://xircles.codehaus.org/manage_email
>
>
>
>    


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Posted by Albert Ramstedt (Guest)
on 2010-04-04 14:41
(Received via mailing list)
I'd love to be able to help out, but I feel I my Java is too rusty,
and I don't know anything about GF. Someone pointed out how to build
the source with maven, so I have gotten that far.

I think some documentation and build instructions for building the
different jars bundled with gfgem, and how to build the gem and maybe
some description on how it all interacts would go a long way of making
it simpler for the community to contribute.

I don't know how many people are using the gfgem, but I would be
willing to devote some time to it, since we depend on it for our
production servers.

Albert

On Sat, Apr 3, 2010 at 7:19 PM, Eagle Kessler <eagle.kessler@gmail.com> 
wrote:
> On 4/3/2010 08:26, Albert Ramstedt wrote:
>>>
>>>> String. Running it in mongrel (on JRuby or MRI) does not do this, so
>>>>
>>> To unsubscribe from this list, please visit:
>>     http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Posted by Gunnar Djurberg (gdj)
on 2010-04-04 15:15
I for one take an interest. I started a new topic about the status of 
gfgem:
http://www.ruby-forum.com/topic/207345#new
Posted by Hirotsugu Asari (Guest)
on 2010-04-04 17:15
(Received via mailing list)
On Apr 4, 2010, at 7:40 AM, Albert Ramstedt wrote:

> willing to devote some time to it, since we depend on it for our
> production servers.
> 
> Albert

'mvn install' fails to find a couple of artifacts when I tried.

However, NetBeans was able to overcome this problem. I simply opened the 
Maven project, and resolved dependencies. You can then build the gem, 
which will be created in target/stage/pkg.

I don't know if Eclipse can do something similar.

Hiro
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Posted by Charles Nutter (headius)
on 2010-04-05 07:43
(Received via mailing list)
On Sun, Apr 4, 2010 at 10:15 AM, Hirotsugu Asari <asari.ruby@gmail.com> 
wrote:
> 'mvn install' fails to find a couple of artifacts when I tried.
>
> However, NetBeans was able to overcome this problem. I simply opened the Maven project, and resolved dependencies. You can then build the gem, which will be created in target/stage/pkg.
>
> I don't know if Eclipse can do something similar.

If we did decide to take it over, we'd need to figure out whether it
would be best to fork the bits we need or try to track ongoing
development on the GlassFish mainline. It sounds like Hiro got it to
build ok, so that's promising...but if it's too complicated to keep
working (and since we probably can't count on any help from Oracle)
we'll need to be sure we're comfortable owning the gem-specific bits.

I'm as disappointed as all of you about the situation :(

- Charlie

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Posted by Bob McWhirter (Guest)
on 2010-04-05 15:41
(Received via mailing list)
> I'm as disappointed as all of you about the situation :(

<cough>torquebox</cough>

  -Bob

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Posted by Brandon Hauff (Guest)
on 2010-04-05 17:03
(Received via mailing list)
Has anyone been able to get torquebox running in windows?

> 
>   -Bob
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Posted by Charles Nutter (headius)
on 2010-04-05 21:44
(Received via mailing list)
Torquebox is awesome...I just wish it installed in a <10MB gem :)

On Mon, Apr 5, 2010 at 8:40 AM, Bob McWhirter <bob@fnokd.com> wrote:
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Posted by Bob McWhirter (Guest)
on 2010-04-05 22:57
(Received via mailing list)
That's on my roadmap for web-only capabilities.  Of course, you won't
get JMS integration and such with that.

  -Bob


On Apr 5, 2010, at 3:43 PM, Charles Oliver Nutter wrote:

>> To unsubscribe from this list, please visit:
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Posted by Charles Nutter (headius)
on 2010-04-06 08:55
(Received via mailing list)
Very intriguing :)

On Mon, Apr 5, 2010 at 3:56 PM, Bob McWhirter <bob@fnokd.com> wrote:
>> On Mon, Apr 5, 2010 at 8:40 AM, Bob McWhirter <bob@fnokd.com> wrote:
>>>  http://xircles.codehaus.org/manage_email
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>   http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Posted by Eagle Kessler (Guest)
on 2010-04-11 20:47
(Received via mailing list)
The plugging into Glassfish isn't that complicated (It's just a standard
directory-deploy handler), so I don't see that needing much, if any
attention. For the Gem I think we had (or maybe were going to?) strip
things down to just Grizzly, rather than the full Glassfish. You'd have
to ask Vivek about that, though.

The Java code is a bit more complicated, since it handles figuring out
what kind of app it is and spinning up the right kind of stuff (Rails
with and without multithreading, Sinatra, merb, etc.), and then handing
control over. Again, though, that shouldn't need much attention (except
here, where we're apparently handling arguments incorrectly. That may be
in the Java or it could be in the Ruby wrapper that launches the
glassfish instance, I'd have to look more at it.

Either way, though, it seems like keeping it working wouldn't be too
dependent on Oracle code, and may not even require a great deal of Java
knowledge.

On 4/4/2010 22:42, Charles Oliver Nutter wrote:
> development on the GlassFish mainline. It sounds like Hiro got it to
>
>      http://xircles.codehaus.org/manage_email
>
>
>
>    


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Posted by Vivek Pandey (Guest)
on 2010-04-13 23:56
(Received via mailing list)
Sorry for the delay! I have been bit busy lately:)

It would be great to have people help us by contributing to it.

In the coming weeks I plan to spend some time, some documents to 
describe
detailed architecture, build code etc and possibly start releasing new
versions. It all depends on the time I have at hand:)

-vivek.
Posted by Charles Nutter (headius)
on 2010-04-14 23:50
(Received via mailing list)
Great to hear this Vivek! It would be nice if we could settle on one
of the available server frameworks and focus resources there (or
perhaps pick two to hedge our bets?) We need something, that much is
certain.

On Tue, Apr 13, 2010 at 4:55 PM, Vivek Pandey <vivek.pandey@gmail.com> 
wrote:
>>
>> we're apparently handling arguments incorrectly. That may be in the Java or
>>>  wrote:
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>   http://xircles.codehaus.org/manage_email
>>
>>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Posted by Charles Nutter (headius)
on 2010-04-14 23:52
(Received via mailing list)
Thanks for this update...I have to admit I haven't looked into the
code in a long time, and I don't think I've ever done a complete build
on my own. Do you or Vivek remember any good walkthroughs for getting
GF gem built?

On Sun, Apr 11, 2010 at 1:46 PM, Eagle Kessler <eagle.kessler@gmail.com> 
wrote:
> apparently handling arguments incorrectly. That may be in the Java or it
>>  wrote:
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>   http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Posted by Vivek Pandey (Guest)
on 2010-04-14 23:59
(Received via mailing list)
Yep, I agree.

-vivek.
On Wed, Apr 14, 2010 at 2:49 PM, Charles Oliver Nutter
Posted by Vivek Pandey (Guest)
on 2010-04-15 00:01
(Received via mailing list)
$ svn co
https://glassfish-scripting.dev.java.net/svn/glass...

$ cd glassfish-gem

$ mvn clean install

you would need JDK6, mvn 2.1 or 2.0, jruby.

-vivek.

On Wed, Apr 14, 2010 at 2:51 PM, Charles Oliver Nutter
Posted by Charles Nutter (headius)
on 2010-04-15 00:56
(Received via mailing list)
I had to log in, which is annoying. Hopefully when it moves to
CollabNet it will be "actually" open.

I wonder if we'd want to fork it and maintain a separate repository of
our own? We would need to be able to commit to it freely...

On Wed, Apr 14, 2010 at 5:00 PM, Vivek Pandey <vivek.pandey@gmail.com> 
wrote:
>>
>> > things
>> > we're
>> >>
>> >>> will be created in target/stage/pkg.
>> >>
>> >>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Posted by Charles Nutter (headius)
on 2010-04-15 01:03
(Received via mailing list)
Hmm, it failed for me...some maven thing (naturally!):

[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   The project
org.glassfish.scripting:glassfish-gem:1.0.3-SNAPSHOT
(/Users/headius/projects/glassfish-gem/pom.xml) has 1 error
[ERROR] 
'dependencies.dependency.(groupId:artifactId:type:classifier)'
must be unique: org.jruby:jruby-complete:jar -> version 1.3.1 vs
${jruby.version}

On Wed, Apr 14, 2010 at 5:54 PM, Charles Oliver Nutter
<headius@headius.com> wrote:
>> $ cd glassfish-gem
>>> GF gem built?
>>> > The Java code is a bit more complicated, since it handles figuring out
>>> > to look more at it.
>>> >>>
>>> >>
>>> >>
>>> > ---------------------------------------------------------------------
>>>    http://xircles.codehaus.org/manage_email
>>>
>>>
>>
>>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Posted by Vivek Pandey (Guest)
on 2010-04-15 02:15
(Received via mailing list)
Indeed... sorry about that, Something changed in the glassfish master 
maven
repo delegation. Added java.net maven2 repo explicitly and it builds 
fine
now.

try updating your wspace.

-vivek.

On Wed, Apr 14, 2010 at 4:02 PM, Charles Oliver Nutter
Posted by Vivek Pandey (Guest)
on 2010-04-15 02:17
(Received via mailing list)
On Wed, Apr 14, 2010 at 3:54 PM, Charles Oliver Nutter
<headius@headius.com>wrote:

> I had to log in, which is annoying. Hopefully when it moves to
> CollabNet it will be "actually" open.
>
> I wonder if we'd want to fork it and maintain a separate repository of
> our own? We would need to be able to commit to it freely...
>
>
Yeah, java.net sucks! BTW, java.net has always been running on 
collabnet:)

-vivek.
Posted by Charles Nutter (headius)
on 2010-04-16 15:01
(Received via mailing list)
I still got the error, but it seems to have been something with Maven
3. I used Maven 2 and it appears to have built successfully. Bravo!

So long story short, I can confirm that Vivek's steps for building the
GF gem work, if you have a login/password for java.net that works. The
next step may simply be to fork GF gem to Github, periodically pull
updates, and start working off that other repository. I know that
java.net is scheduled to switch to Kenai infrastructure, which would
mean it would have Git support, but that's obviously not there right
now...

On Wed, Apr 14, 2010 at 7:16 PM, Vivek Pandey <vivek.pandey@gmail.com> 
wrote:
> Yeah, java.net sucks! BTW, java.net has always been running on collabnet:)
>> > $ mvn clean install
>> >> GF gem built?
>> >> > ask
>> >> > Again, though, that shouldn't need much attention (except here, where
>> >> > Java
>> >> >>>
>> >> >>
>> >> >> - Charlie
>> >> >
>> >> To unsubscribe from this list, please visit:
>>    http://xircles.codehaus.org/manage_email
>>
>>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Posted by Albert Ramstedt (Guest)
on 2010-04-16 21:09
(Received via mailing list)
On Fri, Apr 16, 2010 at 3:00 PM, Charles Oliver Nutter
<headius@headius.com> wrote:
> I still got the error, but it seems to have been something with Maven
> 3. I used Maven 2 and it appears to have built successfully. Bravo!
>
> So long story short, I can confirm that Vivek's steps for building the
> GF gem work, if you have a login/password for java.net that works.

I am pretty sure 'guest' and a blank password works. But a github repo
would be very nice though.

Albert

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Posted by Hirotsugu Asari (Guest)
on 2010-04-16 21:15
(Received via mailing list)
On Apr 16, 2010, at 2:08 PM, Albert Ramstedt wrote:

> 
> Albert

I'm a newbie when it comes to svn-git thing, but I do have one on 
github:

http://github.com/BanzaiMan/glassfish-gem


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Posted by Hirotsugu Asari (Guest)
on 2010-05-02 21:40
(Received via mailing list)
On Apr 3, 2010, at 10:26 AM, Albert Ramstedt wrote:

> I filed a bug with gfgem, but it seems that project is abandoned right
> now. Which is a shame, since it is the most rails-like deployment
> around.

I responded to your comment in rubyforge. I don't know what is causing 
this, but I have not been able to reproduce this problem with glassfish 
gem 1.0.2. Here, I used a plain Radiant application to get a POST:

Processing Admin::PagesController#update (for 0:0:0:0:0:0:0:1%0 at 
2010-05-02 14:31:40) [PUT]
  Parameters: {"_method"=>"put", 
"authenticity_token"=>"jGfv/T52rJGKFh0OjWfOAJ8m5Gvk6Jxw7RYbmELAIZk=", 
"page"=>{"lock_version"=>"0", "parent_id"=>"1", "title"=>"\"About\"", 
"slug"=>"about", "breadcrumb"=>"\"About\"", "description"=>"", 
"keywords"=>"", "parts_attributes"=>{"0"=>{"name"=>"body", "id"=>"9", 
"_delete"=>"", "filter_id"=>"", "content"=>"This is the third post."}}, 
"layout_id"=>"", "class_name"=>"", "status_id"=>"100"}, "commit"=>"Save 
Changes", "controller"=>"admin/pages", "action"=>"update", "id"=>"8"}
Redirected to http://localhost:3000/admin/pages
Completed in 85ms (DB: 6) | 302 Found [http://localhost/admin/pages/8]

Note the "title" and "breadcrumb", where double-quotes are escaped 
correctly.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.