Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account
List archives

FileUpload not working

svn commit: r959690 - /tomcat/tc5.5.x/tags/TOMCAT_5_5_30/
(15 lines)
DO NOT REPLY Skip validation query and use JDBC API for validation
(19 lines)
Jul 1, 2010
Supernandu
Supernandu
Hi guys,

I'm using the Apache Commons FileUpload lib and I'm getting this strange
behaviour in just one of my servers. All others work perfectly.

servletfileupload.parseRequest(request) always returns an empty list.

But if I check for:

ServletFileUpload.isMultipartContent(request)

This returns true. So, the list should not be empty.

I'm really stuck here. Any ideas?

Thanks,
Fernando




Reply
Tags: checklistemptyreturns
Messages in this thread
FileUpload not working
reply Re: FileUpload not working
(38 lines) Jul 1, 2010 10:42
reply Re: FileUpload not working
(26 lines) Jul 1, 2010 11:17
Similar Threads
Release Commons Fileupload 1.2.2
The vote has passed with six positive votes (Oliver Heger, Phil
Steitz, Henri Yandell, Jörg Schaible, sebb, Jochen Wiedmann) and no
others.

I'll proceed with publishing the relases.

Thanks,

Jochen





Created: (HTTPCLIENT-971) Multipart Post / FileUpload is missing necessary boundary header
Multipart Post / FileUpload is missing necessary boundary header

Created: (GERONIMO-5472) Java EE 6 sample: fileupload run incorrectly on tomcat-assembly.
Java EE 6 sample: fileupload run incorrectly on tomcat-assembly.

Created: (FILEUPLOAD-183) commons-io dependency does ont get loaded by maven if only dependency to c
commons-io dependency does ont get loaded by maven if only dependency to
commons-fileupload is specified

Working C example?
Hi, looking in the  http://activemq.apache.org/c-integration.html C
cross-client  implementations  
http://svn.apache.org/repos/asf/activemq/sandbox/openwire-c/ OpenWire  and

http://svn.stomp.codehaus.org/browse/stomp/trunk/c/ STOMP  C
implementations, I see only prototype code, which project would be most
easy
to get running though?

Does anyone have a working example or experience building one of the
prototype C implementations (possibly with brief build/run
instructions)???

It would be GREATLY appreciated! I need to get a JMS consumer/producer
going
using C, like yesterday!!




SSL Not working on tomcat 5.5.29
Hi All,

I am working on upgrading tomcat from 5.5.28 to 5.5.29 for one of the
applications. I see that the website renders and works fine in 5.5.29 on
port 8080 (non SSL) but with  SSL (port 8443) the website doesnot run at
all. When I try to see what's going on in Fiddle, I see 502 error. Also
nothing is written to the log flies. It is as if tomcat is not even
running
in port 8443.

Under tomcat 5.5.28, the site renders fine with SSL and non SSL.

Is there something I could be missing?

Regards,
Kareem




trying to ban IPs using htaccess - not working
I'm trying to ban certain IPs from visiting my site, so that they 
instead see a message saying "Your IP has been banned, email me if 
you think this is an error."  I've *almost* got it working -- when 
people visit URLs like
http://209.160.28.154/index.html
or
http://209.160.28.154/foo-does-not-exist
they see the "banned IP" message.  However, the problem is that if 
you try to access the front page:
http://209.160.28.154/
from a banned IP address, you see the "Apache Test Page for CentOS" 
page, instead of seeing the "banned IP" message.  Anybody recognize 
this problem or have an idea of what could be causing it?

In my httpd.conf file, I changed "AllowOverride None" to 
"AllowOverride All" in both the default <Directory /> tag and inside

the <Directory "/var/www/html"> tag -- I placed a modified copy of 
httpd.conf at:
http://209.160.28.154/httpd.conf
and in /var/www/html I placed a .htaccess file containing these lines:
 >>>
ErrorDocument 403 /banned_ip.php
order deny,allow
deny from 71.112.32.149
 >>>
and restarted the server.  (The page 
http://209.160.28.154/banned_ip.php shows the message you're supposed 
to see when connecting from a banned IP.  71.112.32.149 is my home 
machine IP which I've "banned" for testing purposes.)

So like I said, that almost works, where 
http://209.160.28.154/index.html gives the right error message, but 
http://209.160.28.154/ does not.  Any idea how to change is to that 
all URLs under http://209.160.28.154/ will give the "banned IP" 
message if connecting from a banned IP?

	-Bennett



Re: anyone working on BCEL ?
On 24/05/2010, Mark Thomas <mar### @apache.org> wrote:
 On 24/05/2010 22:34, sebb wrote:
  > Is anyone working on - or wanting to work on - BCEL at present?


 Try the Jakarta dev list. BCEL isn't a commons component.

Duh -sorry!

  Mark


  >
  > I know that Findbugs are keen to get away from using their
patched version.
  >
  > I can do some tidying up of test cases and basic warnings if
that would help.
  >
  > There seem to have been a lot of fixes since 5.2, so it would
be good
  > to get a new release out.
  >

 > 
Caching not working
Hi,

I have got a proxy running using ATS. The sole entry in remap.config is -

map http://localhost:8080/ http://localhost:8282/

However caching does not take place. Every query i make is redirected to
the
origin server. The contents of storage.config is -

/usr/local/trafficserver/cache 134217728

A cache.db file in that location exists. But, the value of the cache size
-
proxy.process.cache.bytes_total is shown as 0. What do I need to do to
make
caching work?

Thanks,
Pranav.


Simple mybatis3 working example
I just created a very simple example (java konsole output, using
mysql) with the help of mybatis3 user guide,
adding some knowledge I got from ibatis3.

You can check it out from:
https://pl3.projectlocker.com/razorblue/mybatis3_example/svn

using this account
username: gue### @fakemail.com
password: 123456

Hope this helps


Augeas working inconsistently
I’ve got this define.

    define sudoentry ($user, $host = "ALL", $command = "ALL", $tag =
false, $runas = "ALL") {
      $sudo_changes = $tag ? {
        false => [
          "set spec[user = '$user']/user $user",
          "set spec[user = '$user']/host_group/host $host",
          "set spec[user = '$user']/host_group/command '$command'",
          "remove spec[user = '$user']/host_group/command/tag",
          "set spec[user = '$user']/host_group/command/runas_user $runas",
        ],
        # this isn't a real tag, but a sneaky hack to remove entries
        DELETE => "remove spec[user = '$user']",
        default => [
          "set spec[user = '$user']/user $user",
          "set spec[user = '$user']/host_group/host $host",
          "set spec[user = '$user']/host_group/command '$command'",
          "set spec[user = '$user']/host_group/command/tag $tag",
          "set spec[user = '$user']/host_group/command/runas_user $runas",
        ],
      }
      augeas { "sudo-$user":
        context => "/files/etc/sudoers",
        changes => $sudo_changes,
      }
    }

And I see the following.

If the entry isn’t in `sudoers` at all, this will add it:

    sudoentry { "rob":
      user => "rmcbroom”,
    }

If the entry is already there, this will add the “tag” to it:

    sudoentry { "rob":
      user => "rmcbroom",
      tag => "NOPASSWD",
    }

But if the user doesn’t exist and you try to add the entry with
“tag” set to something, it fails:

    err: //Sudoentry[rob]/Augeas[sudo-rmcbroom]/returns: change from
need_to_run to 0 failed: Save failed with return code false

Any guesses? Am I missing something?

(I realize with the define as written, there are potential uniqueness
problems for users with multiple entries, etc. It’s a work in progress.)







tomcat /manager not working
I downloaded tomcat 5.5.29 and tried to access an application
http://<IP of Tomcat server>:8080/manager
which the doc says
http://tomcat.apache.org/tomcat-5.5-d...v/deployment.html
that it is included and deployed by default it did not showed me any
thing did I miss any thing.