debian/0000775000000000000000000000000011761132351007170 5ustar debian/rules0000775000000000000000000001206211745740432010260 0ustar #!/usr/bin/make -f include /usr/share/dpkg/buildflags.mk include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/ant.mk PACKAGE := $(DEB_SOURCE_PACKAGE) VERSION := $(DEB_UPSTREAM_VERSION) JAVA_HOME := /usr/lib/jvm/default-java DEB_JARS := servlet-api-2.5 slf4j-api slf4j-simple mx4j mx4j-tools gnumail activation commons-daemon junit ant-junit geronimo-jta-1.0.1b-spec annotations-api DEB_ANT_BUILD_TARGET := package DEB_ANT_BUILDFILE := debian/build.xml DEB_ANT_ARGS := -DVERSION=$(VERSION) -Dbuild.sysclasspath=last DEB_INSTALL_CHANGELOGS_ALL := VERSION.txt #API_DOCS := javadoc/ binary-post-install/lib$(PACKAGE)-java:: mh_installpoms -plib$(PACKAGE)-java mh_installjar -plib$(PACKAGE)-java -l --usj-name=jetty-util modules/util/pom.xml lib/jetty-util-$(VERSION).jar /usr/share/jetty/lib/jetty-util.jar mh_installjar -plib$(PACKAGE)-java -l --usj-name=jetty-util5 modules/util5/pom.xml lib/util5/jetty-util5-$(VERSION).jar /usr/share/jetty/jre1.5/jetty-util5-$(VERSION).jar usr/share/jetty/lib/jre1.5/jetty-util5.jar mh_installjar -plib$(PACKAGE)-java -l --usj-name=jetty modules/jetty/pom.xml lib/jetty-$(VERSION).jar /usr/share/jetty/lib/jetty.jar mh_installjar -plib$(PACKAGE)-java -l --usj-name=jetty-sslengine extras/sslengine/pom.xml lib/sslengine/jetty-sslengine-$(VERSION).jar /usr/share/jetty/lib/ext/jetty-sslengine.jar mh_installjar -plib$(PACKAGE)-java -l --usj-name=jetty-start modules/start/pom.xml start.jar /usr/share/jetty/start.jar mh_installjar -plib$(PACKAGE)-java -l --usj-name=jetty-start-daemon contrib/start-daemon/pom.xml start-daemon.jar /usr/share/jetty/start-daemon.jar binary-post-install/lib$(PACKAGE)-extra-java:: mh_installpoms -plib$(PACKAGE)-extra-java mh_installjar -plib$(PACKAGE)-extra-java -l --usj-name=jetty-html modules/html/pom.xml lib/ext/jetty-html-$(VERSION).jar /usr/share/jetty/lib/ext/jetty-html.jar mh_installjar -plib$(PACKAGE)-extra-java -l --usj-name=jetty-management modules/management/pom.xml lib/management/jetty-management-$(VERSION).jar /usr/share/jetty/lib/management/jetty-management.jar mh_installjar -plib$(PACKAGE)-extra-java -l --usj-name=jetty-naming modules/naming/pom.xml lib/naming/jetty-naming-$(VERSION).jar /usr/share/jetty/lib/naming/jetty-naming.jar mh_installjar -plib$(PACKAGE)-extra-java -l --usj-name=jetty-plus modules/plus/pom.xml lib/plus/jetty-plus-$(VERSION).jar /usr/share/jetty/lib/plus/jetty-plus.jar mh_installjar -plib$(PACKAGE)-extra-java -l --usj-name=jetty-servlet-tester extras/servlet-tester/pom.xml lib/ext/jetty-servlet-tester-$(VERSION).jar /usr/share/jetty/lib/ext/jetty-servlet-tester.jar mh_installjar -plib$(PACKAGE)-extra-java -l --usj-name=jetty-ajp extras/ajp/pom.xml lib/ext/jetty-ajp-$(VERSION).jar /usr/share/jetty/lib/ext/jetty-ajp.jar mh_installjar -plib$(PACKAGE)-extra-java -l --usj-name=jetty-java5-threadpool extras/threadpool/pom.xml lib/ext/jetty-java5-threadpool-$(VERSION).jar /usr/share/jetty/lib/ext/jetty-java5-threadpool.jar mh_installjar -plib$(PACKAGE)-extra-java -l --usj-name=jetty-client extras/client/pom.xml lib/ext/jetty-client-$(VERSION).jar /usr/share/jetty/lib/ext/jetty-client.jar mh_installjar -plib$(PACKAGE)-extra-java -l --usj-name=jetty-rewrite-handler contrib/jetty-rewrite-handler/pom.xml lib/ext/jetty-rewrite-handler-$(VERSION).jar /usr/share/jetty/lib/ext/jetty-rewrite-handler.jar mh_installjar -plib$(PACKAGE)-extra-java -l --usj-name=jetty-setuid extras/setuid/modules/java/pom.xml lib/ext/jetty-setuid-$(VERSION).jar /usr/share/jetty/lib/ext/jetty-setuid.jar mh_installjar -plib$(PACKAGE)-extra-java -l --usj-name=jetty-annotations modules/annotations/pom.xml lib/ext/jetty-annotations-$(VERSION).jar /usr/share/jetty/lib/ext/jetty-annotations.jar extras/setuid/modules/native/target/generated/org_mortbay_setuid_SetUID.c: cd extras/setuid && install -D modules/native/src/main/native/org_mortbay_setuid_SetUID.c modules/native/target/generated/org_mortbay_setuid_SetUID.c extras/setuid/modules/native/target/generated/org_mortbay_setuid_SetUID.h: extras/setuid/modules/native/target/generated/org_mortbay_setuid_SetUID.c cd extras/setuid && javah -d modules/native/target/generated -classpath ../../lib/ext/jetty-setuid-$(VERSION).jar org.mortbay.setuid.SetUID lib/ext/libsetuid.so: extras/setuid/modules/native/target/generated/org_mortbay_setuid_SetUID.h cd extras/setuid && gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) \ -I$(JAVA_HOME)/include/ -I$(JAVA_HOME)/include/linux/ \ -shared modules/native/target/generated/org_mortbay_setuid_SetUID.c -fPIC -O \ -o ../../lib/ext/libsetuid.so build/lib$(PACKAGE)-extra:: lib/ext/libsetuid.so binary-post-install/lib$(PACKAGE)-extra:: mh_installpoms -plib$(PACKAGE)-extra dh_install -plib$(PACKAGE)-extra --sourcedir=lib/ext libsetuid.so /usr/lib/jetty dh_link -plib$(PACKAGE)-extra /usr/lib/jetty/libsetuid.so /usr/share/jetty/lib/ext/libsetuid.so clean:: mh_clean get-orig-source: uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename # No documentation released yet. #binary-post-install/$(PACKAGE)-doc:: debian/jetty-shared-webapps.xml0000664000000000000000000000433711745736011013770 0ustar /usr/share/jetty/webapps false true false /etc/webdefault.xml debian/jetty.init0000664000000000000000000003023111761132351011213 0ustar #!/bin/sh -e # # /etc/init.d/jetty -- startup script for jetty 6.1.18 # # Written by Philipp Meier # Modified for Jetty 6 by Ludovic Claude # ### BEGIN INIT INFO # Provides: jetty # Required-Start: $local_fs $remote_fs $network # Required-Stop: $local_fs $remote_fs $network # Should-Start: $named # Should-Stop: $named # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start Jetty # Description: Start Jetty HTTP server and servlet container. ### END INIT INFO # Configuration files # # /etc/default/jetty # If it exists, this is read at the start of script. It may perform any # sequence of shell commands, like setting relevant environment variables. # # /etc/jetty/jetty.conf # If found, the file will be used as this script's configuration. # Each line in the file may contain: # - A comment denoted by the pound (#) sign as first non-blank character. # - The path to a regular file, which will be passed to jetty as a # config.xml file. # - The path to a directory. Each *.xml file in the directory will be # passed to jetty as a config.xml file. # # The files will be checked for existence before being passed to jetty. # # /etc/jetty/jetty.xml # If found, used as this script's configuration file, but only if # /etc/jetty/jetty.conf was not present. See above. # # Configuration variables (to define in /etc/default/jetty) # # JAVA_HOME # Home of Java installation. # # JAVA_OPTIONS # Extra options to pass to the JVM # # JETTY_PORT # Override the default port for Jetty servers. If not set then 8080 # will be used. The java system property "jetty.port" will be set to # this value for use in configure.xml files. For example, the following # idiom is widely used in the demo config files to respect this property # in Listener configuration elements: # # # # JETTY_ARGS # The default arguments to pass to jetty. # # JETTY_USER # if set, then used as a username to run the server as PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin NAME=jetty DESC="Jetty servlet engine" JETTY_HOME=/usr/share/$NAME LOGDIR="/var/log/jetty" START_JAR="$JETTY_HOME/start.jar" START_DAEMON_JAR="$JETTY_HOME/start-daemon.jar" DEFAULT=/etc/default/$NAME DAEMON=/usr/bin/jsvc JVM_TMP=/var/cache/jetty/tmp if [ `id -u` -ne 0 ]; then echo "You need root privileges to run this script" exit 1 fi # Make sure jetty is started with system locale if [ -r /etc/default/locale ]; then . /etc/default/locale export LANG fi . /lib/lsb/init-functions if [ -r /etc/default/rcS ]; then . /etc/default/rcS fi # The following variables can be overwritten in /etc/default/jetty # Whether to start jetty (as a daemon) or not NO_START=0 # Run Jetty as this user ID (default: jetty) # Set this to an empty string to prevent Jetty from starting automatically JETTY_USER=jetty # Listen to connections from this network host (leave empty to accept all connections) #JETTY_HOST=$(uname -n) JETTY_HOST= # The network port used by Jetty JETTY_PORT=8080 # Additional arguments to pass to Jetty JETTY_ARGS= # Extra options to pass to the JVM # Set java.awt.headless=true if JAVA_OPTIONS is not set so the # Xalan XSL transformer can work without X11 display on JDK 1.4+ # It also sets the maximum heap size to 256M to deal with most cases. JAVA_OPTIONS="-Xmx256m -Djava.awt.headless=true -Djava.library.path=/usr/lib" # The first existing directory is used for JAVA_HOME (if JAVA_HOME is not # defined in /etc/default/jetty). Should contain a list of space separated directories. JDK_DIRS=" /usr/lib/jvm/default-java \ /usr/lib/jvm/java-1.7.0-openjdk-* \ /usr/lib/jvm/java-1.6.0-openjdk-* \ /usr/lib/jvm/java-6-sun \ /usr/lib/jvm/java-6-openjdk \ /usr/lib/jvm/java-1.5.0-sun \ /usr/lib/jvm/java-gcj \ /usr/lib/j2sdk1.6-sun \ /usr/lib/j2sdk1.5-sun \ /usr/lib/j2sdk1.5-ibm \ /usr/lib/j2sdk1.4-sun \ /usr/lib/j2sdk1.4 \ /usr/lib/j2se/1.4 \ /usr/lib/kaffe/ \ " # Timeout in seconds for the shutdown of all webapps JETTY_SHUTDOWN=30 # Jetty uses a directory to store temporary files like unpacked webapps JETTY_TMP=/var/cache/jetty/data # Jetty uses a config file to setup its boot classpath JETTY_START_CONFIG=/etc/jetty/start.config # End of variables that can be overwritten in /etc/default/jetty # overwrite settings from default file if [ -f "$DEFAULT" ]; then . "$DEFAULT" fi # Check whether jetty is still installed (it might not be if this package was # removed and not purged) if [ ! -r "$START_JAR" ]; then log_failure_msg "$NAME is not installed" exit 1 fi [ -f "$DAEMON" ] || exit 0 # Check whether startup has been disabled if [ "$NO_START" != "0" -a "$1" != "stop" ]; then [ "$VERBOSE" != "no" ] && log_failure_msg "Not starting jetty - edit /etc/default/jetty and change NO_START to be 0 (or comment it out)." exit 0 fi if [ -z "$JETTY_USER" ]; then log_failure_msg "Not starting/stopping $DESC as configured" log_failure_msg "(JETTY_USER is empty in /etc/default/jetty)." exit 0 fi # Look for the right JVM to use for jdir in $JDK_DIRS; do if [ -d "$jdir" -a -z "${JAVA_HOME}" ]; then JAVA_HOME="$jdir" fi done export JAVA_HOME export JAVA="$JAVA_HOME/bin/java" JAVA_OPTIONS="$JAVA_OPTIONS -Djava.io.tmpdir=$JETTY_TMP \ -DSTART=$JETTY_START_CONFIG \ -Djetty.home=$JETTY_HOME -Djetty.logs=$LOGDIR \ -Djetty.host=$JETTY_HOST -Djetty.port=$JETTY_PORT" # Set the JSP compiler if set in the jetty.default file if [ -n "$JSP_COMPILER" ]; then JAVA_OPTS="$JAVA_OPTS -Dbuild.compiler=$JSP_COMPILER" fi export JAVA_OPTIONS # Define other required variables PIDFILE="/var/run/$NAME.pid" WEBAPPDIR="$JETTY_HOME/webapps" BOOTSTRAP_CLASS=org.mortbay.jetty.start.daemon.Bootstrap JSVC_CLASSPATH="/usr/share/java/commons-daemon.jar:$START_JAR:$START_DAEMON_JAR:$JAVA_HOME/lib/tools.jar" ROTATELOGS=/usr/sbin/rotatelogs HOSTNAME=$(uname -n) ################################################## # Check for JAVA_HOME ################################################## if [ -z "$JAVA_HOME" ]; then log_failure_msg "Could not start $DESC because no Java Development Kit" log_failure_msg "(JDK) was found. Please download and install JDK 1.4 or higher and set" log_failure_msg "JAVA_HOME in /etc/default/jetty to the JDK's installation directory." exit 0 fi CONFIG_LINES=$(cat /etc/jetty/jetty.conf | grep -v "^[[:space:]]*#" | tr "\n" " ") ################################################## # Get the list of config.xml files from jetty.conf ################################################## if [ ! -z "${CONFIG_LINES}" ] then for CONF in ${CONFIG_LINES} do if [ ! -r "$CONF" ] then log_warning_msg "WARNING: Cannot read '$CONF' specified in '$JETTY_CONF'" elif [ -f "$CONF" ] then # assume it's a configure.xml file CONFIGS="$CONFIGS $CONF" elif [ -d "$CONF" ] then # assume it's a directory with configure.xml files # for example: /etc/jetty.d/ # sort the files before adding them to the list of CONFIGS XML_FILES=`ls ${CONF}/*.xml | sort | tr "\n" " "` for FILE in ${XML_FILES} do if [ -r "$FILE" ] && [ -f "$FILE" ] then CONFIGS="$CONFIGS $FILE" else log_warning_msg "WARNING: Cannot read '$FILE' specified in '$JETTY_CONF'" fi done else log_warning_msg "WARNING: Don''t know what to do with '$CONF' specified in '$JETTY_CONF'" fi done fi ##################################################### # Run the standard server if there's nothing else to run ##################################################### if [ -z "$CONFIGS" ] then CONFIGS="/etc/jetty/jetty-logging.xml /etc/jetty/jetty.xml" fi ################################################## # Do the action ################################################## case "$1" in start) log_daemon_msg "Starting $DESC." "$NAME" if start-stop-daemon --quiet --test --start --pidfile "$PIDFILE" \ --user "$JETTY_USER" --startas "$JAVA" > /dev/null; then if [ -f $PIDFILE ] ; then log_warning_msg "$PIDFILE exists, but jetty was not running. Ignoring $PIDFILE" fi if [ -s "$LOGDIR/out.log" ]; then log_progress_msg "Rotate logs" $ROTATELOGS "$LOGDIR/out.log" 86400 \ < "$LOGDIR/out.log" || true fi > "$LOGDIR/out.log" chown -R $JETTY_USER:adm "$LOGDIR" # Remove / recreate JETTY_TMP directory rm -rf "$JETTY_TMP" mkdir "$JETTY_TMP" || { log_failure_msg "could not create $DESC temporary directory at $JETTY_TMP" exit 1 } chown $JETTY_USER "$JETTY_TMP" # Remove / recreate JVM_TMP directory rm -rf "$JVM_TMP" mkdir "$JVM_TMP" || { log_failure_msg "could not create JVM temporary directory at $JVM_TMP" exit 1 } chown $JETTY_USER "$JVM_TMP" cd "$JVM_TMP" $DAEMON -user "$JETTY_USER" -cp "$JSVC_CLASSPATH" \ -outfile $LOGDIR/out.log -errfile $LOGDIR/out.log \ -pidfile "$PIDFILE" $JAVA_OPTIONS $BOOTSTRAP_CLASS \ $JETTY_ARGS $CONFIGS log_daemon_msg "$DESC started, reachable on http://$HOSTNAME:$JETTY_PORT/." "$NAME" sleep 5 if start-stop-daemon --test --start --pidfile "$PIDFILE" \ --user $JETTY_USER --startas "$JAVA" >/dev/null; then log_end_msg 1 else log_end_msg 0 fi else log_warning_msg "(already running)." log_end_msg 0 fi ;; stop) log_daemon_msg "Stopping $DESC (was reachable on http://$HOSTNAME:$JETTY_PORT/)." "$NAME" if start-stop-daemon --quiet --test --start --pidfile "$PIDFILE" \ --user "$JETTY_USER" --startas "$JAVA" > /dev/null; then if [ -x "$PIDFILE" ]; then log_warning_msg "(not running but $PIDFILE exists)." else log_warning_msg "(not running)." fi else start-stop-daemon --quiet --stop \ --pidfile "$PIDFILE" --user "$JETTY_USER" \ --startas "$JAVA" > /dev/null while ! start-stop-daemon --quiet --test --start \ --pidfile "$PIDFILE" --user "$JETTY_USER" \ --startas "$JAVA" > /dev/null; do sleep 1 log_progress_msg "." JETTY_SHUTDOWN=`expr $JETTY_SHUTDOWN - 1` || true if [ $JETTY_SHUTDOWN -ge 0 ]; then start-stop-daemon --oknodo --quiet --stop \ --pidfile "$PIDFILE" --user "$JETTY_USER" \ --startas "$JAVA" else log_progress_msg " (killing) " start-stop-daemon --stop --signal 9 --oknodo \ --quiet --pidfile "$PIDFILE" \ --user "$JETTY_USER" fi done rm -f "$PIDFILE" rm -rf "$JVM_TMP" rm -rf "$JETTY_TMP/*" log_daemon_msg "$DESC stopped." "$NAME" log_end_msg 0 fi ;; status) if start-stop-daemon --quiet --test --start --pidfile "$PIDFILE" \ --user "$JETTY_USER" --startas "$JAVA" > /dev/null; then if [ -f "$PIDFILE" ]; then log_success_msg "$DESC is not running, but pid file exists." exit 1 else log_success_msg "$DESC is not running." exit 3 fi else log_success_msg "$DESC is running with pid `cat $PIDFILE`, and is reachable on http://$JETTY_HOST:$JETTY_PORT/" fi ;; restart|force-reload) if ! start-stop-daemon --quiet --test --start --pidfile "$PIDFILE" \ --user "$JETTY_USER" --startas "$JAVA" > /dev/null; then $0 stop $* sleep 1 fi $0 start $* ;; try-restart) if start-stop-daemon --quiet --test --start --pidfile "$PIDFILE" \ --user "$JETTY_USER" --startas "$JAVA" > /dev/null; then $0 start $* fi ;; check) log_success_msg "Checking arguments for Jetty: " log_success_msg "" log_success_msg "PIDFILE = $PIDFILE" log_success_msg "JAVA_OPTIONS = $JAVA_OPTIONS" log_success_msg "JAVA = $JAVA" log_success_msg "JETTY_USER = $JETTY_USER" log_success_msg "JETTY_HOST = $JETTY_HOST" log_success_msg "JETTY_PORT = $JETTY_PORT" log_success_msg "ARGUMENTS = $ARGUMENTS" if [ -f $PIDFILE ] then log_success_msg "$DESC is running with pid `cat $PIDFILE`, and is reachable on http://$JETTY_HOST:$JETTY_PORT/" exit 0 fi exit 1 ;; *) log_success_msg "Usage: $0 {start|stop|restart|force-reload|try-restart|status|check}" exit 1 ;; esac exit 0 debian/NEWS0000664000000000000000000000056511745736011007702 0ustar jetty (6.1.21-1) unstable; urgency=medium Stopped using /tmp/jetty-temp in /etc/init.d/jetty for security reasons. From now all temporary data will be stored within /var/cache/jetty as denoted below: - JVM_TMP is now /var/cache/jetty/tmp - JETTY_TMP is now /var/cache/jetty/data -- Niels Thykier Fri, 23 Oct 2009 20:33:24 +0200 debian/libjetty-extra-java.links0000664000000000000000000000261611745736011014132 0ustar usr/share/java/mx4j.jar usr/share/jetty/lib/management/mx4j/mx4j.jar usr/share/java/mx4j-tools.jar usr/share/jetty/lib/management/mx4j/mx4j-tools.jar usr/share/java/activation.jar usr/share/jetty/lib/naming/activation.jar usr/share/java/gnumail.jar usr/share/jetty/lib/naming/mail.jar usr/share/java/ant.jar usr/share/jetty/lib/jsp-2.1/ant.jar usr/share/java/ant-launcher.jar usr/share/jetty/lib/jsp-2.1/ant-launcher.jar usr/share/java/jasper.jar usr/share/jetty/lib/jsp-2.1/jasper.jar usr/share/java/jsp-api-2.1.jar usr/share/jetty/lib/jsp-2.1/jsp-api.jar usr/share/java/el-api-2.1.jar usr/share/jetty/lib/jsp-2.1/el-api.jar usr/share/java/jasper-el.jar usr/share/jetty/lib/jsp-2.1/commons-el.jar usr/share/java/tomcat-juli.jar usr/share/jetty/lib/jsp-2.1/tomcat-juli.jar usr/share/java/jcl-over-slf4j.jar usr/share/jetty/lib/jsp-2.1/jcl-over-slf4j.jar usr/share/java/slf4j-api.jar usr/share/jetty/lib/jsp-2.1/slf4j-api.jar usr/share/java/slf4j-simple.jar usr/share/jetty/lib/jsp-2.1/slf4j-simple.jar usr/share/java/xercesImpl.jar usr/share/jetty/lib/jsp-2.1/xercesImpl.jar usr/share/java/xmlParserAPIs.jar usr/share/jetty/lib/jsp-2.1/xmlParserAPIs.jar usr/share/java/annotations-api.jar usr/share/jetty/lib/annotations-api.jar usr/share/java/geronimo-jta-1.0.1b-spec.jar usr/share/jetty/lib/geronimo-jta-1.0.1b-spec.jar debian/README.source0000664000000000000000000000114511745736011011355 0ustar Building the source tarball --------------------------- The source tarball was created from the upstream Subversion repository [1]. The following files and directories were removed because they are likely to contain non-free code, code under too many or unclear licenses or unstable code: * modules/jsp-api-2.0 * extras/win32service * contrib/cometd * contrib/rpms * contrib/debian * contrib/grizzly * contrib/maven-beanshell-plugin None of those sources are necessary for the core Jetty functionality. [1] http://svn.codehaus.org/jetty/ -- Marcus Better , Wed, 13 May 2009 10:49:17 +0200 debian/libjetty-java.dirs0000664000000000000000000000012711745736011012625 0ustar usr/share/jetty usr/share/jetty/lib usr/share/jetty/lib/jre1.5 usr/share/jetty/lib/ext debian/libjetty-java-doc.doc-base0000664000000000000000000000040511745736011014103 0ustar Document: libjetty-java Title: API Javadoc for jetty Author: Mortbay Consulting Abstract: This is the API Javadoc provided by Jetty. Section: Programming Format: HTML Index: /usr/share/doc/libjetty-java/api/index.html Files: /usr/share/doc/libjetty-java/api/* debian/maven.rules0000664000000000000000000000024411745736011011357 0ustar junit junit jar s/3\..*/3.x/ s/ant/org.apache.ant/ * * s/.*/debian/ org.mortbay.jetty * * s/6\..*/6.x/ s/org.mortbay.jetty/javax.servlet/ servlet-api jar s/.*/2.5/ debian/control0000664000000000000000000001003211761131042010563 0ustar Source: jetty Section: java Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Java Maintainers Uploaders: Thierry Carrez , Ludovic Claude , Torsten Werner , Niels Thykier , Pablo Duboue Build-Depends: debhelper (>= 7), cdbs (>> 0.4.5.3), default-jdk, ant-optional, maven-repo-helper, libservlet2.5-java, libslf4j-java, libmx4j-java, libgnumail-java, libgnujaf-java, libcommons-daemon-java, junit, libgeronimo-jta-1.0.1b-spec-java, libtomcat6-java, default-jdk-doc, libgnumail-java-doc, libservlet2.5-java-doc, dpkg-dev (>= 1.16.1~) Standards-Version: 3.8.4 Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/jetty Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/jetty Homepage: http://jetty.mortbay.com/ Package: libjetty-java Architecture: all Depends: ${misc:Depends}, libservlet2.5-java, libslf4j-java Suggests: jetty, libjetty-java-doc Description: Java servlet engine and webserver -- core libraries Jetty is an Open Source HTTP Servlet Server written in 100% Java. It is designed to be light weight, high performance, embeddable, extensible and flexible, thus making it an ideal platform for serving dynamic HTTP requests from any Java application. Package: libjetty-java-doc Section: doc Architecture: all Depends: ${misc:Depends} Recommends: default-jdk-doc, libgnumail-java-doc, libservlet2.5-java-doc Suggests: libjetty-java Description: Javadoc for the Jetty API Jetty is an Open Source HTTP Servlet Server written in 100% Java. It is designed to be light weight, high performance, embeddable, extensible and flexible, thus making it an ideal platform for serving dynamic HTTP requests from any Java application. . This package contains the Javadoc for libjetty-java. Package: libjetty-extra-java Architecture: all Depends: ${misc:Depends}, libjetty-java (>= ${source:Version}), libmx4j-java, libgnumail-java, libgnujaf-java, ant, libslf4j-java, libxerces2-java, libtomcat6-java (>= 6.0.20-2), libgeronimo-jta-1.0.1b-spec-java Recommends: libjetty-extra Suggests: jetty Description: Java servlet engine and webserver -- extra libraries Jetty is an Open Source HTTP Servlet Server written in 100% Java. It is designed to be light weight, high performance, embeddable, extensible and flexible, thus making it an ideal platform for serving dynamic HTTP requests from any Java application. The extra libraries include jetty-management, jetty-naming, jetty-servlet-tester, jetty-ajp, jetty-java5-threadpool, jetty-client, jetty-rewrite-handler, jetty-plus, jetty-annotations Package: libjetty-extra Section: libs Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, libjetty-extra-java (>= ${source:Version}) Conflicts: libjetty-setuid-java Suggests: jetty Description: Java servlet engine and webserver -- extra libraries Jetty is an Open Source HTTP Servlet Server written in 100% Java. It is designed to be light weight, high performance, embeddable, extensible and flexible, thus making it an ideal platform for serving dynamic HTTP requests from any Java application. This package contains the platform-dependent libraries used by Jetty. Currently it contains libsetuid.so which can be used to start Jetty as root so that privileged ports may be accessed and then switched to a non-root user for security. Package: jetty Architecture: all Depends: ${misc:Depends}, libjetty-java (>= ${source:Version}), adduser, jsvc, apache2-utils, default-jre-headless | java5-runtime-headless Suggests: libjetty-extra-java (>= ${source:Version}), libjetty-extra (>= ${source:Version}), libjetty-java-doc (>= ${source:Version}) Description: Java servlet engine and webserver Jetty is an Open Source HTTP Servlet Server written in 100% Java. It is designed to be light weight, high performance, embeddable, extensible and flexible, thus making it an ideal platform for serving dynamic HTTP requests from any Java application. debian/copyright0000664000000000000000000000514511745741273011143 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Jetty Upstream-Contact: Mortbay Consulting Source: http://jetty.mortbay.com/ Files: * Copyright: 2004-2009, Mortbay Consulting License: Apache-2.0 Files: contrib/jboss/src/main/java/org/jboss/jetty/JettyDeployer.java Copyright: 2006, Mort Bay Consulting Pty. Ltd. License: LGPL-2 Files: contrib/jetty-ant/src/main/java/org/mortbay/jetty/ant/* Copyright: 2006-2007, Sabre Holdings License: Apache-2.0 Files: examples/test-webapp/src/main/webapp/WEB-INF/tags/panel.tag Copyright: 2002, The Apache Software Foundation License: Apache-2.0 Files: examples/test-webapp/src/test/java/com/acme/DispatchServletTest.java Copyright: 2009, Webtide LLC License: Apache-2.0 Files: extras/xbean/* Copyright: 2005-2006, The Apache Software Foundation License: Apache-2.0 Files: extras/gwt/src/main/java/org/mortbay/gwt/AsyncRemoteServiceServlet.java extras/gwt/src/main/java/com/google/gwt/user/server/rpc/OpenRemoteServiceServlet.java Copyright: 2006, Google Inc 2006, Craig Day License: Apache-2.0 Files: modules/jetty/src/main/java/org/mortbay/jetty/security/UnixCrypt.java Copyright: 1996, Aki Yoshida, 2001, Iris Van den Broeke, Daniel Deville. License: other Permission to use, copy, modify and distribute this software for non-commercial or commercial purposes and without fee is hereby granted provided that this copyright notice appears in all copies. Files: modules/jetty/src/test/java/org/mortbay/jetty/servlet/SessionManagerTest.java modules/util/src/main/java/org/mortbay/servlet/ThrottlingFilter.java Copyright: 2006, Tim Vernum License: Apache-2.0 Files: modules/jetty/src/main/java/org/mortbay/jetty/security/PKCS12Import.java Copyright: 1999, Jason Gilbert License: Apache-2.0 Files: modules/jetty/src/main/java/org/mortbay/jetty/security/HTAccessHandler.java Copyright: 2001, Deville Daniel License: other Permission to use, copy, modify and distribute this software for non-commercial or commercial purposes and without fee is hereby granted provided that this copyright notice appears in all copies. Files: debian/* Copyright: 2003, Philipp Meier 2009, Ludovic Claude 2009, David Yu License: Apache-2.0 License: Apache-2.0 On Debian GNU/Linux system you can find the complete text of the Apache 2.0 license in '/usr/share/common-licenses/Apache-2.0'. License: LGPL-2 On Debian GNU/Linux system you can find the complete text of the LGPL 2 license in '/usr/share/common-licenses/LGPL-2'. debian/README.Debian0000664000000000000000000000216111745736011011236 0ustar jetty for Debian ---------------- This debian package installs Jetty 6 into /usr/share/jetty and other directories under /var and /etc, which are linked to from the /usr/share/jetty directory. The configuration of the server is in /etc/jetty. The configuration files listed in /etc/jetty/jetty.conf are passed to the command line of Jetty when it is started by /etc/init.d/jetty Webapps can be deployed by placing them in /var/lib/jetty/webapps (linked from /usr/share/jetty/webapps) Additional contexts can be configured and (hot) deployed via the /etc/jetty/contexts directory (linked from /usr/share/jetty/contexts). Installing: $ sudo apt-get install libjetty-java $ sudo apt-get install libjetty-extra-java $ sudo apt-get install jetty Starting: Edit /etc/default/jetty Set: NO_START=0 Then do: $ sudo service jetty start Stopping: $ sudo service jetty stop -- This packaging is heavily based on the work done by Philipp Meier and Michael Koch . -- Greg Wilkins Thu Nov 8 18:10:06 EST 2007 David Yu Thu May 21 15:06:30 EST 2009 debian/README.Debian-source0000664000000000000000000000253411745736011012540 0ustar jetty for Debian ---------------- BUILD DEPENDENCIES: cdbs debhelper devscripts fakeroot JAVA DEBS: ant libservlet2.5-java libmx4j-java libgnumail-java libgnujaf-java libtomcat6-java geronimo-jta-1.0.1b-spec ------------------------------------------------------------------- TESTING ANT BUILD (no dependencies required): $ ant -DVERSION=6.1.18 testbuild CLEAN: $ ant -DVERSION=6.1.18 clean GENERATING SOURCE: $ ant -DVERSION=6.1.18 generate-deb-source GENERATING BINARIES/DEBS: $ ant -DVERSION=6.1.18 generate-deb-binaries MANUAL INSTALLATION: $ sudo dpkg -i libjetty-java_6.1.18-1_all.deb $ sudo dpkg -i libjetty-extra-java_6.1.18-1_all.deb $ sudo dpkg -i jetty_6.1.18-1_all.deb ------------------------------------------------------------------- GENERATED DEB SOURCES: jetty-6.1.18.orig.tar.gz jetty_6.1.18-1.dsc jetty_6.1.18-1.diff.gz GENERATED DEB BINARIES: libjetty-java - Jetty 6 core modules - includes: jetty-util, jetty-util5, jetty, jetty-sslengine, jetty-start libjetty-extra-java - Jetty 6 extra modules (depends: libjetty-java) - includes: jetty-management, jetty-naming, jetty-servlet-tester, jetty-ajp, jetty-java5-threadpool, jetty-client, jetty-rewrite-handler, jetty-plus, jetty-annotations jetty - The standalone http server (depends: libjetty-java) - includes: scripts, config files, docs debian/module.xml0000664000000000000000000001362011745736011011206 0ustar generating javadoc for ${module-name} compiling ${module-name} generating ${jar.file} copying ${jar.file} to ${module-libdir} copying ${config.dir} to ${etc.dir} from ${module-name} debian/libjetty-java.poms0000664000000000000000000000024211745736011012640 0ustar pom.xml --no-parent modules/util/pom.xml modules/util5/pom.xml modules/jetty/pom.xml extras/sslengine/pom.xml modules/start/pom.xml contrib/start-daemon/pom.xml debian/jetty.cron.daily0000664000000000000000000000073111745736011012321 0ustar #!/bin/sh NAME=jetty DEFAULT=/etc/default/$NAME # The following variables can be overwritten in $DEFAULT # Default for number of days to keep old log files in /var/log/jetty/ LOGFILE_DAYS=14 # End of variables that can be overwritten in $DEFAULT # overwrite settings from default file if [ -f "$DEFAULT" ]; then . "$DEFAULT" fi if [ -d /var/log/$NAME ]; then find /var/log/$NAME/ -name \*.log -mtime +$LOGFILE_DAYS -print0 \ | xargs --no-run-if-empty -0 rm -- fi debian/libjetty-java-doc.install0000664000000000000000000000004011745736011014067 0ustar api usr/share/doc/libjetty-java debian/start.config0000664000000000000000000000430011745747054011527 0ustar # This file controls what file are to be put on classpath or command line. # # Format is as follows: # Each line contains entry for one JAR file. # Format of line: # # SUBJECT [ [!] CONDITION [AND|OR] ]* # # where SUBJECT: # ends with ".class" is the Main class to run. # ends with ".xml" is a configuration file for the command line # ends with "/" is a directory from which to add all jar and zip files. # ends with "/*" is a directory from which to add all unconsidered jar and zip files. # ends with "/**" is a directory from which to recursively add all unconsidered jar and zip files. # Containing = are used to assign system properties. # all other subjects are treated as files to be added to the classpath. # # Subjects may include system properties with $(propertyname) syntax. # # Files starting with "/" are considered absolute, all others are relative to # the home directory. # # CONDITION is one of: # always # never # available classname # true if class on classpath # property name # true of set # java OPERATOR version # java version compared to literal # nargs OPERATOR number # number of command line args compared to literal # OPERATOR := one of "<",">","<=",">=","==","!=" # # CONDITIONS can be combined with AND OR or !, with AND being the assume # operator for a list of CONDITIONS. # Classpath operations are evaluated on the fly, so once a class or jar is # added to the classpath, subsequent available conditions will see that class. # $(jetty.class.path) always $(jetty.lib)/** exists $(jetty.lib) jetty.home=/usr/share/jetty always # The main class to run org.mortbay.xml.XmlConfiguration.class $(start.class).class # The default configuration files $(jetty.home)/etc/jetty.xml nargs == 0 /usr/share/java/servlet-api-2.5.jar /usr/share/java/slf4j-api.jar # Optional stuff for libjetty-extra-java /usr/share/java/gnumail.jar /usr/share/java/gnumail-providers.jar /usr/share/java/activation.jar /usr/share/java/ant.jar # Set the jetty classpath /usr/share/jetty/lib/** # Add a resources directory if it is there $(jetty.home)/resources/ debian/jetty-extra.conf0000664000000000000000000000054411745736011012327 0ustar # list of jetty configuration and property files # Replace jetty.conf with this file to use the extra features /etc/jetty/jetty-logging.xml /etc/jetty/jetty-jmx.xml /etc/jetty/jetty.xml /etc/jetty/jetty-shared-webapps.xml /etc/jetty/jetty-plus.xml /etc/jetty/jetty-ajp.xml /etc/jetty/jetty-ssl.xml /etc/jetty/jetty-sslengine.xml /etc/jetty/jetty-stats.xml debian/jetty.dirs0000664000000000000000000000016511745736011011221 0ustar etc/jetty etc/jetty/contexts usr/share/jetty usr/share/doc/jetty var/lib/jetty/webapps var/log/jetty var/cache/jetty debian/jetty.postrm0000664000000000000000000000247011745736011011605 0ustar #!/bin/sh set -e #DEBHELPER# # Remove cached files rm -rf /var/cache/jetty/* case "$1" in remove) # Remove ROOT webapp if not modified RWLOC="/var/lib/jetty/webapps/root" RWFILES="$RWLOC/index.html $RWLOC/jetty_banner.gif" if [ "`(cat $RWFILES | md5sum -) 2>/dev/null | cut -d ' ' -f 1`" \ = "12471c4b3020defb7ebd30ef84c0f9dd" ] ; then rm $RWFILES rmdir --ignore-fail-on-non-empty \ /var/lib/jetty/webapps/root \ /var/lib/jetty/webapps \ /var/lib/jetty || true fi if [ -d "/var/cache/jetty" ] ; then rm -rf /var/cache/jetty fi ;; purge) # Remove user/group and log files (don't remove everything under # /var/lib/jetty because there might be user-installed webapps) deluser jetty || true rm -rf /var/log/jetty if [ -d "/var/lib/jetty" ] ; then rmdir --ignore-fail-on-non-empty /var/lib/jetty || true fi rmdir --ignore-fail-on-non-empty /etc/jetty/contexts /etc/jetty || true ;; remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) # Nothing to do here ;; *) echo "$0 called with unknown argument \`$1'" >&2 exit 1 ;; esac debian/TODO0000664000000000000000000000033311745736011007664 0ustar TODO List for jetty in debian * evaluate authbind Modules to add: jetty-terracota jetty-xbean - spring-framework must be available as a deb package (build dependency) - xbean must include the module xbean-spring debian/jetty.links0000664000000000000000000000035711745736011011403 0ustar var/lib/jetty/webapps usr/share/jetty/webapps var/log/jetty usr/share/jetty/logs etc/jetty usr/share/jetty/etc etc/jetty/contexts usr/share/jetty/contexts usr/share/doc/libjetty-java/api usr/share/jetty/javadoc debian/orig-tar.sh0000775000000000000000000000115211745736356011273 0ustar #!/bin/sh -e TAR=../jetty_$2.orig.tar.gz DIR=jetty-$2 TAG=$(echo jetty-$2 | sed 's,~alpha,-alpha-,') svn export http://svn.codehaus.org/jetty/jetty/tags/$TAG/ $DIR rm -r $DIR/modules/jsp-api-2.* rm -r $DIR/extras/win32service rm -r $DIR/contrib/cometd rm -r $DIR/contrib/rpms rm -r $DIR/contrib/debian rm -r $DIR/contrib/grizzly rm -r $DIR/contrib/maven-beanshell-plugin tar -c -z -f $TAR $DIR # drop ../$TAG to avoid "self-destruct" behavior #rm -rf $DIR ../$TAG rm -rf $DIR # move to directory 'tarballs' if [ -r .svn/deb-layout ]; then . .svn/deb-layout mv $TAR $origDir echo "moved $TAR to $origDir" fi debian/jetty.postinst0000664000000000000000000000071611745736011012145 0ustar #!/bin/sh set -e case "$1" in configure) if ! id jetty > /dev/null 2>&1 ; then adduser --system --home /usr/share/jetty --no-create-home \ --group --disabled-password --shell /bin/false \ jetty fi chown -R jetty:adm /var/cache/jetty /var/log/jetty /var/lib/jetty chmod 750 /var/log/jetty ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "$0 called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# debian/watch0000664000000000000000000000020111745736136010227 0ustar version=3 opts=uversionmangle=s/RC/~RC/ http://svn.codehaus.org/jetty/jetty/tags/ \ jetty-([0-6].*)/ debian debian/orig-tar.sh debian/libjetty-java.links0000664000000000000000000000034411745747725013023 0ustar usr/share/java/servlet-api-2.5.jar usr/share/jetty/lib/servlet-api-2.5.jar usr/share/java/jetty-6.1.26.jar usr/share/java/jetty-6.1.24.jar usr/share/java/jetty-util-6.1.26.jar usr/share/java/jetty-util-6.1.24.jar debian/libjetty-extra-java.dirs0000664000000000000000000000025311745736011013746 0ustar usr/share/jetty/lib/ext usr/share/jetty/lib/management usr/share/jetty/lib/management/mx4j usr/share/jetty/lib/naming usr/share/jetty/lib/jsp-2.1 usr/share/jetty/lib/plus debian/jetty.conf0000664000000000000000000000020711745736011011202 0ustar # list of jetty configuration and property files /etc/jetty/jetty-logging.xml /etc/jetty/jetty.xml /etc/jetty/jetty-shared-webapps.xml debian/changelog0000664000000000000000000004703411761131021011043 0ustar jetty (6.1.26-1ubuntu1) quantal; urgency=low * Re-sync from Debian unstable. * d/jetty.init: Look for JAVA_HOME in multiarch locations for openjdk-6 and openjdk-7 (LP: #878527). -- James Page Tue, 29 May 2012 12:23:52 +0100 jetty (6.1.26-1) unstable; urgency=low * New upstream release. - Fixes issues with loading javax.activation. (Closes: #594913) * Enable hardening flags for the setuid.so file. * Updated d/copyright to DEP-5 format 1.0. * Exit 0 in jetty's init script if jetty is already running. Thanks to Toby for the report and patch. (Closes: #626382) * Fix misspelled "character-class" in grep invocation. Thanks to Isaac for the report and correction. (Closes: #637961) * Allow java.library.path to be set in /etc/default/jetty. Thanks to "biddster" for the report and the patches. (Closes: #600175, LP: #656374) * Apply patch from Fedora to fix hash collision related DOS. - CVE-2011-4461 * Remove Michael Koch from Uploaders. Thanks for your work on this package in the past. (Closes: #654034) * Add gnumail-providers.jar to start.config. Thanks to Michele Renda for the suggestion. (Closes: #591851) * Add symlinks from jetty{,-util}-6.1.24.jar to the 6.1.26 version to avoid breaking eclipse. -- Niels Thykier Wed, 25 Apr 2012 12:26:13 +0200 jetty (6.1.24-6) unstable; urgency=medium * Removed Depends on JREs for library packages, no longer required by the policy. * Added missing depends on JREs for the jetty package. * Made init script ignore weird exit statuses from logrotate. (Closes: 589681, LP: #607202) * Fixed broken restart command in jetty init script. Was missing a negation. -- Niels Thykier Mon, 05 Jul 2010 22:28:14 +0200 jetty (6.1.24-5) unstable; urgency=low * Ignore test failures. (Closes: #586635) * Remove debian/.mh in clean target. -- Torsten Werner Tue, 29 Jun 2010 20:53:42 +0200 jetty (6.1.24-4) unstable; urgency=low * Updated the versions in the Manifests to match the actual version of jetty. * Remove all use of sudo in jetty.init. (Closes: #580639) * Fixed some formatting issues in the NEWS file. * Bumped debhelper compat to 7. * Made the javadoc link against system javadocs. This includes adding Recommends on various java-doc packages. -- Niels Thykier Sun, 20 Jun 2010 14:49:32 +0200 jetty (6.1.24-3) unstable; urgency=low [ Torsten Werner ] * Merge changes from Ubuntu version 6.1.22-1ubuntu1: - debian/build.xml, debian/module.xml: Enable tests in the jetty module - debian/rules: Adding slf4j-simple to the DEB_JARS since it's used in tests - debian/rules, debian/control: Added junit and ant-optional needed for tests [ Miguel Landaeta ] * Enable jetty-plus and jetty-annotations modules. (Closes: #585387). -- Torsten Werner Thu, 10 Jun 2010 14:07:51 -0430 jetty (6.1.24-2) unstable; urgency=low * Set JAVA_HOME in d/rules to /usr/lib/jvm/default-java. (Closes: #578618, #579469) * Fix the installation of jetty-util5.jar. (Closes: #569328) -- Torsten Werner Thu, 29 Apr 2010 07:36:43 +0200 jetty (6.1.24-1) unstable; urgency=low [ Niels Thykier ] * Reduced Depends on libjetty-java-doc to a Suggests. (Closes: #569293) * Clarified what JETTY_HOST should be set to in order to accept all connections. (Closes: #554874) * Bumped Standards-Version to 3.8.4 - no changes required. [ Torsten Werner ] * New upstream release. * Change Build-Depends: default-jdk. (Closes: #578618) * Switch to source format 3.0. -- Torsten Werner Fri, 23 Apr 2010 23:55:35 +0200 jetty (6.1.22-1ubuntu1) lucid; urgency=low * debian/build.xml, debian/module.xml: Enable tests in the jetty module * debian/rules: Adding slf4j-simple to the DEB_JARS since it's used in tests * debian/rules, debian/control: Added junit and ant-optional needed for tests * debian/control, debian/rules: Build with default-jdk. -- Thierry Carrez Tue, 26 Jan 2010 09:52:06 +0100 jetty (6.1.22-1) unstable; urgency=medium * New upstream release. (Closes: #553644) * Added OSGi bundle metadata (by upstream). (Closes: #558187) * Corrected path to jetty web-apps (by Niels Thykier). (Closes: #554877) -- Pablo Duboue Sun, 13 Dec 2009 1:55:00 -0400 jetty (6.1.21-1) unstable; urgency=medium * New upstream release. * Stopped using /tmp/jetty-temp in /etc/init.d/jetty for security reasons. - JVM_TMP is now /var/cache/jetty/tmp - JETTY_TMP is now /var/cache/jetty/data * The postrm script no longer deletes files in /tmp/jetty-temp. * Removed Philipp Meier from Uploaders (last upload was 2006-06-07). Thanks for your work on this package. * Corrected javadoc symlink in binary package jetty. -- Niels Thykier Fri, 23 Oct 2009 20:45:43 +0200 jetty (6.1.20-2) unstable; urgency=low * Move documentation to /usr/share/doc/libjetty-java * Better postinst and postrm scripts, aligned with tomcat6 scripts: - postinst: user jetty is created with its own group - postrm: better cleanup of temporary data, thourough remove and purge of data * debian/changelog: - fix suggest for package libjetty-java-doc, add libjetty-java-doc to the list of Suggests for libjetty-java - add libjetty-extra to the list of Suggests for package jetty. -- Ludovic Claude Mon, 07 Sep 2009 00:22:20 +0100 jetty (6.1.20-1) unstable; urgency=medium [ Niels Thykier ] * New upstream release. * Stop using Build-Depends-Indep, since the policy and the build daemons disagree on when it should be used (Closes: #540861). * Corrected jetty.install to reflect the move of some license files in the source tree. * Bumped to Standard-Versions 3.8.3 - no changes required. * Updated jetty.post{install,rm} scripts to use "set -e" instead of passing it to sh. * Installed "VERSION.txt" as upstream changelog. * A previous version (6.1.18-1) fixed the following security problems, which were not mentioned in the changelog: CVE-2007-5613, CVE-2007-5614, CVE-2007-5615, CVE-2009-1523, and CVE-2009-1524 (see below for more information). [ Torsten Werner ] * Set urgency to medium because this version fixes a FTBFS. -- Torsten Werner Sun, 06 Sep 2009 23:06:45 +0200 jetty (6.1.19-2) unstable; urgency=low * Upload to unstable. -- Torsten Werner Sun, 09 Aug 2009 08:48:10 +0200 jetty (6.1.19-1) experimental; urgency=low [ Ludovic Claude ] * New upstream release fixing a security vulnerability (cookies are not secure if you are running behind a netscaler). * Remove the bootstrap patch as it has been added upstream and update the build to use the new start-daemon component. * Remove the Build-Depend on quilt as the patch is not needed anymore. * Add the Maven POM to the package. * Add a Build-Depends dependency on maven-repo-helper. * Use mh_installpom and mh_installjar to install the POM and the jar to the Maven repository. * Add optional support for web applications located in /usr/share/webapps. * Add a cron job that cleans up the old log files in /var/log/jetty. * Register the Javadoc into Debian documentation and put it in a separate package (libjetty-java-doc). * Use openjdk-6-jdk for the build; add a Build-Depends on this package. Required to build the javadoc. * Update debian/copyright (patch provided by Jan Pascal Vanbest ). [ Torsten Werner ] * Add myself to Uploaders. * Update Standards-Version: 3.8.2. * Move package libjetty-java-doc to Section: doc. * Fix init script: check for /etc/default/rcS before reading it. -- Torsten Werner Tue, 14 Jul 2009 11:50:43 +0200 jetty (6.1.18-1) unstable; urgency=low [Ludovic Claude] * Add myself to Uploaders. * Change the build dependency on java-gcj to default-jdk. * Add init.d startup script. * Add dependencies on ant, libslf4j-java, libxerces2-java, libtomcat6-java for libjetty-extra-java, add links for the lib folder. * Add dependency on jsvc to run jetty as a daemon. * Add the package libjetty-setuid-java for the Setuid module (with native code). * Add an index page used when Jetty starts. * Use latest jasper from Tomcat to provide jsp 2.1 instead of Glassfish JSP implementation as in the standard distribution. * Add tools.jar to the classpath to be able to run JSP (Closes: #452586). * Fix Lintian warnings: add ${misc:Depends} to all Depends. * Move jetty to main as all its dependencies are in main, and jetty contains only code that complies with Debian guidelines, use java section like tomcat6 (Closes: #498582). * Do not depend on tomcat 5.5 (Closes: #530720, #458399). * Remove empty prerm and preinst scripts. * Remove old patches that don't apply anymore. * Update copyright and remove full text of Apache license. * Bump up compat to 6 and Standards-Version to 3.8.1. [David Yu] * New upstream release for jetty (Closes: #528389, #527571, #454529, #425152). * Fixed jetty.links. Now delegates install of start.jar to libjetty-java. [ Torsten Werner ] * fixes several security issues: - CVE-2007-5613: Cross-site scripting (XSS) vulnerability in Dump Servlet. - CVE-2007-5614: Quote Sequence vulnerability. - CVE-2007-5615: CRLF injection vulnerability. - CVE-2009-1523: Directory traversal vulnerability in the HTTP server in Mort Bay Jetty. - CVE-2009-1524: Cross-site scripting (XSS) vulnerability in Mort Bay Jetty. (Closes: #454529, #528389, #527571, #543462). -- Ludovic Claude Fri, 12 Jun 2009 17:19:08 +0100 jetty (5.1.14-1) unstable; urgency=low * New upstream release. - Removed debian/patches/cve-2007-6969.patch. Applied upstream. * Added recognition of installed libcommons-el-java to debian/start.config. Closes: #352093. * Fixed short and long service description in debian/jetty.init. Closes: #446788. * Removed libapache2-mod-webapp from Suggests. * Added watch file. -- Michael Koch Wed, 24 Oct 2007 14:14:45 +0200 jetty (5.1.10-4) unstable; urgency=low * Added patch to fix CVE-2006-6969. Thanks to Greg Wilkins for the patch. Closes: #445283. * Updated debian/patches/jdk-1.2-src-encoding.patch to make it work with current ecj. -- Michael Koch Fri, 05 Oct 2007 07:34:55 +0200 jetty (5.1.10-3) unstable; urgency=low * Fix debian/jetty.init to permit removal without purge and offer a new NO_START option in /etc/default/jetty. Closes: #356067. Thanks to Loic Minier for the patch. * Added additional paths to JDK_DIRS in debian/jetty.init. Closes: #405851. * (Build-)Depends on java-gcj-compat. * Moved debhelper from Build-Depends-Indep to Build-Depends. * Removed Build-Depends on libtomcat5-java and replace Depends on libtomcat5-java by libtomcat5.5-java. * Added LSB section in debian/jetty.init. * Removed extra license file from /usr/share/doc/jetty. * Added myself to Uploaders. -- Michael Koch Tue, 24 Jul 2007 20:40:27 +0200 jetty (5.1.10-2) unstable; urgency=low * Fix in init script for new version of su (closes #367491). * Create logfile if not existing. Aknolwedge NMU (closes #356066). -- Philipp Meier Tue, 30 May 2006 10:46:21 +0200 jetty (5.1.10-1) unstable; urgency=low * New upstream release. * Sercurity fixes for windows. * Fixed path aliasing with // on windows. * Fix for AJP13 with multiple headers. * Fix for AJP13 with encoded path. * Remove null dispatch attributes from getAttributeNames. * Put POST content default back to iso_8859_1. GET is UTF-8 still. -- Philipp Meier Tue, 30 May 2006 10:40:18 +0200 jetty (5.1.8-3) unstable; urgency=low * Enhance dependencies. -- Philipp Meier Fri, 16 Dec 2005 10:53:48 +0100 jetty (5.1.8-2) unstable; urgency=low * Add dependeny on apache2-util for log rotation. Closes: #343177. -- Philipp Meier Tue, 13 Dec 2005 14:28:09 +0100 jetty (5.1.8-1) unstable; urgency=low * New upstream release. From 5.1.8: * Fixed space in URL issued created in 5.1.6. From 5.1.7: * improved server stats. * char encoding for MultiPartRequest. * fixed merging of POST params in dispatch query string. * protect from NPE in dispatcher getValues. * Updated to 2.6.2 xerces. * JSP file servlet mappings copy JspServlet init params. * Prefix servlet context logs with org.mortbay.jetty.context. * better support for URI character encodings. * use commons logging jar instead of api jar. -- Philipp Meier Wed, 7 Dec 2005 11:06:10 +0100 jetty (5.1.6-1) unstable; urgency=high * New upstream release. * Fixed JSP visibility security issue in upstream. * Fix location of jasper since upgrade to tomcat5. Closes: #333010. -- Philipp Meier Wed, 30 Nov 2005 15:20:47 +0100 jetty (5.1.5rc1-5) unstable; urgency=low Patch from Oyvind Harboe : * increased default amount of memory available to 256Mbyte. the advantage of having more heap available is that more applications will be able to run without modification to the standard Jetty configuration. * added -Djava.library.path=/usr/lib to VM arguments. This is requried to make e.g. the librxtx-java package work. * Closes: #32960. -- Philipp Meier Thu, 22 Sep 2005 16:13:16 +0200 jetty (5.1.5rc1-4) unstable; urgency=low Patch from Oyvind Harboe : * Fixed rc script /etc/init.d/jetty. "stop" could leave dangling /var/run/jetty.pid. Fixed this by adding "--oknodo" to "start-stop-daemon --stop" command. * Removed trailing "/" from LOGDIR which caused /var/log/out.log not to be created. * /etc/init.d/jetty start will now deal more gracefully with a dangling /var/run/jetty.pid. A dangling jetty.pid is detected and ignored. * Closes: #326176. -- Philipp Meier Fri, 2 Sep 2005 13:40:59 +0200 jetty (5.1.5rc1-3) unstable; urgency=low * Removed -v from ant opts during build. * Remove pid file on stop. Closes: #325667 * Fix location of ant-1.6.jar in start.config. Closes: #324472. -- Philipp Meier Tue, 30 Aug 2005 13:37:15 +0200 jetty (5.1.5rc1-2) unstable; urgency=low * Builds with kaffe. * Adds patch to exclude Sun JSSE if not available. -- Philipp Meier Sat, 27 Aug 2005 14:21:12 +0200 jetty (5.1.5rc1-1) unstable; urgency=low * New upstream release. -- Philipp Meier Fri, 26 Aug 2005 12:53:50 +0200 jetty (5.1.4-1) unstable; urgency=low * New upstream release. * Added myself to Uploaders in control. * Standards-Version bumbed to 3.6.2. * Removed debian/watch which will not work with sourceforge. * Manage changes to upstream with cdbs simple-patchsys. * Fixed rc script /etc/init.d/jetty. * Adjusted new location of servlet.jar. Closes: #280139. -- Philipp Meier Fri, 12 Aug 2005 18:14:28 +0200 jetty (5.0.0-3) unstable; urgency=low * Package is now maintained by pkg-java. Maintainer was updated. * Disable validation of xml files in start.config by default. Closes: #298731. * Add /usr/lib/j2sdk1.5-sun to JAVA_HOME_DIRS in debian/rules. -- Philipp Meier Thu, 30 Jun 2005 14:32:31 +0200 jetty (5.0.0-2.1) unstable; urgency=low * Non-maintainer upload. * Transition to liblog4j1.2-java. Closes: #306761. -- Matej Vela Mon, 2 May 2005 12:12:12 +0200 jetty (5.0.0-2) unstable; urgency=low * Shipping working default configuration in /etc/jetty/jetty.xml. Closes: #278134 -- Philipp Meier Mon, 25 Oct 2004 11:52:25 +0200 jetty (5.0.0-1) unstable; urgency=low * New upstream release. -- Philipp Meier Thu, 16 Sep 2004 00:40:41 +0200 jetty (4.2.22-2) unstable; urgency=low * New upstream release. * Changed mantainer email. -- Philipp Meier Wed, 25 Aug 2004 18:14:56 +0200 jetty (4.2.21-1) unstable; urgency=low * New upstream release. -- Philipp Meier Mon, 23 Aug 2004 15:23:25 +0200 jetty (4.2.19-1) unstable; urgency=high * New upstream release. * Fixed DOS attack problem. -- Philipp Meier Fri, 19 Mar 2004 17:55:45 +0100 jetty (4.2.18-1) unstable; urgency=low * New upstream release. * Package description of jetty-extra lists the extensions provided. Closes: #232824 -- Philipp Meier Mon, 1 Mar 2004 13:54:01 +0100 jetty (4.2.15-1) unstable; urgency=low * Adds missing javadoc to /usr/share/doc/ * Removes invalid libxdoclet-java from Build-Depends. * Fixed clean target in upstreams extra build file. Building jetty twice from the debianized source should work now. -- Philipp Meier Thu, 15 Jan 2004 14:00:13 +0100 jetty (4.2.15) unstable; urgency=low * New upstream release. * New additional package jetty-extra. * Updated standards version from 3.5.10 to 3.6.0 * Build target directory are no longer in debian because the customization of the build process does not really pay off. -- Philipp Meier Wed, 14 Jan 2004 14:00:01 +0100 jetty (4.2.12-2) unstable; urgency=low * Fixes start.config to make jetty run with kaffe. * Updated standards version from 3.5.8 to 3.5.10. -- Philipp Meier Fri, 29 Aug 2003 14:43:40 +0200 jetty (4.2.12-1) unstable; urgency=low * New upstream release. -- Philipp Meier Tue, 12 Aug 2003 14:07:56 +0200 jetty (4.2.11-7) unstable; urgency=low * Adds alternative dependency on j2sdk1.4. * Fixes typos in debian/TODO. * Adds ant to classpath because jasper needs it. -- Philipp Meier Thu, 7 Aug 2003 20:34:19 +0200 jetty (4.2.11-6) unstable; urgency=low * Removes DH_VERBOSE from debian/rules. * /etc/jetty will be removed on purge. * Add build-dependency on j2sdk1.4. -- Philipp Meier Wed, 23 Jul 2003 15:38:05 +0200 jetty (4.2.11-5) unstable; urgency=low * Fix for /etc/default/jetty which was misplaced. * Fixes messed-up corrections for javadoc tags. Introduced before. -- Philipp Meier Wed, 23 Jul 2003 01:11:42 +0200 jetty (4.2.11-4) unstable; urgency=low * Jetty depends on j2re1.4 until build process of jetty with java < 1.4 works. * Fixes in build process. -- Philipp Meier Thu, 17 Jul 2003 12:56:14 +0200 jetty (4.2.11-3) unstable; urgency=low * Creates /usr/share/java/webapps if necessary. * Not longer uses symlinks in ext but a debianized start.config. * Changed to multiline logging. * Removed demo webapps and provides a preliminary debian jetty root. * Fixes /etc/defaults/jetty to be /etc/default/jetty. -- Philipp Meier Thu, 17 Jul 2003 12:56:03 +0200 jetty (4.2.11-2) unstable; urgency=low * Adds build dependencies on libmx4j-java and iblog4j-java. * Removes comment about "Tomcat 4" from /etc/jetty.init. * Renamed debian/{pre,post}{inst,rm} to debian/jetty.* * Enables javac.debug to provide useful stackstraces. -- Philipp Meier Tue, 15 Jul 2003 21:50:36 +0200 jetty (4.2.11-1) unstable; urgency=low * Initial Release. -- Philipp Meier Mon, 14 Jul 2003 13:21:36 +0200 debian/libjetty-extra-java.poms0000664000000000000000000000047111745736011013765 0ustar modules/html/pom.xml modules/management/pom.xml modules/naming/pom.xml extras/servlet-tester/pom.xml extras/ajp/pom.xml extras/threadpool/pom.xml extras/client/pom.xml contrib/jetty-rewrite-handler/pom.xml extras/setuid/pom.xml extras/setuid/modules/java/pom.xml modules/plus/pom.xml modules/annotations/pom.xml debian/build.xml0000664000000000000000000001633211745736011011023 0ustar debian/compat0000664000000000000000000000000211745736011010373 0ustar 7 debian/jetty.install0000664000000000000000000000107711745736011011731 0ustar etc/* etc/jetty debian/jetty-shared-webapps.xml etc/jetty webapps/README.TXT var/lib/jetty/webapps debian/root-webapp/* var/lib/jetty/webapps/root examples/test-webapp/src/main/webapp/jetty_banner.gif var/lib/jetty/webapps/root contexts etc/jetty resources usr/share/jetty README.txt usr/share/doc/jetty LICENSES/cla-* usr/share/doc/jetty/LICENSES LICENSES/ccla-* usr/share/doc/jetty/LICENSES NOTICE.txt usr/share/doc/jetty/LICENSES debian/README.Debian usr/share/doc/jetty debian/jetty.default0000664000000000000000000000276511745742744011726 0ustar # Defaults for jetty see /etc/init.d/jetty for more # change to 0 to allow Jetty to start NO_START=1 # change to 'no' or uncomment to use the default setting in /etc/default/rcS VERBOSE=yes # Run Jetty as this user ID (default: jetty) # Set this to an empty string to prevent Jetty from starting automatically #JETTY_USER=jetty # Listen to connections from this network host # Use 0.0.0.0 as host to accept all connections. # Uncomment to restrict access to localhost #JETTY_HOST=$(uname -n) # The network port used by Jetty #JETTY_PORT=8080 # Timeout in seconds for the shutdown of all webapps #JETTY_SHUTDOWN=30 # Additional arguments to pass to Jetty #JETTY_ARGS= # Extra options to pass to the JVM #JAVA_OPTIONS="-Xmx256m -Djava.awt.headless=true -Djava.library.path=/usr/lib" # Home of Java installation. #JAVA_HOME= # The first existing directory is used for JAVA_HOME (if JAVA_HOME is not # defined in /etc/default/jetty). Should contain a list of space separated directories. #JDK_DIRS="/usr/lib/jvm/default-java /usr/lib/jvm/java-6-sun" # Java compiler to use for translating JavaServer Pages (JSPs). You can use all # compilers that are accepted by Ant's build.compiler property. #JSP_COMPILER=jikes # Jetty uses a directory to store temporary files like unpacked webapps #JETTY_TMP=/var/cache/jetty # Jetty uses a config file to setup its boot classpath #JETTY_START_CONFIG=/etc/jetty/start.config # Default for number of days to keep old log files in /var/log/jetty/ #LOGFILE_DAYS=14 debian/source/0000775000000000000000000000000011745750636010506 5ustar debian/source/format0000664000000000000000000000001411745736011011703 0ustar 3.0 (quilt) debian/patches/0000775000000000000000000000000011761130620010614 5ustar debian/patches/01_add_manifests_with_osgi_bundles_info.patch0000664000000000000000000001612011745736010021550 0ustar Description: Adds MANIFEST.MF with OSGi Bundle information (needed for Eclipse) Origin: Upstream. diff -Naur ./modules-old/jetty/src/main/resources/META-INF/MANIFEST.MF ./modules/jetty/src/main/resources/META-INF/MANIFEST.MF --- ./modules-old/jetty/src/main/resources/META-INF/MANIFEST.MF 1970-01-01 00:00:00.000000000 +0000 +++ ./modules/jetty/src/main/resources/META-INF/MANIFEST.MF 2009-12-09 23:54:58.000000000 +0000 @@ -0,0 +1,71 @@ +Manifest-Version: 1.0 +implementation-version: 6.1.24 +mode: development +package: org.mortbay +url: http://www.eclipse.org/jetty/jetty-parent/project/modules/jetty +Bundle-License: http://www.apache.org/licenses/LICENSE-2.0, http://www + .eclipse.org/org/documents/epl-v10.php +Import-Package: javax.net.ssl,javax.security.cert,javax.servlet;versio + n="2.5",javax.servlet.http;version="2.5",javax.servlet.jsp;resolution + :=optional,javax.servlet.resources;resolution:=optional;version="2.5" + ,javax.xml.parsers,org.apache.jasper.servlet;resolution:=optional,org + .mortbay.component;version="6.1",org.mortbay.jetty.handler.management + ;resolution:=optional,org.mortbay.log;version="6.1",org.mortbay.servl + et;version="6.1",org.mortbay.thread;version="6.1",org.mortbay.util;ve + rsion="6.1",org.mortbay.util.ajax;version="6.1",org.xml.sax,org.xml.s + ax.helpers +Bundle-RequiredExecutionEnvironment: J2SE-1.4 +Bnd-LastModified: 1259702329236 +Export-Package: org.mortbay.jetty.bio;uses:="org.mortbay.log,org.mortb + ay.thread,org.mortbay.io.bio,org.mortbay.io,org.mortbay.jetty";versio + n="6.1.24",org.mortbay.servlet.jetty;uses:="javax.servlet.http,javax. + servlet,org.mortbay.servlet,org.mortbay.io,org.mortbay.jetty";version + ="6.1.24",org.mortbay.jetty.nio;uses:="org.mortbay.log,org.mortbay.th + read,org.mortbay.io,org.mortbay.jetty,org.mortbay.util.ajax,org.mortb + ay.io.nio";version="6.1.24",org.mortbay.resource;uses:="org.mortbay.l + og,org.mortbay.util";version="6.1.24",org.mortbay.io.nio;uses:="org.m + ortbay.log,org.mortbay.component,org.mortbay.thread,org.mortbay.io,or + g.mortbay.jetty";version="6.1.24",org.mortbay.jetty.security;uses:="o + rg.mortbay.util,org.mortbay.component,javax.servlet.http,org.mortbay. + jetty.bio,javax.security.cert,org.mortbay.resource,org.mortbay.log,ja + vax.servlet,org.mortbay.io.bio,org.mortbay.jetty.servlet,org.mortbay. + io,org.mortbay.jetty.handler,org.mortbay.jetty.webapp,org.mortbay.jet + ty,javax.net.ssl";version="6.1.24",org.mortbay.jetty.deployer;uses:=" + org.mortbay.util,org.mortbay.component,org.mortbay.resource,org.mortb + ay.log,org.mortbay.xml,org.mortbay.jetty.handler,org.mortbay.jetty,or + g.mortbay.jetty.webapp";version="6.1.24",org.mortbay.xml;uses:="org.m + ortbay.util,org.mortbay.component,org.xml.sax,org.mortbay.resource,or + g.mortbay.log,javax.xml.parsers,org.xml.sax.helpers";version="6.1.24" + ,org.mortbay.io.bio;uses:="org.mortbay.log,org.mortbay.io";version="6 + .1.24",org.mortbay.jetty.servlet;uses:="org.mortbay.util,javax.servle + t.http,org.mortbay.component,org.mortbay.jetty.nio,org.mortbay.resour + ce,org.mortbay.io.nio,org.mortbay.jetty.security,org.mortbay.log,java + x.servlet,org.mortbay.io,org.mortbay.jetty.handler,org.mortbay.jetty" + ;version="6.1.24",org.mortbay.io;uses:="org.mortbay.log,org.mortbay.u + til";version="6.1.24",org.mortbay.jetty.handler;uses:="org.mortbay.ut + il,org.mortbay.component,javax.servlet.http,org.mortbay.resource,org. + mortbay.log,javax.servlet,org.mortbay.jetty.servlet,org.mortbay.io,or + g.mortbay.jetty.webapp,org.mortbay.jetty";version="6.1.24",org.mortba + y.jetty;uses:="org.mortbay.util,org.mortbay.component,javax.servlet.h + ttp,org.mortbay.jetty.bio,org.mortbay.thread,org.mortbay.resource,org + .mortbay.io.nio,org.mortbay.jetty.security,org.mortbay.log,javax.serv + let,org.mortbay.jetty.servlet,org.mortbay.jetty.handler,org.mortbay.i + o,org.mortbay.jetty.webapp,org.mortbay.util.ajax";version="6.1.24",or + g.mortbay.jetty.webapp;uses:="org.mortbay.util,javax.servlet.http,org + .mortbay.resource,org.mortbay.jetty.security,org.mortbay.jetty.deploy + er,org.mortbay.log,javax.servlet,org.mortbay.xml,org.mortbay.jetty.se + rvlet,org.mortbay.jetty.handler,org.mortbay.jetty";version="6.1.24" +Bundle-Version: 6.1.24 +Ignore-Package: org.mortbay.jetty.bio,org.mortbay.servlet.jetty,org.mo + rtbay.jetty.nio,org.mortbay.resource,org.mortbay.io.nio,org.mortbay.j + etty.security,org.mortbay.jetty.deployer,org.mortbay.xml,org.mortbay. + io.bio,org.mortbay.jetty.servlet,org.mortbay.jetty.handler,org.mortba + y.io,org.mortbay.jetty,org.mortbay.jetty.webapp +Bundle-Name: Jetty Server +Bundle-Description: Jetty server core +Bundle-DocURL: http://jetty.mortbay.org +Bundle-ManifestVersion: 2 +Bundle-Vendor: Mort Bay Consulting +Bundle-SymbolicName: org.mortbay.jetty.server +Tool: Bnd-0.0.238 + diff -Naur ./modules-old/start/src/main/resources/META-INF/MANIFEST.MF ./modules/start/src/main/resources/META-INF/MANIFEST.MF --- ./modules-old/start/src/main/resources/META-INF/MANIFEST.MF 1970-01-01 00:00:00.000000000 +0000 +++ ./modules/start/src/main/resources/META-INF/MANIFEST.MF 2009-12-09 23:54:58.000000000 +0000 @@ -0,0 +1,7 @@ +Manifest-Version: 1.0 +Main-Class: org.mortbay.start.Main +implementation-version: 6.1.24 +mode: development +package: org.mortbay +url: http://www.eclipse.org/jetty/jetty-parent/project/modules/start + diff -Naur ./modules-old/util/src/main/resources/META-INF/MANIFEST.MF ./modules/util/src/main/resources/META-INF/MANIFEST.MF --- ./modules-old/util/src/main/resources/META-INF/MANIFEST.MF 1970-01-01 00:00:00.000000000 +0000 +++ ./modules/util/src/main/resources/META-INF/MANIFEST.MF 2009-12-09 23:54:58.000000000 +0000 @@ -0,0 +1,32 @@ +Manifest-Version: 1.0 +implementation-version: 6.1.24 +mode: development +package: org.mortbay +url: http://www.eclipse.org/jetty/jetty-parent/project/modules/jetty-u + til +Bundle-License: http://www.apache.org/licenses/LICENSE-2.0, http://www + .eclipse.org/org/documents/epl-v10.php +Import-Package: javax.servlet,javax.servlet.http,org.slf4j;resolution: + =optional;version="1.3" +Bundle-RequiredExecutionEnvironment: J2SE-1.4 +Bnd-LastModified: 1259702316270 +Export-Package: org.mortbay.util;uses:="org.mortbay.log,org.mortbay.th + read";version="6.1.24",org.mortbay.log;uses:="org.mortbay.util,org.sl + f4j";version="6.1.24",org.mortbay.component;uses:="org.mortbay.log,or + g.mortbay.util";version="6.1.24",org.mortbay.thread;uses:="org.mortba + y.log,org.mortbay.component";version="6.1.24",org.mortbay.servlet;use + s:="org.mortbay.log,org.mortbay.util,javax.servlet.http,javax.servlet + ,org.mortbay.util.ajax";version="6.1.24",org.mortbay.util.ajax;uses:= + "org.mortbay.log,org.mortbay.util,javax.servlet.http,javax.servlet";v + ersion="6.1.24" +Bundle-Version: 6.1.24 +Ignore-Package: org.mortbay.log,org.mortbay.util,org.mortbay.component + ,org.mortbay.thread,org.mortbay.servlet,org.mortbay.util.ajax +Bundle-Name: Jetty Utilities +Bundle-Description: Utility classes for Jetty +Bundle-DocURL: http://jetty.mortbay.org +Bundle-ManifestVersion: 2 +Bundle-Vendor: Mort Bay Consulting +Bundle-SymbolicName: org.mortbay.jetty.util +Tool: Bnd-0.0.238 + debian/patches/CVE-2011-4461.patch0000664000000000000000000003720111745745061013247 0ustar Description: Fix for Hash collision, see CVE-2011-4461 Origin: https://bugzilla.redhat.com/attachment.cgi?id=556318&action=diff --- a/modules/jetty/src/main/java/org/mortbay/jetty/handler/ContextHandler.java 2012-01-16 13:35:18.000000000 -0500 +++ b/modules/jetty/src/main/java/org/mortbay/jetty/handler/ContextHandler.java 2012-01-16 14:31:48.000000000 -0500 @@ -118,6 +118,7 @@ public class ContextHandler extends Hand private Logger _logger; private boolean _shutdown; private boolean _allowNullPathInfo; + private int _maxFormKeys = Integer.getInteger("org.eclipse.jetty.server.Request.maxFormKeys",1000).intValue(); private int _maxFormContentSize=Integer.getInteger("org.mortbay.jetty.Request.maxFormContentSize",200000).intValue(); private boolean _compactPath=false; @@ -1058,11 +1059,30 @@ public class ContextHandler extends Hand } /* ------------------------------------------------------------ */ + /** + * Set the maximum size of a form post, to protect against DOS attacks from large forms. + * @param maxSize + */ public void setMaxFormContentSize(int maxSize) { _maxFormContentSize=maxSize; } + /* ------------------------------------------------------------ */ + public int getMaxFormKeys() + { + return _maxFormKeys; + } + + /* ------------------------------------------------------------ */ + /** + * Set the maximum number of form Keys to protect against DOS attack from crafted hash keys. + * @param max + */ + public void setMaxFormKeys(int max) + { + _maxFormKeys = max; + } /* ------------------------------------------------------------ */ /** --- a/modules/jetty/src/main/java/org/mortbay/jetty/Request.java 2012-01-16 13:24:22.000000000 -0500 +++ b/modules/jetty/src/main/java/org/mortbay/jetty/Request.java 2012-01-16 13:32:38.000000000 -0500 @@ -98,6 +98,13 @@ import org.mortbay.util.ajax.Continuatio * to avoid reparsing headers and cookies that are likely to be the same for * requests from the same connection. * + *

+ * The form content that a request can process is limited to protect from Denial of Service + * attacks. The size in bytes is limited by {@link ContextHandler#getMaxFormContentSize()} or if there is no + * context then the "org.eclipse.jetty.server.Request.maxFormContentSize" {@link Server} attribute. + * The number of parameters keys is limited by {@link ContextHandler#getMaxFormKeys()} or if there is no + * context then the "org.eclipse.jetty.server.Request.maxFormKeys" {@link Server} attribute. + * * @author gregw * */ @@ -1546,16 +1553,23 @@ public class Request implements HttpServ try { int maxFormContentSize=-1; - + int maxFormKeys=-1; + + + if (_context!=null) + { maxFormContentSize=_context.getContextHandler().getMaxFormContentSize(); + maxFormKeys=_context.getContextHandler().getMaxFormKeys(); + } else { - Integer size = (Integer)_connection.getConnector().getServer().getAttribute("org.mortbay.jetty.Request.maxFormContentSize"); - if (size!=null) - maxFormContentSize =size.intValue(); + Number size = (Number)_connection.getConnector().getServer().getAttribute("org.eclipse.jetty.server.Request.maxFormContentSize"); + maxFormContentSize=size==null?200000:size.intValue(); + Number keys = (Number)_connection.getConnector().getServer().getAttribute("org.eclipse.jetty.server.Request.maxFormKeys"); + maxFormKeys =keys==null?1000:keys.intValue(); } - + if (content_length>maxFormContentSize && maxFormContentSize > 0) { throw new IllegalStateException("Form too large"+content_length+">"+maxFormContentSize); @@ -1563,7 +1577,7 @@ public class Request implements HttpServ InputStream in = getInputStream(); // Add form params to query params - UrlEncoded.decodeTo(in, _baseParameters, encoding,content_length<0?maxFormContentSize:-1); + UrlEncoded.decodeTo(in, _baseParameters, encoding,content_length<0?maxFormContentSize:-1,maxFormKeys); } catch (IOException e) { --- a/modules/jetty/src/test/java/org/mortbay/jetty/RequestTest.java 2012-01-16 14:38:35.000000000 -0500 +++ b/modules/jetty/src/test/java/org/mortbay/jetty/RequestTest.java 2012-01-16 14:45:16.000000000 -0500 @@ -15,10 +15,13 @@ package org.mortbay.jetty; - +import java.io.BufferedReader; +import java.io.File; +import java.io.FileReader; import java.io.IOException; import java.io.Reader; import java.util.ArrayList; +import java.util.HashMap; import javax.servlet.ServletException; import javax.servlet.http.Cookie; @@ -28,10 +31,14 @@ import javax.servlet.http.HttpServletRes import junit.framework.TestCase; import org.mortbay.jetty.Request; +import org.mortbay.jetty.MimeTypes; import org.mortbay.jetty.handler.AbstractHandler; import org.mortbay.jetty.handler.HandlerCollection; import org.mortbay.util.IO; import org.mortbay.util.StringUtil; +import org.mortbay.log.Log; + + /** * @author gregw @@ -482,7 +489,52 @@ public class RequestTest extends TestCas assertEquals("value7" ,cookie[7]); } - + public void testHashDOS() throws Exception + { + _server.setAttribute("org.eclipse.jetty.server.Request.maxFormContentSize",-1); + _server.setAttribute("org.eclipse.jetty.server.Request.maxFormKeys",1000); + + // This file is not distributed - as it is dangerous + File evil_keys = new File("/tmp/keys_mapping_to_zero_2m"); + if (!evil_keys.exists()) + { + Log.info("testHashDOS skipped"); + return; + } + + BufferedReader in = new BufferedReader(new FileReader(evil_keys)); + StringBuilder buf = new StringBuilder(4000000); + + String key=null; + buf.append("a=b"); + while((key=in.readLine())!=null) + { + buf.append("&").append(key).append("=").append("x"); + } + buf.append("&c=d"); + + _handler._checker = new RequestTester() + { + public boolean check(HttpServletRequest request,HttpServletResponse response) + { + return "b".equals(request.getParameter("a")) && request.getParameter("c")==null; + } + }; + + String request="POST / HTTP/1.1\r\n"+ + "Host: whatever\r\n"+ + "Content-Type: "+MimeTypes.FORM_ENCODED+"\r\n"+ + "Content-Length: "+buf.length()+"\r\n"+ + "Connection: close\r\n"+ + "\r\n"+ + buf; + + long start=System.currentTimeMillis(); + String response = _connector.getResponses(request); + assertTrue(response.contains("200 OK")); + long now=System.currentTimeMillis(); + assertTrue((now-start)<5000); + } interface RequestTester @@ -498,8 +550,8 @@ public class RequestTest extends TestCas public void handle(String target, HttpServletRequest request, HttpServletResponse response, int dispatch) throws IOException, ServletException { ((Request)request).setHandled(true); - - if (request.getContentLength()>0) + + if (request.getContentLength()>0 && !MimeTypes.FORM_ENCODED.equals(request.getContentType())) _content=IO.toString(request.getInputStream()); if (_checker!=null && _checker.check(request,response)) --- a/modules/util/src/main/java/org/mortbay/util/UrlEncoded.java 2012-01-16 14:47:05.000000000 -0500 +++ b/modules/util/src/main/java/org/mortbay/util/UrlEncoded.java 2012-01-16 16:59:21.000000000 -0500 @@ -17,9 +17,11 @@ package org.mortbay.util; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; +import java.io.StringWriter; import java.io.UnsupportedEncodingException; import java.util.Iterator; import java.util.Map; +import org.mortbay.log.Log; /* ------------------------------------------------------------ */ @@ -73,13 +75,13 @@ public class UrlEncoded extends MultiMap /* ----------------------------------------------------------------- */ public void decode(String query) { - decodeTo(query,this,ENCODING); + decodeTo(query,this,ENCODING,-1); } /* ----------------------------------------------------------------- */ public void decode(String query,String charset) { - decodeTo(query,this,charset); + decodeTo(query,this,charset,-1); } /* -------------------------------------------------------------- */ @@ -174,6 +176,15 @@ public class UrlEncoded extends MultiMap */ public static void decodeTo(String content, MultiMap map, String charset) { + decodeTo(content,map,charset,-1); + } + + /* -------------------------------------------------------------- */ + /** Decoded parameters to Map. + * @param content the string containing the encoded parameters + */ + public static void decodeTo(String content, MultiMap map, String charset, int maxKeys) + { if (charset==null) charset=ENCODING; @@ -204,6 +215,11 @@ public class UrlEncoded extends MultiMap } key = null; value=null; + if (maxKeys>0 && map.size()>maxKeys) + { + Log.warn("maxFormKeys limit exceeded keys>{}",Integer.valueOf(maxKeys)); + return; + } break; case '=': if (key!=null) @@ -320,9 +336,10 @@ public class UrlEncoded extends MultiMap /** Decoded parameters to Map. * @param in InputSteam to read * @param map MultiMap to add parameters to - * @param maxLength maximum length of content to read 0r -1 for no limit + * @param maxLength maximum length of content to read or -1 for no limit + * @param maxLength maximum number of keys to read or -1 for no limit */ - public static void decode88591To(InputStream in, MultiMap map, int maxLength) + public static void decode88591To(InputStream in, MultiMap map, int maxLength, int maxKeys) throws IOException { synchronized(map) @@ -352,6 +369,11 @@ public class UrlEncoded extends MultiMap } key = null; value=null; + if (maxKeys>0 && map.size()>maxKeys) + { + Log.warn("maxFormKeys limit exceeded keys>{}",Integer.valueOf(maxKeys)); + return; + } break; case '=': @@ -400,9 +422,10 @@ public class UrlEncoded extends MultiMap /** Decoded parameters to Map. * @param in InputSteam to read * @param map MultiMap to add parameters to - * @param maxLength maximum length of content to read 0r -1 for no limit + * @param maxLength maximum length of content to read or -1 for no limit + * @param maxLength maximum number of keys to read or -1 for no limit */ - public static void decodeUtf8To(InputStream in, MultiMap map, int maxLength) + public static void decodeUtf8To(InputStream in, MultiMap map, int maxLength, int maxKeys) throws IOException { synchronized(map) @@ -432,6 +455,11 @@ public class UrlEncoded extends MultiMap } key = null; value=null; + if (maxKeys>0 && map.size()>maxKeys) + { + Log.warn("maxFormKeys limit exceeded keys>{}",Integer.valueOf(maxKeys)); + return; + } break; case '=': @@ -477,43 +505,38 @@ public class UrlEncoded extends MultiMap } /* -------------------------------------------------------------- */ - public static void decodeUtf16To(InputStream in, MultiMap map, int maxLength) throws IOException + public static void decodeUtf16To(InputStream in, MultiMap map, int maxLength, int maxKeys) throws IOException { InputStreamReader input = new InputStreamReader(in,StringUtil.__UTF16); - StringBuffer buf = new StringBuffer(); - - int c; - int length=0; - if (maxLength<0) - maxLength=Integer.MAX_VALUE; - while ((c=input.read())>0 && length++ Welcome to Jetty 6 on Debian

Welcome to Jetty 6 on Debian

Jetty is a 100% Java HTTP Server and Servlet Container. This means that you do not need to configure and run a seperate web server (like Apache) in order to use java, servlets and JSPs to generate dynamic content. Jetty is a fully featured web server for static and dynamic content. Unlike separate server/container solutions, this means that your web server and web application run in the same process, without interconnection overheads and complications. Furthermore, as a pure java component, Jetty can be simply included in your application for demonstration, distribution or deployment. Jetty is available on all Java supported platforms.  

You can also visit Jetty's Javadoc