Glassfish gem removes quotes from post parameters


#1

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

#2

Have you tried to chase this down with the GF folks?

On Tue, Mar 30, 2010 at 3:50 AM, Albert R.
removed_email_address@domain.invalid 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

#3

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 N.
removed_email_address@domain.invalid 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

#4

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 K. removed_email_address@domain.invalid
wrote:

On 4/3/2010 08:26, Albert R. 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

#5

It’s probably abandoned since both people working on it (Myself and
Vivek P.) 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 R. wrote:

removed_email_address@domain.invalid 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

#6

I for one take an interest. I started a new topic about the status of
gfgem:
http://www.ruby-forum.com/topic/207345#new


#7

On Apr 4, 2010, at 7:40 AM, Albert R. 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

#8

I’m as disappointed as all of you about the situation :frowning:

torquebox

-Bob


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

#9

On Sun, Apr 4, 2010 at 10:15 AM, Hirotsugu A. removed_email_address@domain.invalid
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 :frowning:

  • Charlie

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

#10

Torquebox is awesome…I just wish it installed in a <10MB gem :slight_smile:

On Mon, Apr 5, 2010 at 8:40 AM, Bob McWhirter removed_email_address@domain.invalid wrote:


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

#11

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

#12

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 N. wrote:

To unsubscribe from this list, please visit:


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

#13

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 N. 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

#14

Very intriguing :slight_smile:

On Mon, Apr 5, 2010 at 3:56 PM, Bob McWhirter removed_email_address@domain.invalid wrote:

On Mon, Apr 5, 2010 at 8:40 AM, Bob McWhirter removed_email_address@domain.invalid 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

#15

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.


#16

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 P. removed_email_address@domain.invalid
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

#17

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 K. removed_email_address@domain.invalid
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

#18

$ svn co
https://glassfish-scripting.dev.java.net/svn/glassfish-scripting/trunk/rails/gemglassfish-gem

$ 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 N.


#19

Yep, I agree.

-vivek.
On Wed, Apr 14, 2010 at 2:49 PM, Charles Oliver N.


#20

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 P. removed_email_address@domain.invalid
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