You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2007/08/13 20:13:49 UTC
svn commit: r565464 - in /tomcat/tc6.0.x/trunk/java/org/apache:
catalina/connector/ catalina/startup/ coyote/ajp/ coyote/http11/
tomcat/util/ tomcat/util/digester/
Author: remm
Date: Mon Aug 13 11:13:47 2007
New Revision: 565464
URL: http://svn.apache.org/viewvc?view=rev&rev=565464
Log:
- Experiment with reporting warnings for unmatched elements and attributes, based on Bill's ideas.
- The NIO HTTP protocol handler does not seem very reporting friendly at the moment.
- The change should be rather safe, if it causes problems that cannot be fixed easily I will revert it.
Modified:
tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Connector.java
tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/Catalina.java
tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/Embedded.java
tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/SetAllPropertiesRule.java
tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/SetContextPropertiesRule.java
tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpAprProtocol.java
tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpProtocol.java
tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java
tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11Protocol.java
tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/IntrospectionUtils.java
tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/Digester.java
tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/SetPropertiesRule.java
tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/SetPropertyRule.java
Modified: tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Connector.java
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Connector.java?view=diff&rev=565464&r1=565463&r2=565464
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Connector.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Connector.java Mon Aug 13 11:13:47 2007
@@ -318,6 +318,20 @@
if (replacements.get(name) != null) {
repl = (String) replacements.get(name);
}
+ if (!IntrospectionUtils.setProperty(protocolHandler, repl, value)) {
+ log.warn("Property " + name + " not found on the protocol handler.");
+ }
+ }
+
+
+ /**
+ * Set a configured property.
+ */
+ public void setPropertyInternal(String name, String value) {
+ String repl = name;
+ if (replacements.get(name) != null) {
+ repl = (String) replacements.get(name);
+ }
IntrospectionUtils.setProperty(protocolHandler, repl, value);
}
@@ -388,7 +402,7 @@
public void setAllowTrace(boolean allowTrace) {
this.allowTrace = allowTrace;
- setProperty("allowTrace", String.valueOf(allowTrace));
+ setPropertyInternal("allowTrace", String.valueOf(allowTrace));
}
@@ -466,7 +480,7 @@
public void setEmptySessionPath(boolean emptySessionPath) {
this.emptySessionPath = emptySessionPath;
- setProperty("emptySessionPath", String.valueOf(emptySessionPath));
+ setPropertyInternal("emptySessionPath", String.valueOf(emptySessionPath));
}
@@ -489,7 +503,7 @@
public void setEnableLookups(boolean enableLookups) {
this.enableLookups = enableLookups;
- setProperty("enableLookups", String.valueOf(enableLookups));
+ setPropertyInternal("enableLookups", String.valueOf(enableLookups));
}
@@ -559,7 +573,7 @@
public void setMaxSavePostSize(int maxSavePostSize) {
this.maxSavePostSize = maxSavePostSize;
- setProperty("maxSavePostSize", String.valueOf(maxSavePostSize));
+ setPropertyInternal("maxSavePostSize", String.valueOf(maxSavePostSize));
}
@@ -581,7 +595,7 @@
public void setPort(int port) {
this.port = port;
- setProperty("port", String.valueOf(port));
+ setPropertyInternal("port", String.valueOf(port));
}
@@ -745,7 +759,7 @@
if(proxyName != null && proxyName.length() > 0) {
this.proxyName = proxyName;
- setProperty("proxyName", proxyName);
+ setPropertyInternal("proxyName", proxyName);
} else {
this.proxyName = null;
removeProperty("proxyName");
@@ -772,7 +786,7 @@
public void setProxyPort(int proxyPort) {
this.proxyPort = proxyPort;
- setProperty("proxyPort", String.valueOf(proxyPort));
+ setPropertyInternal("proxyPort", String.valueOf(proxyPort));
}
@@ -797,7 +811,7 @@
public void setRedirectPort(int redirectPort) {
this.redirectPort = redirectPort;
- setProperty("redirectPort", String.valueOf(redirectPort));
+ setPropertyInternal("redirectPort", String.valueOf(redirectPort));
}
@@ -846,7 +860,7 @@
public void setSecure(boolean secure) {
this.secure = secure;
- setProperty("secure", Boolean.toString(secure));
+ setPropertyInternal("secure", Boolean.toString(secure));
}
/**
@@ -867,7 +881,7 @@
public void setURIEncoding(String URIEncoding) {
this.URIEncoding = URIEncoding;
- setProperty("uRIEncoding", URIEncoding);
+ setPropertyInternal("uRIEncoding", URIEncoding);
}
@@ -890,7 +904,7 @@
public void setUseBodyEncodingForURI(boolean useBodyEncodingForURI) {
this.useBodyEncodingForURI = useBodyEncodingForURI;
- setProperty
+ setPropertyInternal
("useBodyEncodingForURI", String.valueOf(useBodyEncodingForURI));
}
@@ -918,7 +932,7 @@
*/
public void setXpoweredBy(boolean xpoweredBy) {
this.xpoweredBy = xpoweredBy;
- setProperty("xpoweredBy", String.valueOf(xpoweredBy));
+ setPropertyInternal("xpoweredBy", String.valueOf(xpoweredBy));
}
/**
@@ -929,7 +943,7 @@
*/
public void setUseIPVHosts(boolean useIPVHosts) {
this.useIPVHosts = useIPVHosts;
- setProperty("useIPVHosts", String.valueOf(useIPVHosts));
+ setPropertyInternal("useIPVHosts", String.valueOf(useIPVHosts));
}
/**
Modified: tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/Catalina.java
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/Catalina.java?view=diff&rev=565464&r1=565463&r2=565464
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/Catalina.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/Catalina.java Mon Aug 13 11:13:47 2007
@@ -21,10 +21,14 @@
import java.io.File;
import java.io.FileInputStream;
-import java.io.InputStream;
import java.io.IOException;
+import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+
import org.apache.catalina.Container;
import org.apache.catalina.Lifecycle;
import org.apache.catalina.LifecycleException;
@@ -260,6 +264,12 @@
// Initialize the digester
Digester digester = new Digester();
digester.setValidating(false);
+ digester.setRulesValidation(true);
+ HashMap<Class, List<String>> fakeAttributes = new HashMap<Class, List<String>>();
+ ArrayList<String> attrs = new ArrayList<String>();
+ attrs.add("className");
+ fakeAttributes.put(Object.class, attrs);
+ digester.setFakeAttributes(fakeAttributes);
digester.setClassLoader(StandardServer.class.getClassLoader());
// Configure the actions we will be using
Modified: tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/Embedded.java
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/Embedded.java?view=diff&rev=565464&r1=565463&r2=565464
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/Embedded.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/Embedded.java Mon Aug 13 11:13:47 2007
@@ -427,7 +427,7 @@
connector = new Connector();
connector.setScheme("https");
connector.setSecure(true);
- connector.setProperty("SSLEnabled","true");
+ connector.setPropertyInternal("SSLEnabled","true");
// FIXME !!!! SET SSL PROPERTIES
} else {
connector = new Connector(protocol);
Modified: tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/SetAllPropertiesRule.java
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/SetAllPropertiesRule.java?view=diff&rev=565464&r1=565463&r2=565464
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/SetAllPropertiesRule.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/SetAllPropertiesRule.java Mon Aug 13 11:13:47 2007
@@ -62,8 +62,15 @@
name = attributes.getQName(i);
}
String value = attributes.getValue(i);
- if ( !excludes.containsKey(name))
- IntrospectionUtils.setProperty(digester.peek(), name, value);
+ if ( !excludes.containsKey(name)) {
+ if (!digester.isFakeAttribute(digester.peek(), name)
+ && !IntrospectionUtils.setProperty(digester.peek(), name, value)
+ && digester.getRulesValidation()) {
+ digester.getLogger().warn("[SetAllPropertiesRule]{" + digester.getMatch() +
+ "} Setting property '" + name + "' to '" +
+ value + "' did not find a matching property.");
+ }
+ }
}
}
Modified: tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/SetContextPropertiesRule.java
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/SetContextPropertiesRule.java?view=diff&rev=565464&r1=565463&r2=565464
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/SetContextPropertiesRule.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/SetContextPropertiesRule.java Mon Aug 13 11:13:47 2007
@@ -60,7 +60,13 @@
continue;
}
String value = attributes.getValue(i);
- IntrospectionUtils.setProperty(digester.peek(), name, value);
+ if (!digester.isFakeAttribute(digester.peek(), name)
+ && !IntrospectionUtils.setProperty(digester.peek(), name, value)
+ && digester.getRulesValidation()) {
+ digester.getLogger().warn("[SetContextPropertiesRule]{" + digester.getMatch() +
+ "} Setting property '" + name + "' to '" +
+ value + "' did not find a matching property.");
+ }
}
}
Modified: tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpAprProtocol.java
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpAprProtocol.java?view=diff&rev=565464&r1=565463&r2=565464
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpAprProtocol.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpAprProtocol.java Mon Aug 13 11:13:47 2007
@@ -137,22 +137,6 @@
/**
- * Set a property.
- */
- public void setProperty(String name, String value) {
- setAttribute(name, value);
- }
-
-
- /**
- * Get a property
- */
- public String getProperty(String name) {
- return (String) getAttribute(name);
- }
-
-
- /**
* The adapter, used to call the connector
*/
public void setAdapter(Adapter adapter) {
Modified: tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpProtocol.java
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpProtocol.java?view=diff&rev=565464&r1=565463&r2=565464
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpProtocol.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpProtocol.java Mon Aug 13 11:13:47 2007
@@ -137,22 +137,6 @@
/**
- * Set a property.
- */
- public void setProperty(String name, String value) {
- setAttribute(name, value);
- }
-
-
- /**
- * Get a property
- */
- public String getProperty(String name) {
- return (String) getAttribute(name);
- }
-
-
- /**
* The adapter, used to call the connector
*/
public void setAdapter(Adapter adapter) {
Modified: tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java?view=diff&rev=565464&r1=565463&r2=565464
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java Mon Aug 13 11:13:47 2007
@@ -90,20 +90,6 @@
}
/**
- * Set a property.
- */
- public void setProperty(String name, String value) {
- setAttribute(name, value);
- }
-
- /**
- * Get a property
- */
- public String getProperty(String name) {
- return (String)getAttribute(name);
- }
-
- /**
* The adapter, used to call the connector.
*/
protected Adapter adapter;
@@ -325,14 +311,9 @@
public void setRestrictedUserAgents(String valueS) { restrictedUserAgents = valueS; }
- public String getProtocol() {
- return getProperty("protocol");
- }
-
- public void setProtocol( String k ) {
- setSecure(true);
- setAttribute("protocol", k);
- }
+ protected String protocol = null;
+ public String getProtocol() { return protocol; }
+ public void setProtocol(String protocol) { setSecure(true); this.protocol = protocol; }
/**
* Maximum number of requests which can be performed over a keepalive
Modified: tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11Protocol.java
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11Protocol.java?view=diff&rev=565464&r1=565463&r2=565464
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11Protocol.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11Protocol.java Mon Aug 13 11:13:47 2007
@@ -103,20 +103,6 @@
/**
- * Set a property.
- */
- public void setProperty(String name, String value) {
- setAttribute(name, value);
- }
-
- /**
- * Get a property
- */
- public String getProperty(String name) {
- return (String)getAttribute(name);
- }
-
- /**
* Pass config info
*/
public void setAttribute(String name, Object value) {
Modified: tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/IntrospectionUtils.java
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/IntrospectionUtils.java?view=diff&rev=565464&r1=565463&r2=565464
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/IntrospectionUtils.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/IntrospectionUtils.java Mon Aug 13 11:13:47 2007
@@ -258,7 +258,7 @@
* int or boolean we'll convert value to the right type before) - that means
* you can have setDebug(1).
*/
- public static void setProperty(Object o, String name, String value) {
+ public static boolean setProperty(Object o, String name, String value) {
if (dbg > 1)
d("setProperty(" + o.getClass() + " " + name + "=" + value + ")");
@@ -275,7 +275,7 @@
&& "java.lang.String".equals(paramT[0].getName())) {
methods[i].invoke(o, new Object[] { value });
- return;
+ return true;
}
}
@@ -328,7 +328,7 @@
if (ok) {
methods[i].invoke(o, params);
- return;
+ return true;
}
}
@@ -344,6 +344,7 @@
params[0] = name;
params[1] = value;
setPropertyMethod.invoke(o, params);
+ return true;
}
} catch (IllegalArgumentException ex2) {
@@ -367,6 +368,7 @@
if (dbg > 1)
ie.printStackTrace();
}
+ return false;
}
public static Object getProperty(Object o, String name) {
Modified: tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/Digester.java
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/Digester.java?view=diff&rev=565464&r1=565463&r2=565464
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/Digester.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/Digester.java Mon Aug 13 11:13:47 2007
@@ -312,6 +312,19 @@
protected boolean validating = false;
+
+ /**
+ * Warn on missing attributes and elements.
+ */
+ protected boolean rulesValidation = false;
+
+
+ /**
+ * Fake attributes map (attributes are often used for object creation).
+ */
+ protected Map<Class, List<String>> fakeAttributes = null;
+
+
/**
* The Log to which most logging calls will be made.
*/
@@ -889,6 +902,72 @@
/**
+ * Return the rules validation flag.
+ */
+ public boolean getRulesValidation() {
+
+ return (this.rulesValidation);
+
+ }
+
+
+ /**
+ * Set the rules validation flag. This must be called before
+ * <code>parse()</code> is called the first time.
+ *
+ * @param rulesValidation The new rules validation flag.
+ */
+ public void setRulesValidation(boolean rulesValidation) {
+
+ this.rulesValidation = rulesValidation;
+
+ }
+
+
+ /**
+ * Return the fake attributes list.
+ */
+ public Map<Class, List<String>> getFakeAttributes() {
+
+ return (this.fakeAttributes);
+
+ }
+
+
+ /**
+ * Determine if an attribute is a fake attribute.
+ */
+ public boolean isFakeAttribute(Object object, String name) {
+
+ if (fakeAttributes == null) {
+ return false;
+ }
+ List<String> result = fakeAttributes.get(object.getClass());
+ if (result == null) {
+ result = fakeAttributes.get(Object.class);
+ }
+ if (result == null) {
+ return false;
+ } else {
+ return result.contains(name);
+ }
+
+ }
+
+
+ /**
+ * Set the fake attributes.
+ *
+ * @param fakeAttributes The new fake attributes.
+ */
+ public void setFakeAttributes(Map<Class, List<String>> fakeAttributes) {
+
+ this.fakeAttributes = fakeAttributes;
+
+ }
+
+
+ /**
* Return the XMLReader to be used for parsing the input document.
*
* FIX ME: there is a bug in JAXP/XERCES that prevent the use of a
@@ -1037,6 +1116,9 @@
} else {
if (debug) {
log.debug(" No rules found matching '" + match + "'.");
+ }
+ if (rulesValidation) {
+ log.warn(" No rules found matching '" + match + "'.");
}
}
Modified: tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/SetPropertiesRule.java
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/SetPropertiesRule.java?view=diff&rev=565464&r1=565463&r2=565464
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/SetPropertiesRule.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/SetPropertiesRule.java Mon Aug 13 11:13:47 2007
@@ -205,7 +205,13 @@
"} Setting property '" + name + "' to '" +
value + "'");
}
- IntrospectionUtils.setProperty(top, name, value);
+ if (!digester.isFakeAttribute(top, name)
+ && !IntrospectionUtils.setProperty(top, name, value)
+ && digester.getRulesValidation()) {
+ digester.log.warn("[SetPropertiesRule]{" + digester.match +
+ "} Setting property '" + name + "' to '" +
+ value + "' did not find a matching property.");
+ }
}
}
Modified: tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/SetPropertyRule.java
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/SetPropertyRule.java?view=diff&rev=565464&r1=565463&r2=565464
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/SetPropertyRule.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/SetPropertyRule.java Mon Aug 13 11:13:47 2007
@@ -125,8 +125,13 @@
}
// Set the property (with conversion as necessary)
- // FIXME: Exception if property doesn't exist ?
- IntrospectionUtils.setProperty(top, actualName, actualValue);
+ if (!digester.isFakeAttribute(top, actualName)
+ && !IntrospectionUtils.setProperty(top, actualName, actualValue)
+ && digester.getRulesValidation()) {
+ digester.log.warn("[SetPropertyRule]{" + digester.match +
+ "} Setting property '" + name + "' to '" +
+ value + "' did not find a matching property.");
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: svn commit: r565464 - in /tomcat/tc6.0.x/trunk/java/org/apache:
catalina/connector/ catalina/startup/ coyote/ajp/ coyote/http11/ tomcat/util/
tomcat/util/digester/
Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
Remy Maucherat wrote:
> Filip Hanik - Dev Lists wrote:
>> you've been used to getting your way, all the time, you have a very
>> hard to functioning when you don't get your way, you throw tantrums,
>> threats and all kinds of accusations around you instead of working
>> towards a resolution.
>> This isn't a one-man show, never has been. It's give an take. I think
>> a lot of people, including me, have disagreed with things you've
>> done, specially the way you abuse users providing feedback on
>> bugzilla, but we all go along for the sake of the project and the
>> community.
>
> Right, I'm evil, I know it by now. Since you, thankfully, are not
> evil, I would need to qualify how development works on the following
> components:
sure, I'll be happy to
> - clustering functionality
anyone welcome to join, I get most of the feedback from the user
community and that drives the development here.
> - HTTP NIO connector
no one in the tomcat developer community believed in this project,
turned out to work quite well.
again, tons of feedback from the user community, and as always folks are
welcome to join
> - and now, Comet functionality in trunk
had you actually bothered to reply to:
[0] http://marc.info/?l=tomcat-dev&m=118660698611008&w=2
[1] http://marc.info/?l=tomcat-dev&m=118036723731841&w=2
[2] http://marc.info/?l=tomcat-dev&m=118042428922165&w=2
in all three instances, I'd openly said that we can revise it.
> If these aren't a one man show ... You're never participating in other
> components, where there's actual collaboration. In clustering, there
> used one other contributor, but you managed to scare off the only
> other contributor with constant refactorings.
I'll leave Peter to answer if he got scared off or not. I'm not going to
speak for him, I don't believe anyone has the right to.
But the refactorings were necessary, and extremely useful.
turns out that even jboss/jgroups adopted a few ideas from here
(example: multiplex channel and concurrency in the channel stack)
>
> About BZ, which is a legitimate claim, I find reports of many people
> to simply be irritating. The feeling grows with time, and it's been a
> long time. As a result, I am not patient at all. To avoid the problem,
> I am now not often commenting in BZ anymore, which works reasonably well.
>
> About the Comet functionality evolution, I evidently agreed on a
> number of features, which I thought you had understood (it turned out
> to not be so accurate). I never agreed to specific APIs, and I never
> said I wouldn't refine my ideas. Starting with a fully explicit and
> detailed API is cool, but then I did start looking at usage, improving
> it, and removing cruft. It's an iterative improvement process.
see the links above
>
> The rest of the email does not make much sense to me. I think if you
> believe I am bad for the community, you should not waste more time,
> and call for a PMC vote to remove my commit privileges. It's been done
> before in other projects in similar situations.
another ultimatum?
I'll leave that to the PMC chair, as that would fall into the category
of such decisions. As for me personally, I think you are a very good
coder, somewhat short sighted on other folks ideas and communication
skills, but you've done lots of good for the project, (maybe not as much
for the community).
Filip
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: svn commit: r565464 - in /tomcat/tc6.0.x/trunk/java/org/apache:
catalina/connector/ catalina/startup/ coyote/ajp/ coyote/http11/ tomcat/util/
tomcat/util/digester/
Posted by Remy Maucherat <re...@apache.org>.
Filip Hanik - Dev Lists wrote:
> you've been used to getting your way, all the time, you have a very hard
> to functioning when you don't get your way, you throw tantrums, threats
> and all kinds of accusations around you instead of working towards a
> resolution.
> This isn't a one-man show, never has been. It's give an take. I think a
> lot of people, including me, have disagreed with things you've done,
> specially the way you abuse users providing feedback on bugzilla, but we
> all go along for the sake of the project and the community.
Right, I'm evil, I know it by now. Since you, thankfully, are not evil,
I would need to qualify how development works on the following components:
- clustering functionality
- HTTP NIO connector
- and now, Comet functionality in trunk
If these aren't a one man show ... You're never participating in other
components, where there's actual collaboration. In clustering, there
used one other contributor, but you managed to scare off the only other
contributor with constant refactorings.
About BZ, which is a legitimate claim, I find reports of many people to
simply be irritating. The feeling grows with time, and it's been a long
time. As a result, I am not patient at all. To avoid the problem, I am
now not often commenting in BZ anymore, which works reasonably well.
About the Comet functionality evolution, I evidently agreed on a number
of features, which I thought you had understood (it turned out to not be
so accurate). I never agreed to specific APIs, and I never said I
wouldn't refine my ideas. Starting with a fully explicit and detailed
API is cool, but then I did start looking at usage, improving it, and
removing cruft. It's an iterative improvement process.
The rest of the email does not make much sense to me. I think if you
believe I am bad for the community, you should not waste more time, and
call for a PMC vote to remove my commit privileges. It's been done
before in other projects in similar situations.
Rémy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: svn commit: r565464 - in /tomcat/tc6.0.x/trunk/java/org/apache:
catalina/connector/ catalina/startup/ coyote/ajp/ coyote/http11/ tomcat/util/
tomcat/util/digester/
Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
Remy Maucherat wrote:
> Filip Hanik - Dev Lists wrote:
>> Remy Maucherat wrote:
>>> Tim Funk wrote:
>>>> I thought changes were going into trunk and then when applicable,
>>>> backported to 6.0.x.
>>>
>>> While I initiated the creation of the trunk branch, I can no longer
>>> work with Filip since I disagree with him on API design, and I don't
>>> like his ideas on collaboration. As a result, I do not wish to
>>> participate in trunk development, and I have to do my development
>>> activities elsewhere :(
>> it's community development, you can participate or not. That's your
>> call.
>> You've threatened to start other branches elsewhere, you've
>> threatened to leave, you can keep threatening, if the community is
>> strong enough it will survive. If it is not, then it will fall, just
>> like Rome did.
>
> No, trunk is Filip's development, and that's it.
I don't see how that is, you created it, you even agreed to most of the
initial Comet interface changes, even before trunk was created.
After that, you through in a bunch of vetoes based on your personal
preference of an API, even though you already agreed. I would say, those
vetoes were noted, but invalid, they didn't have a technical
explanations. Vetoes are a pretty serious thing, but you throw 'em out
often without an explanation.
After that you withdrew your proposal, and withdrew your vetoes as well.
So at that point, trunk would be official.
> I've been working elsewhere since I had no other choice, and I regret
> there is no way to collaborate. ASF projects cannot go anywhere if two
> parties are in constant opposition, so basically one of us needs to go
> away for the project to move forward.
you've been used to getting your way, all the time, you have a very hard
to functioning when you don't get your way, you throw tantrums, threats
and all kinds of accusations around you instead of working towards a
resolution.
This isn't a one-man show, never has been. It's give an take. I think a
lot of people, including me, have disagreed with things you've done,
specially the way you abuse users providing feedback on bugzilla, but we
all go along for the sake of the project and the community.
>
>>> I now think removing the trunk branch or moving it to the sandbox
>>> would be best.
>> I'm gonna propose for trunk to stay, we specifically made that cause
>> you decided changes the Geronimo team needed were not appropriate.
>> And there are other changes that have gone in there since then.
>
> Maybe switching to a tigher patch inclusion process like what is done
> in httpd, and reboot trunk, could be a solution. As you may have
> noticed, I disagreed with all your Comet related commits, and you
> never cared in any way. This would have avoided the initial divide.
I was more than willing to continue the discussion around the API, but
you ignored that and you jumped the gun and started another sandbox
project instead. That was your call again.
Filip
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: svn commit: r565464 - in /tomcat/tc6.0.x/trunk/java/org/apache:
catalina/connector/ catalina/startup/ coyote/ajp/ coyote/http11/ tomcat/util/
tomcat/util/digester/
Posted by Remy Maucherat <re...@apache.org>.
Filip Hanik - Dev Lists wrote:
> Remy Maucherat wrote:
>> Tim Funk wrote:
>>> I thought changes were going into trunk and then when applicable,
>>> backported to 6.0.x.
>>
>> While I initiated the creation of the trunk branch, I can no longer
>> work with Filip since I disagree with him on API design, and I don't
>> like his ideas on collaboration. As a result, I do not wish to
>> participate in trunk development, and I have to do my development
>> activities elsewhere :(
> it's community development, you can participate or not. That's your call.
> You've threatened to start other branches elsewhere, you've threatened
> to leave, you can keep threatening, if the community is strong enough it
> will survive. If it is not, then it will fall, just like Rome did.
No, trunk is Filip's development, and that's it. I've been working
elsewhere since I had no other choice, and I regret there is no way to
collaborate. ASF projects cannot go anywhere if two parties are in
constant opposition, so basically one of us needs to go away for the
project to move forward.
>> I now think removing the trunk branch or moving it to the sandbox
>> would be best.
> I'm gonna propose for trunk to stay, we specifically made that cause you
> decided changes the Geronimo team needed were not appropriate.
> And there are other changes that have gone in there since then.
Maybe switching to a tigher patch inclusion process like what is done in
httpd, and reboot trunk, could be a solution. As you may have noticed, I
disagreed with all your Comet related commits, and you never cared in
any way. This would have avoided the initial divide.
Unless I missed something, the patch which Geronimo needs is API
incompatible with Tomcat 6.0.x, and external projects are already using
the said API for integration with Tomcat, so I don't see a way to do it.
Let me know if I missed something.
>>> Since this change is only writing warning messages. It seems
>>> appropriate that it can remain in 6.0.x.
>>
>> Yes, it should only display warnings, but if we display bad warnings
>> in a stable release, we'll get zillions of angry users.
> right up your ally ;)
Huh ?
>> So it's important to get it right. I committed this in the 6.0.x
>> branch since I don't have any other sensible place to commit it.
>>
> it not backwards compatible, that's why 6.0 would be inappropriate for
> such a change
Feel free to veto the patch and then revert it if you think it's
inappropriate.
Rémy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: svn commit: r565464 - in /tomcat/tc6.0.x/trunk/java/org/apache:
catalina/connector/ catalina/startup/ coyote/ajp/ coyote/http11/ tomcat/util/
tomcat/util/digester/
Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
Remy Maucherat wrote:
> Tim Funk wrote:
>> I thought changes were going into trunk and then when applicable,
>> backported to 6.0.x.
>
> While I initiated the creation of the trunk branch, I can no longer
> work with Filip since I disagree with him on API design, and I don't
> like his ideas on collaboration. As a result, I do not wish to
> participate in trunk development, and I have to do my development
> activities elsewhere :(
it's community development, you can participate or not. That's your call.
You've threatened to start other branches elsewhere, you've threatened
to leave, you can keep threatening, if the community is strong enough it
will survive. If it is not, then it will fall, just like Rome did.
> I now think removing the trunk branch or moving it to the sandbox
> would be best.
I'm gonna propose for trunk to stay, we specifically made that cause you
decided changes the Geronimo team needed were not appropriate.
And there are other changes that have gone in there since then.
>
>> Since this change is only writing warning messages. It seems
>> appropriate that it can remain in 6.0.x.
>
> Yes, it should only display warnings, but if we display bad warnings
> in a stable release, we'll get zillions of angry users.
right up your ally ;)
> So it's important to get it right. I committed this in the 6.0.x
> branch since I don't have any other sensible place to commit it.
>
it not backwards compatible, that's why 6.0 would be inappropriate for
such a change
Filip
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: svn commit: r565464 - in /tomcat/tc6.0.x/trunk/java/org/apache:
catalina/connector/ catalina/startup/ coyote/ajp/ coyote/http11/ tomcat/util/
tomcat/util/digester/
Posted by Remy Maucherat <re...@apache.org>.
Tim Funk wrote:
> I thought changes were going into trunk and then when applicable,
> backported to 6.0.x.
While I initiated the creation of the trunk branch, I can no longer work
with Filip since I disagree with him on API design, and I don't like his
ideas on collaboration. As a result, I do not wish to participate in
trunk development, and I have to do my development activities elsewhere
:( I now think removing the trunk branch or moving it to the sandbox
would be best.
> Since this change is only writing warning messages. It seems appropriate
> that it can remain in 6.0.x.
Yes, it should only display warnings, but if we display bad warnings in
a stable release, we'll get zillions of angry users. So it's important
to get it right. I committed this in the 6.0.x branch since I don't have
any other sensible place to commit it.
Rémy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: svn commit: r565464 - in /tomcat/tc6.0.x/trunk/java/org/apache:
catalina/connector/ catalina/startup/ coyote/ajp/ coyote/http11/ tomcat/util/
tomcat/util/digester/
Posted by Tim Funk <fu...@joedog.org>.
I thought changes were going into trunk and then when applicable,
backported to 6.0.x.
Since this change is only writing warning messages. It seems appropriate
that it can remain in 6.0.x.
-Tim
Remy Maucherat wrote:
> Filip Hanik - Dev Lists wrote:
>> this should have been done in trunk, way too big change for a minor
>> dot release upgrade
>> I suggest we move it there, revert in 6.0, and if it works well in
>> trunk, we backport
>
> Personally, I will not be working in trunk, which is your toy branch. I
> considered this change to be appropriate to be committed in 6.0.x. Are
> you vetoing this commit ?
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: svn commit: r565464 - in /tomcat/tc6.0.x/trunk/java/org/apache:
catalina/connector/ catalina/startup/ coyote/ajp/ coyote/http11/ tomcat/util/
tomcat/util/digester/
Posted by Remy Maucherat <re...@apache.org>.
Filip Hanik - Dev Lists wrote:
> this should have been done in trunk, way too big change for a minor dot
> release upgrade
> I suggest we move it there, revert in 6.0, and if it works well in
> trunk, we backport
Personally, I will not be working in trunk, which is your toy branch. I
considered this change to be appropriate to be committed in 6.0.x. Are
you vetoing this commit ?
Rémy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: svn commit: r565464 - in /tomcat/tc6.0.x/trunk/java/org/apache:
catalina/connector/ catalina/startup/ coyote/ajp/ coyote/http11/ tomcat/util/
tomcat/util/digester/
Posted by Remy Maucherat <re...@apache.org>.
Filip Hanik - Dev Lists wrote:
> as you might have noticed, but I didn't veto the change either. but the
> fact that 6.0.14 has a pretty serious bug in the Comet related code,
> that after a comet request has ended also breaks regular HTTP requests,
> would call for another release fairly shortly, large changes like this,
> do have a tendency to delay such releases, as we now need a lot more
> testing and feedback to vote it stable
It's not a regression, affecting only a slightly edgy feature, so I
would at least wait a few weeks to see if there are more things to fix
in this build before releasing a new 6.0.x.
Rémy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: svn commit: r565464 - in /tomcat/tc6.0.x/trunk/java/org/apache:
catalina/connector/ catalina/startup/ coyote/ajp/ coyote/http11/ tomcat/util/
tomcat/util/digester/
Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
Remy Maucherat wrote:
> Bill Barker wrote:
>> Tomcat has <strong>never</strong> made any promise that the core API
>> won't change between versions. If you depend on the Tomcat API at
>> any version level, then you are required to review at the next level.
>
> There should be no backwards incompatible changes in my change. The
> only method signature which does change is in IntroUtils, to return a
> boolean. It is possible to add a setProperty2 method and revert
> setProperty to what it was.
>
> - public static void setProperty(Object o, String name, String
> value) {
> + public static boolean setProperty(Object o, String name, String
> value) {
>
> The digester (if there was use of it despite the package renaming)
> should default to the old behavior.
as you might have noticed, but I didn't veto the change either. but the
fact that 6.0.14 has a pretty serious bug in the Comet related code,
that after a comet request has ended also breaks regular HTTP requests,
would call for another release fairly shortly, large changes like this,
do have a tendency to delay such releases, as we now need a lot more
testing and feedback to vote it stable
Filip
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: svn commit: r565464 - in /tomcat/tc6.0.x/trunk/java/org/apache:
catalina/connector/ catalina/startup/ coyote/ajp/ coyote/http11/ tomcat/util/
tomcat/util/digester/
Posted by Remy Maucherat <re...@apache.org>.
Bill Barker wrote:
> Tomcat has <strong>never</strong> made any promise that the core API won't
> change between versions. If you depend on the Tomcat API at any version
> level, then you are required to review at the next level.
There should be no backwards incompatible changes in my change. The only
method signature which does change is in IntroUtils, to return a
boolean. It is possible to add a setProperty2 method and revert
setProperty to what it was.
- public static void setProperty(Object o, String name, String value) {
+ public static boolean setProperty(Object o, String name, String
value) {
The digester (if there was use of it despite the package renaming)
should default to the old behavior.
Rémy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: svn commit: r565464 - in /tomcat/tc6.0.x/trunk/java/org/apache: catalina/connector/ catalina/startup/ coyote/ajp/ coyote/http11/ tomcat/util/ tomcat/util/digester/
Posted by Bill Barker <wb...@wilshire.com>.
"Filip Hanik - Dev Lists" <de...@hanik.com> wrote in message
news:46C31047.2090505@hanik.com...
> this should have been done in trunk, way too big change for a minor dot
> release upgrade
> I suggest we move it there, revert in 6.0, and if it works well in trunk,
> we backport
>
Tomcat has <strong>never</strong> made any promise that the core API won't
change between versions. If you depend on the Tomcat API at any version
level, then you are required to review at the next level. Therefore, I'm
officially voting -1 (veto) on your suggestion. Remy's patch is useful, and
if any minor bugs are found, easily fixed.
> Filip
>
> remm@apache.org wrote:
>> Author: remm
>> Date: Mon Aug 13 11:13:47 2007
>> New Revision: 565464
>>
>> URL: http://svn.apache.org/viewvc?view=rev&rev=565464
>> Log:
>> - Experiment with reporting warnings for unmatched elements and
>> attributes, based on Bill's ideas.
>> - The NIO HTTP protocol handler does not seem very reporting friendly at
>> the moment.
>> - The change should be rather safe, if it causes problems that cannot be
>> fixed easily I will revert it.
>>
>> Modified:
>>
>> tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Connector.java
>> tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/Catalina.java
>> tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/Embedded.java
>>
>> tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/SetAllPropertiesRule.java
>>
>> tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/SetContextPropertiesRule.java
>> tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpAprProtocol.java
>> tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpProtocol.java
>>
>> tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java
>>
>> tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11Protocol.java
>>
>> tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/IntrospectionUtils.java
>>
>> tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/Digester.java
>>
>> tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/SetPropertiesRule.java
>>
>> tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/SetPropertyRule.java
>>
>> Modified:
>> tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Connector.java
>> URL:
>> http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Connector.java?view=diff&rev=565464&r1=565463&r2=565464
>> ==============================================================================
>> ---
>> tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Connector.java
>> (original)
>> +++
>> tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Connector.java
>> Mon Aug 13 11:13:47 2007
>> @@ -318,6 +318,20 @@
>> if (replacements.get(name) != null) {
>> repl = (String) replacements.get(name);
>> }
>> + if (!IntrospectionUtils.setProperty(protocolHandler, repl,
>> value)) {
>> + log.warn("Property " + name + " not found on the protocol
>> handler.");
>> + }
>> + }
>> +
>> +
>> + /**
>> + * Set a configured property.
>> + */
>> + public void setPropertyInternal(String name, String value) {
>> + String repl = name;
>> + if (replacements.get(name) != null) {
>> + repl = (String) replacements.get(name);
>> + }
>> IntrospectionUtils.setProperty(protocolHandler, repl, value);
>> }
>> @@ -388,7 +402,7 @@
>> public void setAllowTrace(boolean allowTrace) {
>> this.allowTrace = allowTrace;
>> - setProperty("allowTrace", String.valueOf(allowTrace));
>> + setPropertyInternal("allowTrace", String.valueOf(allowTrace));
>> }
>> @@ -466,7 +480,7 @@
>> public void setEmptySessionPath(boolean emptySessionPath) {
>> this.emptySessionPath = emptySessionPath;
>> - setProperty("emptySessionPath",
>> String.valueOf(emptySessionPath));
>> + setPropertyInternal("emptySessionPath",
>> String.valueOf(emptySessionPath));
>> }
>> @@ -489,7 +503,7 @@
>> public void setEnableLookups(boolean enableLookups) {
>> this.enableLookups = enableLookups;
>> - setProperty("enableLookups", String.valueOf(enableLookups));
>> + setPropertyInternal("enableLookups",
>> String.valueOf(enableLookups));
>> }
>> @@ -559,7 +573,7 @@
>> public void setMaxSavePostSize(int maxSavePostSize) {
>> this.maxSavePostSize = maxSavePostSize;
>> - setProperty("maxSavePostSize", String.valueOf(maxSavePostSize));
>> + setPropertyInternal("maxSavePostSize",
>> String.valueOf(maxSavePostSize));
>> }
>> @@ -581,7 +595,7 @@
>> public void setPort(int port) {
>> this.port = port;
>> - setProperty("port", String.valueOf(port));
>> + setPropertyInternal("port", String.valueOf(port));
>> }
>> @@ -745,7 +759,7 @@
>> if(proxyName != null && proxyName.length() > 0) {
>> this.proxyName = proxyName;
>> - setProperty("proxyName", proxyName);
>> + setPropertyInternal("proxyName", proxyName);
>> } else {
>> this.proxyName = null;
>> removeProperty("proxyName");
>> @@ -772,7 +786,7 @@
>> public void setProxyPort(int proxyPort) {
>> this.proxyPort = proxyPort;
>> - setProperty("proxyPort", String.valueOf(proxyPort));
>> + setPropertyInternal("proxyPort", String.valueOf(proxyPort));
>> }
>> @@ -797,7 +811,7 @@
>> public void setRedirectPort(int redirectPort) {
>> this.redirectPort = redirectPort;
>> - setProperty("redirectPort", String.valueOf(redirectPort));
>> + setPropertyInternal("redirectPort",
>> String.valueOf(redirectPort));
>> }
>> @@ -846,7 +860,7 @@
>> public void setSecure(boolean secure) {
>> this.secure = secure;
>> - setProperty("secure", Boolean.toString(secure));
>> + setPropertyInternal("secure", Boolean.toString(secure));
>> }
>> /**
>> @@ -867,7 +881,7 @@
>> public void setURIEncoding(String URIEncoding) {
>> this.URIEncoding = URIEncoding;
>> - setProperty("uRIEncoding", URIEncoding);
>> + setPropertyInternal("uRIEncoding", URIEncoding);
>> }
>> @@ -890,7 +904,7 @@
>> public void setUseBodyEncodingForURI(boolean useBodyEncodingForURI)
>> {
>> this.useBodyEncodingForURI = useBodyEncodingForURI;
>> - setProperty
>> + setPropertyInternal
>> ("useBodyEncodingForURI",
>> String.valueOf(useBodyEncodingForURI));
>> }
>> @@ -918,7 +932,7 @@
>> */
>> public void setXpoweredBy(boolean xpoweredBy) {
>> this.xpoweredBy = xpoweredBy;
>> - setProperty("xpoweredBy", String.valueOf(xpoweredBy));
>> + setPropertyInternal("xpoweredBy", String.valueOf(xpoweredBy));
>> }
>> /**
>> @@ -929,7 +943,7 @@
>> */
>> public void setUseIPVHosts(boolean useIPVHosts) {
>> this.useIPVHosts = useIPVHosts;
>> - setProperty("useIPVHosts", String.valueOf(useIPVHosts));
>> + setPropertyInternal("useIPVHosts", String.valueOf(useIPVHosts));
>> }
>> /**
>>
>> Modified:
>> tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/Catalina.java
>> URL:
>> http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/Catalina.java?view=diff&rev=565464&r1=565463&r2=565464
>> ==============================================================================
>> --- tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/Catalina.java
>> (original)
>> +++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/Catalina.java
>> Mon Aug 13 11:13:47 2007
>> @@ -21,10 +21,14 @@
>> import java.io.File;
>> import java.io.FileInputStream;
>> -import java.io.InputStream;
>> import java.io.IOException;
>> +import java.io.InputStream;
>> import java.io.OutputStream;
>> import java.net.Socket;
>> +import java.util.ArrayList;
>> +import java.util.HashMap;
>> +import java.util.List;
>> +
>> import org.apache.catalina.Container;
>> import org.apache.catalina.Lifecycle;
>> import org.apache.catalina.LifecycleException;
>> @@ -260,6 +264,12 @@
>> // Initialize the digester
>> Digester digester = new Digester();
>> digester.setValidating(false);
>> + digester.setRulesValidation(true);
>> + HashMap<Class, List<String>> fakeAttributes = new HashMap<Class,
>> List<String>>();
>> + ArrayList<String> attrs = new ArrayList<String>();
>> + attrs.add("className");
>> + fakeAttributes.put(Object.class, attrs);
>> + digester.setFakeAttributes(fakeAttributes);
>> digester.setClassLoader(StandardServer.class.getClassLoader());
>> // Configure the actions we will be using
>>
>> Modified:
>> tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/Embedded.java
>> URL:
>> http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/Embedded.java?view=diff&rev=565464&r1=565463&r2=565464
>> ==============================================================================
>> --- tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/Embedded.java
>> (original)
>> +++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/Embedded.java
>> Mon Aug 13 11:13:47 2007
>> @@ -427,7 +427,7 @@
>> connector = new Connector();
>> connector.setScheme("https");
>> connector.setSecure(true);
>> - connector.setProperty("SSLEnabled","true");
>> + connector.setPropertyInternal("SSLEnabled","true");
>> // FIXME !!!! SET SSL PROPERTIES
>> } else {
>> connector = new Connector(protocol);
>>
>> Modified:
>> tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/SetAllPropertiesRule.java
>> URL:
>> http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/SetAllPropertiesRule.java?view=diff&rev=565464&r1=565463&r2=565464
>> ==============================================================================
>> ---
>> tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/SetAllPropertiesRule.java
>> (original)
>> +++
>> tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/SetAllPropertiesRule.java
>> Mon Aug 13 11:13:47 2007
>> @@ -62,8 +62,15 @@
>> name = attributes.getQName(i);
>> }
>> String value = attributes.getValue(i);
>> - if ( !excludes.containsKey(name)) -
>> IntrospectionUtils.setProperty(digester.peek(), name, value);
>> + if ( !excludes.containsKey(name)) {
>> + if (!digester.isFakeAttribute(digester.peek(), name) +
>> && !IntrospectionUtils.setProperty(digester.peek(), name, value) +
>> && digester.getRulesValidation()) {
>> + digester.getLogger().warn("[SetAllPropertiesRule]{"
>> + digester.getMatch() +
>> + "} Setting property '" + name + "' to '" +
>> + value + "' did not find a matching
>> property.");
>> + }
>> + }
>> }
>> }
>>
>> Modified:
>> tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/SetContextPropertiesRule.java
>> URL:
>> http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/SetContextPropertiesRule.java?view=diff&rev=565464&r1=565463&r2=565464
>> ==============================================================================
>> ---
>> tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/SetContextPropertiesRule.java
>> (original)
>> +++
>> tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/SetContextPropertiesRule.java
>> Mon Aug 13 11:13:47 2007
>> @@ -60,7 +60,13 @@
>> continue;
>> }
>> String value = attributes.getValue(i);
>> - IntrospectionUtils.setProperty(digester.peek(), name,
>> value);
>> + if (!digester.isFakeAttribute(digester.peek(), name) +
>> && !IntrospectionUtils.setProperty(digester.peek(), name, value) +
>> && digester.getRulesValidation()) {
>> + digester.getLogger().warn("[SetContextPropertiesRule]{"
>> + digester.getMatch() +
>> + "} Setting property '" + name + "' to '" +
>> + value + "' did not find a matching property.");
>> + }
>> }
>> }
>>
>> Modified:
>> tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpAprProtocol.java
>> URL:
>> http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpAprProtocol.java?view=diff&rev=565464&r1=565463&r2=565464
>> ==============================================================================
>> --- tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpAprProtocol.java
>> (original)
>> +++ tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpAprProtocol.java
>> Mon Aug 13 11:13:47 2007
>> @@ -137,22 +137,6 @@
>> /**
>> - * Set a property.
>> - */
>> - public void setProperty(String name, String value) {
>> - setAttribute(name, value);
>> - }
>> -
>> -
>> - /**
>> - * Get a property
>> - */
>> - public String getProperty(String name) {
>> - return (String) getAttribute(name);
>> - }
>> -
>> -
>> - /**
>> * The adapter, used to call the connector
>> */
>> public void setAdapter(Adapter adapter) {
>>
>> Modified:
>> tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpProtocol.java
>> URL:
>> http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpProtocol.java?view=diff&rev=565464&r1=565463&r2=565464
>> ==============================================================================
>> --- tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpProtocol.java
>> (original)
>> +++ tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpProtocol.java Mon
>> Aug 13 11:13:47 2007
>> @@ -137,22 +137,6 @@
>> /**
>> - * Set a property.
>> - */
>> - public void setProperty(String name, String value) {
>> - setAttribute(name, value);
>> - }
>> -
>> -
>> - /**
>> - * Get a property
>> - */
>> - public String getProperty(String name) {
>> - return (String) getAttribute(name);
>> - }
>> -
>> -
>> - /**
>> * The adapter, used to call the connector
>> */
>> public void setAdapter(Adapter adapter) {
>>
>> Modified:
>> tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java
>> URL:
>> http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java?view=diff&rev=565464&r1=565463&r2=565464
>> ==============================================================================
>> ---
>> tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java
>> (original)
>> +++
>> tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java
>> Mon Aug 13 11:13:47 2007
>> @@ -90,20 +90,6 @@
>> }
>> /**
>> - * Set a property.
>> - */
>> - public void setProperty(String name, String value) {
>> - setAttribute(name, value);
>> - }
>> -
>> - /**
>> - * Get a property
>> - */
>> - public String getProperty(String name) {
>> - return (String)getAttribute(name);
>> - }
>> -
>> - /**
>> * The adapter, used to call the connector.
>> */
>> protected Adapter adapter;
>> @@ -325,14 +311,9 @@
>> public void setRestrictedUserAgents(String valueS) {
>> restrictedUserAgents = valueS; }
>> - public String getProtocol() {
>> - return getProperty("protocol");
>> - }
>> -
>> - public void setProtocol( String k ) {
>> - setSecure(true);
>> - setAttribute("protocol", k);
>> - }
>> + protected String protocol = null;
>> + public String getProtocol() { return protocol; }
>> + public void setProtocol(String protocol) { setSecure(true);
>> this.protocol = protocol; }
>> /**
>> * Maximum number of requests which can be performed over a
>> keepalive
>> Modified:
>> tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11Protocol.java
>> URL:
>> http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11Protocol.java?view=diff&rev=565464&r1=565463&r2=565464
>> ==============================================================================
>> ---
>> tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11Protocol.java
>> (original)
>> +++
>> tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11Protocol.java
>> Mon Aug 13 11:13:47 2007
>> @@ -103,20 +103,6 @@
>> /**
>> - * Set a property.
>> - */
>> - public void setProperty(String name, String value) {
>> - setAttribute(name, value);
>> - }
>> -
>> - /**
>> - * Get a property
>> - */
>> - public String getProperty(String name) {
>> - return (String)getAttribute(name);
>> - }
>> -
>> - /**
>> * Pass config info
>> */
>> public void setAttribute(String name, Object value) {
>>
>> Modified:
>> tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/IntrospectionUtils.java
>> URL:
>> http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/IntrospectionUtils.java?view=diff&rev=565464&r1=565463&r2=565464
>> ==============================================================================
>> ---
>> tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/IntrospectionUtils.java
>> (original)
>> +++
>> tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/IntrospectionUtils.java
>> Mon Aug 13 11:13:47 2007
>> @@ -258,7 +258,7 @@
>> * int or boolean we'll convert value to the right type before) -
>> that means
>> * you can have setDebug(1).
>> */
>> - public static void setProperty(Object o, String name, String value)
>> {
>> + public static boolean setProperty(Object o, String name, String
>> value) {
>> if (dbg > 1)
>> d("setProperty(" + o.getClass() + " " + name + "=" + value +
>> ")");
>> @@ -275,7 +275,7 @@
>> &&
>> "java.lang.String".equals(paramT[0].getName())) {
>> methods[i].invoke(o, new Object[] { value });
>> - return;
>> + return true;
>> }
>> }
>> @@ -328,7 +328,7 @@
>> if (ok) {
>> methods[i].invoke(o, params);
>> - return;
>> + return true;
>> }
>> }
>> @@ -344,6 +344,7 @@
>> params[0] = name;
>> params[1] = value;
>> setPropertyMethod.invoke(o, params);
>> + return true;
>> }
>> } catch (IllegalArgumentException ex2) {
>> @@ -367,6 +368,7 @@
>> if (dbg > 1)
>> ie.printStackTrace();
>> }
>> + return false;
>> }
>> public static Object getProperty(Object o, String name) {
>>
>> Modified:
>> tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/Digester.java
>> URL:
>> http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/Digester.java?view=diff&rev=565464&r1=565463&r2=565464
>> ==============================================================================
>> ---
>> tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/Digester.java
>> (original)
>> +++
>> tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/Digester.java
>> Mon Aug 13 11:13:47 2007
>> @@ -312,6 +312,19 @@
>> protected boolean validating = false;
>> + + /**
>> + * Warn on missing attributes and elements.
>> + */
>> + protected boolean rulesValidation = false;
>> +
>> + + /**
>> + * Fake attributes map (attributes are often used for object
>> creation).
>> + */
>> + protected Map<Class, List<String>> fakeAttributes = null;
>> +
>> +
>> /**
>> * The Log to which most logging calls will be made.
>> */
>> @@ -889,6 +902,72 @@
>> /**
>> + * Return the rules validation flag.
>> + */
>> + public boolean getRulesValidation() {
>> +
>> + return (this.rulesValidation);
>> +
>> + }
>> +
>> +
>> + /**
>> + * Set the rules validation flag. This must be called before
>> + * <code>parse()</code> is called the first time.
>> + *
>> + * @param rulesValidation The new rules validation flag.
>> + */
>> + public void setRulesValidation(boolean rulesValidation) {
>> +
>> + this.rulesValidation = rulesValidation;
>> +
>> + }
>> +
>> +
>> + /**
>> + * Return the fake attributes list.
>> + */
>> + public Map<Class, List<String>> getFakeAttributes() {
>> +
>> + return (this.fakeAttributes);
>> +
>> + }
>> +
>> +
>> + /**
>> + * Determine if an attribute is a fake attribute.
>> + */
>> + public boolean isFakeAttribute(Object object, String name) {
>> +
>> + if (fakeAttributes == null) {
>> + return false;
>> + }
>> + List<String> result = fakeAttributes.get(object.getClass());
>> + if (result == null) {
>> + result = fakeAttributes.get(Object.class);
>> + }
>> + if (result == null) {
>> + return false;
>> + } else {
>> + return result.contains(name);
>> + }
>> +
>> + }
>> +
>> +
>> + /**
>> + * Set the fake attributes.
>> + *
>> + * @param fakeAttributes The new fake attributes.
>> + */
>> + public void setFakeAttributes(Map<Class, List<String>>
>> fakeAttributes) {
>> +
>> + this.fakeAttributes = fakeAttributes;
>> +
>> + }
>> +
>> +
>> + /**
>> * Return the XMLReader to be used for parsing the input document.
>> *
>> * FIX ME: there is a bug in JAXP/XERCES that prevent the use of a
>> @@ -1037,6 +1116,9 @@
>> } else {
>> if (debug) {
>> log.debug(" No rules found matching '" + match + "'.");
>> + }
>> + if (rulesValidation) {
>> + log.warn(" No rules found matching '" + match + "'.");
>> }
>> }
>>
>> Modified:
>> tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/SetPropertiesRule.java
>> URL:
>> http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/SetPropertiesRule.java?view=diff&rev=565464&r1=565463&r2=565464
>> ==============================================================================
>> ---
>> tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/SetPropertiesRule.java
>> (original)
>> +++
>> tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/SetPropertiesRule.java
>> Mon Aug 13 11:13:47 2007
>> @@ -205,7 +205,13 @@
>> "} Setting property '" + name + "' to '" +
>> value + "'");
>> }
>> - IntrospectionUtils.setProperty(top, name, value);
>> + if (!digester.isFakeAttribute(top, name) +
>> && !IntrospectionUtils.setProperty(top, name, value) +
>> && digester.getRulesValidation()) {
>> + digester.log.warn("[SetPropertiesRule]{" +
>> digester.match +
>> + "} Setting property '" + name + "' to '" +
>> + value + "' did not find a matching property.");
>> + }
>> }
>> }
>>
>> Modified:
>> tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/SetPropertyRule.java
>> URL:
>> http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/SetPropertyRule.java?view=diff&rev=565464&r1=565463&r2=565464
>> ==============================================================================
>> ---
>> tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/SetPropertyRule.java
>> (original)
>> +++
>> tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/SetPropertyRule.java
>> Mon Aug 13 11:13:47 2007
>> @@ -125,8 +125,13 @@
>> }
>> // Set the property (with conversion as necessary)
>> - // FIXME: Exception if property doesn't exist ?
>> - IntrospectionUtils.setProperty(top, actualName, actualValue);
>> + if (!digester.isFakeAttribute(top, actualName) +
>> && !IntrospectionUtils.setProperty(top, actualName, actualValue) +
>> && digester.getRulesValidation()) {
>> + digester.log.warn("[SetPropertyRule]{" + digester.match +
>> + "} Setting property '" + name + "' to '" +
>> + value + "' did not find a matching property.");
>> + }
>> }
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: dev-help@tomcat.apache.org
>>
>>
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: svn commit: r565464 - in /tomcat/tc6.0.x/trunk/java/org/apache:
catalina/connector/ catalina/startup/ coyote/ajp/ coyote/http11/ tomcat/util/
tomcat/util/digester/
Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
this should have been done in trunk, way too big change for a minor dot
release upgrade
I suggest we move it there, revert in 6.0, and if it works well in
trunk, we backport
Filip
remm@apache.org wrote:
> Author: remm
> Date: Mon Aug 13 11:13:47 2007
> New Revision: 565464
>
> URL: http://svn.apache.org/viewvc?view=rev&rev=565464
> Log:
> - Experiment with reporting warnings for unmatched elements and attributes, based on Bill's ideas.
> - The NIO HTTP protocol handler does not seem very reporting friendly at the moment.
> - The change should be rather safe, if it causes problems that cannot be fixed easily I will revert it.
>
> Modified:
> tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Connector.java
> tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/Catalina.java
> tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/Embedded.java
> tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/SetAllPropertiesRule.java
> tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/SetContextPropertiesRule.java
> tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpAprProtocol.java
> tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpProtocol.java
> tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java
> tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11Protocol.java
> tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/IntrospectionUtils.java
> tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/Digester.java
> tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/SetPropertiesRule.java
> tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/SetPropertyRule.java
>
> Modified: tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Connector.java
> URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Connector.java?view=diff&rev=565464&r1=565463&r2=565464
> ==============================================================================
> --- tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Connector.java (original)
> +++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Connector.java Mon Aug 13 11:13:47 2007
> @@ -318,6 +318,20 @@
> if (replacements.get(name) != null) {
> repl = (String) replacements.get(name);
> }
> + if (!IntrospectionUtils.setProperty(protocolHandler, repl, value)) {
> + log.warn("Property " + name + " not found on the protocol handler.");
> + }
> + }
> +
> +
> + /**
> + * Set a configured property.
> + */
> + public void setPropertyInternal(String name, String value) {
> + String repl = name;
> + if (replacements.get(name) != null) {
> + repl = (String) replacements.get(name);
> + }
> IntrospectionUtils.setProperty(protocolHandler, repl, value);
> }
>
> @@ -388,7 +402,7 @@
> public void setAllowTrace(boolean allowTrace) {
>
> this.allowTrace = allowTrace;
> - setProperty("allowTrace", String.valueOf(allowTrace));
> + setPropertyInternal("allowTrace", String.valueOf(allowTrace));
>
> }
>
> @@ -466,7 +480,7 @@
> public void setEmptySessionPath(boolean emptySessionPath) {
>
> this.emptySessionPath = emptySessionPath;
> - setProperty("emptySessionPath", String.valueOf(emptySessionPath));
> + setPropertyInternal("emptySessionPath", String.valueOf(emptySessionPath));
>
> }
>
> @@ -489,7 +503,7 @@
> public void setEnableLookups(boolean enableLookups) {
>
> this.enableLookups = enableLookups;
> - setProperty("enableLookups", String.valueOf(enableLookups));
> + setPropertyInternal("enableLookups", String.valueOf(enableLookups));
>
> }
>
> @@ -559,7 +573,7 @@
> public void setMaxSavePostSize(int maxSavePostSize) {
>
> this.maxSavePostSize = maxSavePostSize;
> - setProperty("maxSavePostSize", String.valueOf(maxSavePostSize));
> + setPropertyInternal("maxSavePostSize", String.valueOf(maxSavePostSize));
> }
>
>
> @@ -581,7 +595,7 @@
> public void setPort(int port) {
>
> this.port = port;
> - setProperty("port", String.valueOf(port));
> + setPropertyInternal("port", String.valueOf(port));
>
> }
>
> @@ -745,7 +759,7 @@
>
> if(proxyName != null && proxyName.length() > 0) {
> this.proxyName = proxyName;
> - setProperty("proxyName", proxyName);
> + setPropertyInternal("proxyName", proxyName);
> } else {
> this.proxyName = null;
> removeProperty("proxyName");
> @@ -772,7 +786,7 @@
> public void setProxyPort(int proxyPort) {
>
> this.proxyPort = proxyPort;
> - setProperty("proxyPort", String.valueOf(proxyPort));
> + setPropertyInternal("proxyPort", String.valueOf(proxyPort));
>
> }
>
> @@ -797,7 +811,7 @@
> public void setRedirectPort(int redirectPort) {
>
> this.redirectPort = redirectPort;
> - setProperty("redirectPort", String.valueOf(redirectPort));
> + setPropertyInternal("redirectPort", String.valueOf(redirectPort));
>
> }
>
> @@ -846,7 +860,7 @@
> public void setSecure(boolean secure) {
>
> this.secure = secure;
> - setProperty("secure", Boolean.toString(secure));
> + setPropertyInternal("secure", Boolean.toString(secure));
> }
>
> /**
> @@ -867,7 +881,7 @@
> public void setURIEncoding(String URIEncoding) {
>
> this.URIEncoding = URIEncoding;
> - setProperty("uRIEncoding", URIEncoding);
> + setPropertyInternal("uRIEncoding", URIEncoding);
>
> }
>
> @@ -890,7 +904,7 @@
> public void setUseBodyEncodingForURI(boolean useBodyEncodingForURI) {
>
> this.useBodyEncodingForURI = useBodyEncodingForURI;
> - setProperty
> + setPropertyInternal
> ("useBodyEncodingForURI", String.valueOf(useBodyEncodingForURI));
>
> }
> @@ -918,7 +932,7 @@
> */
> public void setXpoweredBy(boolean xpoweredBy) {
> this.xpoweredBy = xpoweredBy;
> - setProperty("xpoweredBy", String.valueOf(xpoweredBy));
> + setPropertyInternal("xpoweredBy", String.valueOf(xpoweredBy));
> }
>
> /**
> @@ -929,7 +943,7 @@
> */
> public void setUseIPVHosts(boolean useIPVHosts) {
> this.useIPVHosts = useIPVHosts;
> - setProperty("useIPVHosts", String.valueOf(useIPVHosts));
> + setPropertyInternal("useIPVHosts", String.valueOf(useIPVHosts));
> }
>
> /**
>
> Modified: tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/Catalina.java
> URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/Catalina.java?view=diff&rev=565464&r1=565463&r2=565464
> ==============================================================================
> --- tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/Catalina.java (original)
> +++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/Catalina.java Mon Aug 13 11:13:47 2007
> @@ -21,10 +21,14 @@
>
> import java.io.File;
> import java.io.FileInputStream;
> -import java.io.InputStream;
> import java.io.IOException;
> +import java.io.InputStream;
> import java.io.OutputStream;
> import java.net.Socket;
> +import java.util.ArrayList;
> +import java.util.HashMap;
> +import java.util.List;
> +
> import org.apache.catalina.Container;
> import org.apache.catalina.Lifecycle;
> import org.apache.catalina.LifecycleException;
> @@ -260,6 +264,12 @@
> // Initialize the digester
> Digester digester = new Digester();
> digester.setValidating(false);
> + digester.setRulesValidation(true);
> + HashMap<Class, List<String>> fakeAttributes = new HashMap<Class, List<String>>();
> + ArrayList<String> attrs = new ArrayList<String>();
> + attrs.add("className");
> + fakeAttributes.put(Object.class, attrs);
> + digester.setFakeAttributes(fakeAttributes);
> digester.setClassLoader(StandardServer.class.getClassLoader());
>
> // Configure the actions we will be using
>
> Modified: tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/Embedded.java
> URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/Embedded.java?view=diff&rev=565464&r1=565463&r2=565464
> ==============================================================================
> --- tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/Embedded.java (original)
> +++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/Embedded.java Mon Aug 13 11:13:47 2007
> @@ -427,7 +427,7 @@
> connector = new Connector();
> connector.setScheme("https");
> connector.setSecure(true);
> - connector.setProperty("SSLEnabled","true");
> + connector.setPropertyInternal("SSLEnabled","true");
> // FIXME !!!! SET SSL PROPERTIES
> } else {
> connector = new Connector(protocol);
>
> Modified: tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/SetAllPropertiesRule.java
> URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/SetAllPropertiesRule.java?view=diff&rev=565464&r1=565463&r2=565464
> ==============================================================================
> --- tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/SetAllPropertiesRule.java (original)
> +++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/SetAllPropertiesRule.java Mon Aug 13 11:13:47 2007
> @@ -62,8 +62,15 @@
> name = attributes.getQName(i);
> }
> String value = attributes.getValue(i);
> - if ( !excludes.containsKey(name))
> - IntrospectionUtils.setProperty(digester.peek(), name, value);
> + if ( !excludes.containsKey(name)) {
> + if (!digester.isFakeAttribute(digester.peek(), name)
> + && !IntrospectionUtils.setProperty(digester.peek(), name, value)
> + && digester.getRulesValidation()) {
> + digester.getLogger().warn("[SetAllPropertiesRule]{" + digester.getMatch() +
> + "} Setting property '" + name + "' to '" +
> + value + "' did not find a matching property.");
> + }
> + }
> }
>
> }
>
> Modified: tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/SetContextPropertiesRule.java
> URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/SetContextPropertiesRule.java?view=diff&rev=565464&r1=565463&r2=565464
> ==============================================================================
> --- tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/SetContextPropertiesRule.java (original)
> +++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/SetContextPropertiesRule.java Mon Aug 13 11:13:47 2007
> @@ -60,7 +60,13 @@
> continue;
> }
> String value = attributes.getValue(i);
> - IntrospectionUtils.setProperty(digester.peek(), name, value);
> + if (!digester.isFakeAttribute(digester.peek(), name)
> + && !IntrospectionUtils.setProperty(digester.peek(), name, value)
> + && digester.getRulesValidation()) {
> + digester.getLogger().warn("[SetContextPropertiesRule]{" + digester.getMatch() +
> + "} Setting property '" + name + "' to '" +
> + value + "' did not find a matching property.");
> + }
> }
>
> }
>
> Modified: tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpAprProtocol.java
> URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpAprProtocol.java?view=diff&rev=565464&r1=565463&r2=565464
> ==============================================================================
> --- tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpAprProtocol.java (original)
> +++ tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpAprProtocol.java Mon Aug 13 11:13:47 2007
> @@ -137,22 +137,6 @@
>
>
> /**
> - * Set a property.
> - */
> - public void setProperty(String name, String value) {
> - setAttribute(name, value);
> - }
> -
> -
> - /**
> - * Get a property
> - */
> - public String getProperty(String name) {
> - return (String) getAttribute(name);
> - }
> -
> -
> - /**
> * The adapter, used to call the connector
> */
> public void setAdapter(Adapter adapter) {
>
> Modified: tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpProtocol.java
> URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpProtocol.java?view=diff&rev=565464&r1=565463&r2=565464
> ==============================================================================
> --- tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpProtocol.java (original)
> +++ tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpProtocol.java Mon Aug 13 11:13:47 2007
> @@ -137,22 +137,6 @@
>
>
> /**
> - * Set a property.
> - */
> - public void setProperty(String name, String value) {
> - setAttribute(name, value);
> - }
> -
> -
> - /**
> - * Get a property
> - */
> - public String getProperty(String name) {
> - return (String) getAttribute(name);
> - }
> -
> -
> - /**
> * The adapter, used to call the connector
> */
> public void setAdapter(Adapter adapter) {
>
> Modified: tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java
> URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java?view=diff&rev=565464&r1=565463&r2=565464
> ==============================================================================
> --- tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java (original)
> +++ tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java Mon Aug 13 11:13:47 2007
> @@ -90,20 +90,6 @@
> }
>
> /**
> - * Set a property.
> - */
> - public void setProperty(String name, String value) {
> - setAttribute(name, value);
> - }
> -
> - /**
> - * Get a property
> - */
> - public String getProperty(String name) {
> - return (String)getAttribute(name);
> - }
> -
> - /**
> * The adapter, used to call the connector.
> */
> protected Adapter adapter;
> @@ -325,14 +311,9 @@
> public void setRestrictedUserAgents(String valueS) { restrictedUserAgents = valueS; }
>
>
> - public String getProtocol() {
> - return getProperty("protocol");
> - }
> -
> - public void setProtocol( String k ) {
> - setSecure(true);
> - setAttribute("protocol", k);
> - }
> + protected String protocol = null;
> + public String getProtocol() { return protocol; }
> + public void setProtocol(String protocol) { setSecure(true); this.protocol = protocol; }
>
> /**
> * Maximum number of requests which can be performed over a keepalive
>
> Modified: tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11Protocol.java
> URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11Protocol.java?view=diff&rev=565464&r1=565463&r2=565464
> ==============================================================================
> --- tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11Protocol.java (original)
> +++ tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11Protocol.java Mon Aug 13 11:13:47 2007
> @@ -103,20 +103,6 @@
>
>
> /**
> - * Set a property.
> - */
> - public void setProperty(String name, String value) {
> - setAttribute(name, value);
> - }
> -
> - /**
> - * Get a property
> - */
> - public String getProperty(String name) {
> - return (String)getAttribute(name);
> - }
> -
> - /**
> * Pass config info
> */
> public void setAttribute(String name, Object value) {
>
> Modified: tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/IntrospectionUtils.java
> URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/IntrospectionUtils.java?view=diff&rev=565464&r1=565463&r2=565464
> ==============================================================================
> --- tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/IntrospectionUtils.java (original)
> +++ tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/IntrospectionUtils.java Mon Aug 13 11:13:47 2007
> @@ -258,7 +258,7 @@
> * int or boolean we'll convert value to the right type before) - that means
> * you can have setDebug(1).
> */
> - public static void setProperty(Object o, String name, String value) {
> + public static boolean setProperty(Object o, String name, String value) {
> if (dbg > 1)
> d("setProperty(" + o.getClass() + " " + name + "=" + value + ")");
>
> @@ -275,7 +275,7 @@
> && "java.lang.String".equals(paramT[0].getName())) {
>
> methods[i].invoke(o, new Object[] { value });
> - return;
> + return true;
> }
> }
>
> @@ -328,7 +328,7 @@
>
> if (ok) {
> methods[i].invoke(o, params);
> - return;
> + return true;
> }
> }
>
> @@ -344,6 +344,7 @@
> params[0] = name;
> params[1] = value;
> setPropertyMethod.invoke(o, params);
> + return true;
> }
>
> } catch (IllegalArgumentException ex2) {
> @@ -367,6 +368,7 @@
> if (dbg > 1)
> ie.printStackTrace();
> }
> + return false;
> }
>
> public static Object getProperty(Object o, String name) {
>
> Modified: tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/Digester.java
> URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/Digester.java?view=diff&rev=565464&r1=565463&r2=565464
> ==============================================================================
> --- tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/Digester.java (original)
> +++ tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/Digester.java Mon Aug 13 11:13:47 2007
> @@ -312,6 +312,19 @@
> protected boolean validating = false;
>
>
> +
> + /**
> + * Warn on missing attributes and elements.
> + */
> + protected boolean rulesValidation = false;
> +
> +
> + /**
> + * Fake attributes map (attributes are often used for object creation).
> + */
> + protected Map<Class, List<String>> fakeAttributes = null;
> +
> +
> /**
> * The Log to which most logging calls will be made.
> */
> @@ -889,6 +902,72 @@
>
>
> /**
> + * Return the rules validation flag.
> + */
> + public boolean getRulesValidation() {
> +
> + return (this.rulesValidation);
> +
> + }
> +
> +
> + /**
> + * Set the rules validation flag. This must be called before
> + * <code>parse()</code> is called the first time.
> + *
> + * @param rulesValidation The new rules validation flag.
> + */
> + public void setRulesValidation(boolean rulesValidation) {
> +
> + this.rulesValidation = rulesValidation;
> +
> + }
> +
> +
> + /**
> + * Return the fake attributes list.
> + */
> + public Map<Class, List<String>> getFakeAttributes() {
> +
> + return (this.fakeAttributes);
> +
> + }
> +
> +
> + /**
> + * Determine if an attribute is a fake attribute.
> + */
> + public boolean isFakeAttribute(Object object, String name) {
> +
> + if (fakeAttributes == null) {
> + return false;
> + }
> + List<String> result = fakeAttributes.get(object.getClass());
> + if (result == null) {
> + result = fakeAttributes.get(Object.class);
> + }
> + if (result == null) {
> + return false;
> + } else {
> + return result.contains(name);
> + }
> +
> + }
> +
> +
> + /**
> + * Set the fake attributes.
> + *
> + * @param fakeAttributes The new fake attributes.
> + */
> + public void setFakeAttributes(Map<Class, List<String>> fakeAttributes) {
> +
> + this.fakeAttributes = fakeAttributes;
> +
> + }
> +
> +
> + /**
> * Return the XMLReader to be used for parsing the input document.
> *
> * FIX ME: there is a bug in JAXP/XERCES that prevent the use of a
> @@ -1037,6 +1116,9 @@
> } else {
> if (debug) {
> log.debug(" No rules found matching '" + match + "'.");
> + }
> + if (rulesValidation) {
> + log.warn(" No rules found matching '" + match + "'.");
> }
> }
>
>
> Modified: tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/SetPropertiesRule.java
> URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/SetPropertiesRule.java?view=diff&rev=565464&r1=565463&r2=565464
> ==============================================================================
> --- tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/SetPropertiesRule.java (original)
> +++ tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/SetPropertiesRule.java Mon Aug 13 11:13:47 2007
> @@ -205,7 +205,13 @@
> "} Setting property '" + name + "' to '" +
> value + "'");
> }
> - IntrospectionUtils.setProperty(top, name, value);
> + if (!digester.isFakeAttribute(top, name)
> + && !IntrospectionUtils.setProperty(top, name, value)
> + && digester.getRulesValidation()) {
> + digester.log.warn("[SetPropertiesRule]{" + digester.match +
> + "} Setting property '" + name + "' to '" +
> + value + "' did not find a matching property.");
> + }
> }
>
> }
>
> Modified: tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/SetPropertyRule.java
> URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/SetPropertyRule.java?view=diff&rev=565464&r1=565463&r2=565464
> ==============================================================================
> --- tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/SetPropertyRule.java (original)
> +++ tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/digester/SetPropertyRule.java Mon Aug 13 11:13:47 2007
> @@ -125,8 +125,13 @@
> }
>
> // Set the property (with conversion as necessary)
> - // FIXME: Exception if property doesn't exist ?
> - IntrospectionUtils.setProperty(top, actualName, actualValue);
> + if (!digester.isFakeAttribute(top, actualName)
> + && !IntrospectionUtils.setProperty(top, actualName, actualValue)
> + && digester.getRulesValidation()) {
> + digester.log.warn("[SetPropertyRule]{" + digester.match +
> + "} Setting property '" + name + "' to '" +
> + value + "' did not find a matching property.");
> + }
>
> }
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Remy Maucherat <re...@apache.org>.
Paul McMahan wrote:
> On Aug 20, 2007, at 3:43 AM, Henri Gomez wrote:
>> +0, could we see the pros and cons ?
>
> One "con" of moving trunk to sandbox, at least from an ASF-wide
> perspective, is that the annotation processing changes that Geronimo 2.0
> relies on are currently only available in trunk. The development of
> this feature came about as the product of some excellent collaboration
> and cooperation between the Tomcat and Geronimo projects [1]. I would
> hate to slow down the progress we have made in that regard. Please take
> this into consideration as you decide upon the fate of trunk.
On that specific topic, I was thinking about maintaining a patchset.
Regardless of what happens to the trunk branch, I don't think there will
be a release based on this code anytime soon, and given the next
specification is not too far away, I don't know if this new interface
will be in a real release.
We'll see what happens.
Rémy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Paul McMahan <pa...@gmail.com>.
On Aug 20, 2007, at 3:43 AM, Henri Gomez wrote:
> +0, could we see the pros and cons ?
One "con" of moving trunk to sandbox, at least from an ASF-wide
perspective, is that the annotation processing changes that Geronimo
2.0 relies on are currently only available in trunk. The development
of this feature came about as the product of some excellent
collaboration and cooperation between the Tomcat and Geronimo
projects [1]. I would hate to slow down the progress we have made
in that regard. Please take this into consideration as you decide
upon the fate of trunk.
Best wishes,
Paul
[1] http://www.nabble.com/Annotation-processing---Geronimo-injection-
tf3459188.html
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Henri Gomez <he...@gmail.com>.
+0, could we see the pros and cons ?
2007/8/20, Bill Barker <wb...@wilshire.com>:
> I'm so tired of this thread, so let's settle it once and for all. I'm
> backing Remy's suggestion to send the current trunk to the sandbox:
> [ ] +1 Let's end the revolution
> [ ] +0 What revolution?
> [ ] -1 Viva the revolultion
>
> My vote is +1.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
Remy Maucherat wrote:
> William A. Rowe, Jr. wrote:
>> Remy Maucherat wrote:
>>> Development in "trunk" is not done properly at the moment.
>>
>> Back up 1 step; define "proper", with pointers to the
>> http://tomcat.apache.org/dev/ documents, if they exist.
>>
>> Otherwise you are doing a good job of showing the entire vote is
>> really nothing but ad hominem attacks between a few developers,
>> and has much less to do with code than personalities.
>>
>>> There's a large thread on these issues. At the time, the API design was
>>> downright bad. It did improve to some extent (without further debate),
>>> but this was all done in trunk without any collaboration.
>>
>> You just said you improved it; ergo you collaborated. You don't need
>> dev@ mails to discuss commits until someone disagrees, just as you did.
>
> API changing code was committed without prior discussion, and then
> further modifications were made, all in an official branch (I then
> started working on a sandbox branch myself, which was far more
> appropriate).
and your veto was noted, though it explicitly said "leave it in trunk",
whenever, you decide to change that, let me know. but so far you haven't.
>
>> Your veto in that example said "leave it on trunk". If you now disagree
>> that it can be improved to satisfy your original veto, restate your
>> technical veto and just ask for the revisions to be reverted.
>
> Everything was explained in the thread. I found the API to be very
> perfectible and too complex. Iterative simplifications could be made
> without affecting functionality. Some underlying implementation was
> off too, if I remember correctly.
yet, 100% backwards compatible.
>
>> Of course all code is written without collaboration, unless you are all
>> trying to reach a consensus character-by-character on how the source
>> code is created. How it's integrated, or if it is at all, is a matter
>> for the project to determine together.
>
> I expect some talking when APIs are concerned, or it should be done in
> the sandbox :| Hence, my requests and the vote to move trunk to the
> sandbox, which I think are legitimate.
trunk != comet
you need to get yourself straightened out, just cause you don't like
comet, doesn't justify blowing away trunk. we can simply revert comet if
that is your only point of argument.
>
>> I've actually glanced through the various earlier messages and really
>> see only two points of view expressed on the list about any of the
>> actual
>> code. Yours, and Filips. Which leads me to read the whole debate as
>> a turf war over Tomcat. I can't believe this project would already be
>> at the melt-down point again, but here we are. It's not your personal
>> playground, nor is it Filip's personal playground.
>
> (excuse me, but when was the previous meltdown ?)
he :) we've had a few I believe
>
>> Feel free to contradict my opinion with a pointer or two at some
>> technical
>> input from other project members, of course. But I become concerned
>> when
>> only two people in a project even grok the technical implications of
>> what
>> is in their repository.
>
> Yes, only two persons participate in the debate. I think we fully
> agree on the problem, since Filip proposed to vote on proposals but I
> believed it would be pointless since only two persons seemed to hold
> informed votes (or care, which is a bit the same) about it.
yes, never the less, a vote would have been definitive, and people would
have been inclined to vote, just for the sake of ending the discussion.
If you listened to Mladen, he would have voted for you, regardless of
what the API was, since you were the originator to the pre-"event" API.
remember, it would be very hard to justify an API as technically bad, it
is a personal preference.
>
>> Some backstory,
>>
>> As a frame of reference, the same thing happened at APR/HTTPD over the
>> entire concept of buckets and brigades. Ryan and Greg were at odds over
>> the implications. As svn was properly managed with
>> commits/vetos/reverts,
>> the projects were at an impasse with no movement to the next generation
>> server. So, all the committers were invited to a f2f powwow for Greg
>> and
>> Ryan to duke it out and thoroughly explain their plan and justification.
>>
>> We treated it as a non-vetoable situation. Neither design was
>> technically
>> invalid, it was a preference. So they had their shootout, and (gasp)
>> even
>> came to agreement on the appropriate solution (to the nods of dozens of
>> attendees). More importantly, the other committers who were 'inflicted'
>> with the design had a chance to thoroughly understand what it was and
>> why
>> it was done that way.
>>
>> Back to Tomcat, it sounds like this is an argument of preference over
>> technical correctness. Perhaps November in Atlanta or Hong Kong would
>> be a good time for you to sit down, fill in all the other interested
>> committers in the exact merits of your preferences, and reach consensus?
>>
>> And maybe feathercast the debate highlights and decision :)
<joke>more like price-is-right contest</joke>
>
> Thanks for the info, we're not there yet I think.
we could be, if we just focused on getting the real issues resolved, not
getting rid of entire branches, like trunk.
Filip
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Remy Maucherat <re...@apache.org>.
William A. Rowe, Jr. wrote:
> Remy Maucherat wrote:
>> Development in "trunk" is not done properly at the moment.
>
> Back up 1 step; define "proper", with pointers to the
> http://tomcat.apache.org/dev/ documents, if they exist.
>
> Otherwise you are doing a good job of showing the entire vote is
> really nothing but ad hominem attacks between a few developers,
> and has much less to do with code than personalities.
>
>> There's a large thread on these issues. At the time, the API design was
>> downright bad. It did improve to some extent (without further debate),
>> but this was all done in trunk without any collaboration.
>
> You just said you improved it; ergo you collaborated. You don't need
> dev@ mails to discuss commits until someone disagrees, just as you did.
API changing code was committed without prior discussion, and then
further modifications were made, all in an official branch (I then
started working on a sandbox branch myself, which was far more appropriate).
> Your veto in that example said "leave it on trunk". If you now disagree
> that it can be improved to satisfy your original veto, restate your
> technical veto and just ask for the revisions to be reverted.
Everything was explained in the thread. I found the API to be very
perfectible and too complex. Iterative simplifications could be made
without affecting functionality. Some underlying implementation was off
too, if I remember correctly.
> Of course all code is written without collaboration, unless you are all
> trying to reach a consensus character-by-character on how the source
> code is created. How it's integrated, or if it is at all, is a matter
> for the project to determine together.
I expect some talking when APIs are concerned, or it should be done in
the sandbox :| Hence, my requests and the vote to move trunk to the
sandbox, which I think are legitimate.
> I've actually glanced through the various earlier messages and really
> see only two points of view expressed on the list about any of the actual
> code. Yours, and Filips. Which leads me to read the whole debate as
> a turf war over Tomcat. I can't believe this project would already be
> at the melt-down point again, but here we are. It's not your personal
> playground, nor is it Filip's personal playground.
(excuse me, but when was the previous meltdown ?)
> Feel free to contradict my opinion with a pointer or two at some technical
> input from other project members, of course. But I become concerned when
> only two people in a project even grok the technical implications of what
> is in their repository.
Yes, only two persons participate in the debate. I think we fully agree
on the problem, since Filip proposed to vote on proposals but I believed
it would be pointless since only two persons seemed to hold informed
votes (or care, which is a bit the same) about it.
> Some backstory,
>
> As a frame of reference, the same thing happened at APR/HTTPD over the
> entire concept of buckets and brigades. Ryan and Greg were at odds over
> the implications. As svn was properly managed with commits/vetos/reverts,
> the projects were at an impasse with no movement to the next generation
> server. So, all the committers were invited to a f2f powwow for Greg and
> Ryan to duke it out and thoroughly explain their plan and justification.
>
> We treated it as a non-vetoable situation. Neither design was technically
> invalid, it was a preference. So they had their shootout, and (gasp) even
> came to agreement on the appropriate solution (to the nods of dozens of
> attendees). More importantly, the other committers who were 'inflicted'
> with the design had a chance to thoroughly understand what it was and why
> it was done that way.
>
> Back to Tomcat, it sounds like this is an argument of preference over
> technical correctness. Perhaps November in Atlanta or Hong Kong would
> be a good time for you to sit down, fill in all the other interested
> committers in the exact merits of your preferences, and reach consensus?
>
> And maybe feathercast the debate highlights and decision :)
Thanks for the info, we're not there yet I think.
Rémy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
Remy Maucherat wrote:
> Filip Hanik - Dev Lists wrote:
>> Remy Maucherat wrote:
>>> Jim Jagielski wrote:
>>>> IMO, code talks, bullshit walks. And I've been on both sides
>>>> of the argument many times in many places.
>>>
>>> Yeah right. So to summarize, we have 3 committers who are happy
>>> campers (2 of them which don't contribute much, as far as I know),
>>> and the rest of the committers are either do not care or are
>>> unhappy. Most also want a change in the development process, and as
>>> long as there's agreement on that and it respects the ASF
>>> principles, we should be able to do that.
>>>
>>> It's fairly obvious that vetoes which "pack a lot of punch" haven't
>>> been taken very seriously. The first reaction is to start arguing
>>> that "the veto is not valid", and requalify technical reasons given
>>> as "non technical".
>> you mean like the veto for the 5.5 B2C converter fix, where you and
>> the person vetoing hadn't even looked at the patch before writing
>> "technical reasons"
>>
>> you're kidding yourself at this point
>
> Of course :) He said he would veto if NIO APIs usage was introduced in
> Tomcat 5.5, and that seemed reasonable to me. If there is no NIO
> usage, there will be no veto, so again what is it you do not understand ?
both of you enforced the veto without ever looking at the real patch, so
there was a veto thrown without justification. It should have never even
been out there, and then dared to accuse me of not reading the posts,
when in fact you hadn't read it yourself. I found the fact that you are
trying to turn around that accusation here appalling. just go back and
read your previous post on the matter... oh wait, I was the one not
reading the post ;) must be my fault again.
>
> I see you also don't care about my reservations on the virtual CL
> hack. Any comment/discussion/collaboration on that issue ?
feel free to start another thread on that topic,more appropriate than
here, but i will comment
you dislike it cause it is outside of the servlet spec, but the spec
writers don't manage hundreds and even thousands of webapp/tomcat
instances daily that have to deal with central repositories of approved
licensed libraries. The virtual webapp loader is an optional component,
and very useful to those large companies.
The idea came from direct feedback from a few companies that needed
those features.
For folks, like yourself, that dislike those features, it is an optional
component that needs to be configured, they will never even have to use
it. Its not in the default configuration.
As for portability, that wasn't the goal with the virtual webapp loader
when it was added to the repository in the first place, I just made it
more usable. I don't see any harm done with it, except that it now
works, whereas before it really didn't.
> The technical veto only thing does not make sense to me overall. If
> "technical preference" is not allowed, then I can simply overwrite
> your Comet API in your playground (trunk) with my interpretation of
> it, and you cannot do anything about it. I think ASF project
> management is broken :|
not broken at all, you're the one who refused a vote on the Comet API,
then you try to overthrow it by throwing away trunk. had you just agreed
to resolve the Comet issue instead of starting the "trunk" debate, it
would have probably been resolved by now, and now of this would have
been necessary. But it is what it is, do whatever you want with it, you
seem so passionate about it that there is no limit to who you attack
about it.
I'm out of the trunk debate, what ever gets decided, I'll limp along.
Filip
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Remy Maucherat <re...@apache.org>.
Filip Hanik - Dev Lists wrote:
> Remy Maucherat wrote:
>> Jim Jagielski wrote:
>>> IMO, code talks, bullshit walks. And I've been on both sides
>>> of the argument many times in many places.
>>
>> Yeah right. So to summarize, we have 3 committers who are happy
>> campers (2 of them which don't contribute much, as far as I know), and
>> the rest of the committers are either do not care or are unhappy. Most
>> also want a change in the development process, and as long as there's
>> agreement on that and it respects the ASF principles, we should be
>> able to do that.
>>
>> It's fairly obvious that vetoes which "pack a lot of punch" haven't
>> been taken very seriously. The first reaction is to start arguing that
>> "the veto is not valid", and requalify technical reasons given as "non
>> technical".
> you mean like the veto for the 5.5 B2C converter fix, where you and the
> person vetoing hadn't even looked at the patch before writing "technical
> reasons"
>
> you're kidding yourself at this point
Of course :) He said he would veto if NIO APIs usage was introduced in
Tomcat 5.5, and that seemed reasonable to me. If there is no NIO usage,
there will be no veto, so again what is it you do not understand ?
I see you also don't care about my reservations on the virtual CL hack.
Any comment/discussion/collaboration on that issue ?
The technical veto only thing does not make sense to me overall. If
"technical preference" is not allowed, then I can simply overwrite your
Comet API in your playground (trunk) with my interpretation of it, and
you cannot do anything about it. I think ASF project management is broken :|
Rémy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
Remy Maucherat wrote:
> Jim Jagielski wrote:
>> IMO, code talks, bullshit walks. And I've been on both sides
>> of the argument many times in many places.
>
> Yeah right. So to summarize, we have 3 committers who are happy
> campers (2 of them which don't contribute much, as far as I know), and
> the rest of the committers are either do not care or are unhappy. Most
> also want a change in the development process, and as long as there's
> agreement on that and it respects the ASF principles, we should be
> able to do that.
>
> It's fairly obvious that vetoes which "pack a lot of punch" haven't
> been taken very seriously. The first reaction is to start arguing that
> "the veto is not valid", and requalify technical reasons given as "non
> technical".
you mean like the veto for the 5.5 B2C converter fix, where you and the
person vetoing hadn't even looked at the patch before writing "technical
reasons"
you're kidding yourself at this point
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Jim Jagielski <ji...@jaguNET.com>.
On Aug 22, 2007, at 11:43 AM, David Jencks wrote:
>
> While it's more fun to watch from the sidelines, I'm afraid I'll
> have to get involved here to point out that you are wrong about
> this. trunk contains an entirely new and incompatible with 6.0.x
> annotation processing framework which is in use in the Geronimo
> integration. Remy suggested and I agreed that it would not be
> appropriate for an api change of this magnitude to go in a 6.0.x
> revision. While Remy was certainly the committer most involved in
> applying these changes, IIRC there was some support from at least
> one other committer. In Geronimo we are anxiously awaiting an
> official tomcat release with these agreed upon api changes, so we
> tend to view the proposal eliminate trunk with some concern.
>
All this really depends and hinges on what the current development
community sees as the "usage" of trunk...
For example, with httpd, trunk also contains incompatible changes
from the current latest shipping release (2.2.x). But that's
OK because trunk is actually what will be used as the basis
for 2.4, where there are no API guarantees. BUT, and this is
an important but, changes to the 2.2 branch are done
via backports *from* trunk. 2.2 doesn't have it's own
trunk, so to speak, but uses main trunk.
This is all well and good if that process is understood
and used by everyone... Seems to me, this is a main issue
with this whole debate. What "is" trunk...
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by David Jencks <da...@yahoo.com>.
On Aug 22, 2007, at 8:06 AM, funkman@joedog.org wrote:
>> Remy Maucherat wrote:
>> Yeah right. So to summarize, we have 3 committers who are happy
>> campers
>> (2 of them which don't contribute much, as far as I know), and the
>> rest
>> of the committers are either do not care or are unhappy. Most also
>> want
>> a change in the development process, and as long as there's
>> agreement on
>> that and it respects the ASF principles, we should be able to do
>> that.
>>
>
>
> Bah. In neither angry nor happy.
>
> My impression was trunk was going to be wacky new stuff which broke
> existing api's and configurations with 6.0. Much like 5.0 --> 5.5.
>
> In reality that didn't happen - we just got some comet changes.
> (I'm not
> saying this is good or bad - it's just and observation)
While it's more fun to watch from the sidelines, I'm afraid I'll have
to get involved here to point out that you are wrong about this.
trunk contains an entirely new and incompatible with 6.0.x annotation
processing framework which is in use in the Geronimo integration.
Remy suggested and I agreed that it would not be appropriate for an
api change of this magnitude to go in a 6.0.x revision. While Remy
was certainly the committer most involved in applying these changes,
IIRC there was some support from at least one other committer. In
Geronimo we are anxiously awaiting an official tomcat release with
these agreed upon api changes, so we tend to view the proposal
eliminate trunk with some concern.
thanks
david jencks
>
> Now we are in a technical debate between comet implementation
> between Remy
> and Filips "designs". This has seemed to migrate into a personal
> attack in
> a subtle manner.
>
> Such is life when coding. Disagreements occur, feeling are hurt and
> email
> is the worst method of communicating an emotional topic since words
> are
> amplified. (Sometime on purpose, other times by accident).
>
> My hope is this too shall pass and all is good again.
>
> Personally - I am not very clueful on comet other than the basics. I'd
> love to get the clue - but I can't find and work related projects to
> justify the time. That leaves me out in the cold due to this
> conversation.
> I feel any vote by me would be a bad vote because of my ignorance
> on the
> topic. It seems others are in the same situation.
>
> All that being said - I'd love to see Remy and Filip agree on comet
> and
> remove trunk. It would be a shame to see either leave due to these
> disputes.
>
>
> -Tim
> (Away for training in Boston this week (Kendall Square))
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by fu...@joedog.org.
> Remy Maucherat wrote:
> Yeah right. So to summarize, we have 3 committers who are happy campers
> (2 of them which don't contribute much, as far as I know), and the rest
> of the committers are either do not care or are unhappy. Most also want
> a change in the development process, and as long as there's agreement on
> that and it respects the ASF principles, we should be able to do that.
>
Bah. In neither angry nor happy.
My impression was trunk was going to be wacky new stuff which broke
existing api's and configurations with 6.0. Much like 5.0 --> 5.5.
In reality that didn't happen - we just got some comet changes. (I'm not
saying this is good or bad - it's just and observation)
Now we are in a technical debate between comet implementation between Remy
and Filips "designs". This has seemed to migrate into a personal attack in
a subtle manner.
Such is life when coding. Disagreements occur, feeling are hurt and email
is the worst method of communicating an emotional topic since words are
amplified. (Sometime on purpose, other times by accident).
My hope is this too shall pass and all is good again.
Personally - I am not very clueful on comet other than the basics. I'd
love to get the clue - but I can't find and work related projects to
justify the time. That leaves me out in the cold due to this conversation.
I feel any vote by me would be a bad vote because of my ignorance on the
topic. It seems others are in the same situation.
All that being said - I'd love to see Remy and Filip agree on comet and
remove trunk. It would be a shame to see either leave due to these
disputes.
-Tim
(Away for training in Boston this week (Kendall Square))
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Jim Jagielski <ji...@jaguNET.com>.
On Aug 22, 2007, at 10:47 AM, Remy Maucherat wrote:
> Jim Jagielski wrote:
>> IMO, code talks, bullshit walks. And I've been on both sides
>> of the argument many times in many places.
>
> Yeah right.
And what do you mean by that? What is "Yeah right" about
me claiming to at times being on the 'code talking'
side and the 'bullshit walking' side? Or is this just
a sample of your personal charm?
> So to summarize, we have 3 committers who are happy campers (2 of
> them which don't contribute much, as far as I know), and the rest
> of the committers are either do not care or are unhappy. Most also
> want a change in the development process, and as long as there's
> agreement on that and it respects the ASF principles, we should be
> able to do that.
>
"happy campers"?? I have no idea what you mean.
> It's fairly obvious that vetoes which "pack a lot of punch" haven't
> been taken very seriously. The first reaction is to start arguing
> that "the veto is not valid", and requalify technical reasons given
> as "non technical".
If others agree that your technical reasons are valid, then they
are. If technical reasons are "I would have done it this way instead"
then the issue falls into personal preference and not really
technical, *objective* reasons. Unless, of course, one can
show qualifiable reasons why the other way is more efficient,
more secure, more maintainable, etc... you know, technical
reasons.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Remy Maucherat <re...@apache.org>.
Jim Jagielski wrote:
> IMO, code talks, bullshit walks. And I've been on both sides
> of the argument many times in many places.
Yeah right. So to summarize, we have 3 committers who are happy campers
(2 of them which don't contribute much, as far as I know), and the rest
of the committers are either do not care or are unhappy. Most also want
a change in the development process, and as long as there's agreement on
that and it respects the ASF principles, we should be able to do that.
It's fairly obvious that vetoes which "pack a lot of punch" haven't been
taken very seriously. The first reaction is to start arguing that "the
veto is not valid", and requalify technical reasons given as "non
technical".
Rémy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Jim Jagielski <ji...@jaguNET.com>.
On Aug 21, 2007, at 8:54 PM, Yoav Shapira wrote:
> Hey,
>
> On 8/21/07, William A. Rowe, Jr. <wr...@rowe-clan.net> wrote:
>> Beyond withdrawing the silly vote, asking for the code you veto to be
>> removed, and moving forward, don't you think you should hold a
>> vote to
>> make trunk R-T-C first?
>
> The latter is definitely a vote. (And I'd be -1 on it).
>
>> input from other project members, of course. But I become
>> concerned when
>> only two people in a project even grok the technical implications
>> of what
>> is in their repository.
>
> I think that's stretching it a bit far. I, for one, grok the
> technical differences between Remy and Filip's approaches to Comet,
> but I just don't care about them. Either approach looks fine enough
> to me, and so as long as other work progresses I believe the Comet
> stuff will eventually be sorted out. Maybe now is that time.
>
> But please don't equate one pissing match with the entire rest of the
> committers not understanding what's going on. I'm guessing at least
> one or two other people share my stance above.
>
IMO, code talks, bullshit walks. And I've been on both sides
of the argument many times in many places.
As Bill noted, there are lots of ways of skinning a cat. If
person 1 comes up with a way, and implements it, then sure
person 2 has the right to say that the implementation sucks
and their way is better, but if it never gets beyond the
talk phase, well... I can't see scrapping work 1 when work 2
isn't even in a debate mode.
Vetoes are serious shit. They pack a lot of punch. They
are not things to throw out willy nilly with no real
technical justification other than some hand waving. Nor
are they items to ignore simply because you don't like
the person raising the veto.
Re: naming of trunk/branches/sandbox/whatever. Trunk is designed
to be the "best guess" of the *community's* idea on what the
codebase will be looking like. It works best when it is free
and easy with a c-t-r policy. Consider it, for lack of
a better term, the community sandbox. Then, bits and pieces
of it (patches and SVN revisions) get folded back into those
areas that represent what will be released (usually branches).
This is usually done via a r-t-c policy since you are now
touching code that is directly in the release path.
And personally, I think it's a damn shame that we don't
see "I owe you a beer" more on the TC lists... Pissing
matches are ok if, afterwards, you all meet, get together,
have a few drinks and *get* pissed.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Yoav Shapira <yo...@apache.org>.
Hey,
On 8/21/07, William A. Rowe, Jr. <wr...@rowe-clan.net> wrote:
> Beyond withdrawing the silly vote, asking for the code you veto to be
> removed, and moving forward, don't you think you should hold a vote to
> make trunk R-T-C first?
The latter is definitely a vote. (And I'd be -1 on it).
> input from other project members, of course. But I become concerned when
> only two people in a project even grok the technical implications of what
> is in their repository.
I think that's stretching it a bit far. I, for one, grok the
technical differences between Remy and Filip's approaches to Comet,
but I just don't care about them. Either approach looks fine enough
to me, and so as long as other work progresses I believe the Comet
stuff will eventually be sorted out. Maybe now is that time.
But please don't equate one pissing match with the entire rest of the
committers not understanding what's going on. I'm guessing at least
one or two other people share my stance above.
Yoav
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
Remy Maucherat wrote:
>
> Development in "trunk" is not done properly at the moment.
Back up 1 step; define "proper", with pointers to the
http://tomcat.apache.org/dev/ documents, if they exist.
Otherwise you are doing a good job of showing the entire vote is
really nothing but ad hominem attacks between a few developers,
and has much less to do with code than personalities.
> There's a large thread on these issues. At the time, the API design was
> downright bad. It did improve to some extent (without further debate),
> but this was all done in trunk without any collaboration.
You just said you improved it; ergo you collaborated. You don't need
dev@ mails to discuss commits until someone disagrees, just as you did.
Your veto in that example said "leave it on trunk". If you now disagree
that it can be improved to satisfy your original veto, restate your
technical veto and just ask for the revisions to be reverted.
It's project history, even if it was a failed attempt at concensus.
So it belongs on svn trunk, if only in the attic.
Of course all code is written without collaboration, unless you are all
trying to reach a consensus character-by-character on how the source
code is created. How it's integrated, or if it is at all, is a matter
for the project to determine together.
> I wish to move out the current trunk and use stricter commit policies to
> avoid these sort of issues, and force agreement before commit.
>
> Rémy
So you are saying trunk was used according to the project policy and
you would now like to change the commit policy for trunk? That's fine,
but comments that people are abusing trunk doesn't jive with what you
just said that you want to change policy.
Beyond withdrawing the silly vote, asking for the code you veto to be
removed, and moving forward, don't you think you should hold a vote to
make trunk R-T-C first?
I've actually glanced through the various earlier messages and really
see only two points of view expressed on the list about any of the actual
code. Yours, and Filips. Which leads me to read the whole debate as
a turf war over Tomcat. I can't believe this project would already be
at the melt-down point again, but here we are. It's not your personal
playground, nor is it Filip's personal playground.
Feel free to contradict my opinion with a pointer or two at some technical
input from other project members, of course. But I become concerned when
only two people in a project even grok the technical implications of what
is in their repository.
Some backstory,
As a frame of reference, the same thing happened at APR/HTTPD over the
entire concept of buckets and brigades. Ryan and Greg were at odds over
the implications. As svn was properly managed with commits/vetos/reverts,
the projects were at an impasse with no movement to the next generation
server. So, all the committers were invited to a f2f powwow for Greg and
Ryan to duke it out and thoroughly explain their plan and justification.
We treated it as a non-vetoable situation. Neither design was technically
invalid, it was a preference. So they had their shootout, and (gasp) even
came to agreement on the appropriate solution (to the nods of dozens of
attendees). More importantly, the other committers who were 'inflicted'
with the design had a chance to thoroughly understand what it was and why
it was done that way.
Back to Tomcat, it sounds like this is an argument of preference over
technical correctness. Perhaps November in Atlanta or Hong Kong would
be a good time for you to sit down, fill in all the other interested
committers in the exact merits of your preferences, and reach consensus?
And maybe feathercast the debate highlights and decision :)
Bill
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Remy Maucherat <re...@apache.org>.
Bill Barker wrote:
> I'm so tired of this thread, so let's settle it once and for all. I'm
> backing Remy's suggestion to send the current trunk to the sandbox:
> [X] +1 Let's end the revolution
> [ ] +0 What revolution?
> [ ] -1 Viva the revolultion
Development in "trunk" is not done properly at the moment.
Rémy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
Mark Thomas wrote:
> Mark Thomas wrote:
>
>> Bill Barker wrote:
>>
>>> I'm so tired of this thread, so let's settle it once and for all. I'm
>>> backing Remy's suggestion to send the current trunk to the sandbox:
>>> [X] +1 Let's end the revolution
>>> [ ] +0 What revolution?
>>> [ ] -1 Viva the revolultion
>>>
>> This applies to this proposal only. Other changes should be proposed
>> in other threads.
>>
>
> Expanding on what I said on private@ as I see no reason for it not to
> be part of the public discussion...
>
> I don't see a need for a separate 6.0.x and 6.1.x development at this
> point. I have yet to see a convincing technical argument that there is
> something sufficiently new and/or different to justify this overhead.
> There is enough work to do to maintain 4.1.x, 5.0.x (which we aren't
> doing a great job of and I am several months past my promise to do a
> security release for 5.0.x), 5.5.x and 6.0.x without adding yet an
> other branch.
>
> Simply, trunk should never have been called trunk, it is a branch. It
> should be moved to 6.0.x/branches/whatever
>
> In terms of moving forward, merge the changes in 'trunk' to 6.0.x.
> Ideally this should be done commit by commit or groups of related
> commits so we can discuss each of the additions if necessary. If any
> attract a veto or are viewed as too experimental etc they can stay in
> 6.0.x/branches/whatever until the issues are resolved or that feature
> is abandoned. My expectation is that 99% of what is in /trunk can move
> to 6.0.x/trunk with little or no debate.
>
your points are completely valid, here is the thread for trunk
http://marc.info/?l=tomcat-dev&m=117940240523993&w=2
the idea, discussed in this thread, was to freeze 6.0 API all together,
and continue with new changes in trunk, everyone was in agreement. and
if comet was the culprit, that feature can be pulled out, I've must have
said that 3 dozen times now.
just the history of how we got to where we are at.
At this point, I'm beat down by this argument, I'm getting vetoes on
other areas just cause folks don't properly look over the patch
submitted and are on a pure vendetta, it's too much of a personal head
ache to fight that kind of attitude, that has no technical backup.
do whatever you want, I'll tag along, my objections have been noted,
that's good for now.
Filip
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Mark Thomas <ma...@apache.org>.
Mark Thomas wrote:
> Bill Barker wrote:
>> I'm so tired of this thread, so let's settle it once and for all. I'm
>> backing Remy's suggestion to send the current trunk to the sandbox:
>> [X] +1 Let's end the revolution
>> [ ] +0 What revolution?
>> [ ] -1 Viva the revolultion
>
> This applies to this proposal only. Other changes should be proposed
> in other threads.
Expanding on what I said on private@ as I see no reason for it not to
be part of the public discussion...
I don't see a need for a separate 6.0.x and 6.1.x development at this
point. I have yet to see a convincing technical argument that there is
something sufficiently new and/or different to justify this overhead.
There is enough work to do to maintain 4.1.x, 5.0.x (which we aren't
doing a great job of and I am several months past my promise to do a
security release for 5.0.x), 5.5.x and 6.0.x without adding yet an
other branch.
Simply, trunk should never have been called trunk, it is a branch. It
should be moved to 6.0.x/branches/whatever
In terms of moving forward, merge the changes in 'trunk' to 6.0.x.
Ideally this should be done commit by commit or groups of related
commits so we can discuss each of the additions if necessary. If any
attract a veto or are viewed as too experimental etc they can stay in
6.0.x/branches/whatever until the issues are resolved or that feature
is abandoned. My expectation is that 99% of what is in /trunk can move
to 6.0.x/trunk with little or no debate.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Mark Thomas <ma...@apache.org>.
Bill Barker wrote:
> I'm so tired of this thread, so let's settle it once and for all. I'm
> backing Remy's suggestion to send the current trunk to the sandbox:
> [X] +1 Let's end the revolution
> [ ] +0 What revolution?
> [ ] -1 Viva the revolultion
This applies to this proposal only. Other changes should be proposed
in other threads.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Yoav Shapira <yo...@apache.org>.
Hey,
On 8/20/07, Bill Barker <wb...@wilshire.com> wrote:
> I'm so tired of this thread, so let's settle it once and for all. I'm
> backing Remy's suggestion to send the current trunk to the sandbox:
> [ ] +1 Let's end the revolution
> [ X ] +0 What revolution?
+0 on this specific proposal.
-1 on mixing up this proposal with various other options, like
adopting httpd-style branches, or release numbers. Those might be
worthy issues, but let's keep one VOTE thread for one issue, please.
Yoav
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Remy Maucherat <re...@apache.org>.
Jim Jagielski wrote:
> On Aug 20, 2007, at 5:38 AM, Remy Maucherat wrote:
>
>> Since the community is a bit small, it could be useful to precise that
>> a single +1 (from the committer who proposes the commit) is enough for
>> a commit to go through, rather than the usual 3 +1s.
>
> If the community is so small as to not be able to scour up three
> +1s, then the community is in trouble...
Yes, I now think it works, but that's what I had understood initially.
Rémy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Jim Jagielski <ji...@jaguNET.com>.
On Aug 20, 2007, at 5:38 AM, Remy Maucherat wrote:
>
> Since the community is a bit small, it could be useful to precise
> that a single +1 (from the committer who proposes the commit) is
> enough for a commit to go through, rather than the usual 3 +1s.
>
If the community is so small as to not be able to scour up three
+1s, then the community is in trouble...
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Remy Maucherat <re...@apache.org>.
jean-frederic clere wrote:
>>> Comments?
>> Since the community is a bit small, it could be useful to precise that a
>> single +1 (from the committer who proposes the commit) is enough for a
>> commit to go through, rather than the usual 3 +1s.
>
> Well my idea was to force two other committers to review a proposal
> before it gets/returns in the "stable/released" code. Allowing only one
> +1 from the initial committer to get the code in (or back) prevents this.
Ok. I think it can work, but it's a tougher requirement.
Rémy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by jean-frederic clere <jf...@gmail.com>.
Remy Maucherat wrote:
> jean-frederic clere wrote:
>> Bill Barker wrote:
>>> I'm so tired of this thread, so let's settle it once and for all.
>>> I'm backing Remy's suggestion to send the current trunk to the sandbox:
>>> [X] +1 Let's end the revolution
>>
>> I would also propose that we take an handling of releases similar to
>> httpd.
>> See http://svn.apache.org/repos/asf/httpd/httpd/
>>
>> branches contains the productions branches and the experimental
>> developpemnt branches.
>>
>> trunk contains the place where the commmun developement and the new
>> agreed features and bugs fixes are going.
>> To move something from the "experimental developpement branches" to
>> trunk (or to a production branche) we vote it. (in a file named STATUS)
>> once accepted (no -1) the stuff enters the production or trunk. If
>> someone starts something in trunk and gets a -1 he should create a new
>> branche with the new code and propose a vote to get it back in trunk.
>>
>> What does that means.
>> http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/ will be moved to
>> http://svn.apache.org/repos/asf/tomcat/tc6.0.x/branches/comet_dev (or
>> filip_dev)
>> A new http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/ (or better
>> http://svn.apache.org/repos/asf/tomcat/trunk/) will be created there we
>> put what we agree to put for the actual trunk (by voting).
>> Everyone that when to try something could try it in a new branche.
>>
>> Comments?
>
> Since the community is a bit small, it could be useful to precise that a
> single +1 (from the committer who proposes the commit) is enough for a
> commit to go through, rather than the usual 3 +1s.
Well my idea was to force two other committers to review a proposal
before it gets/returns in the "stable/released" code. Allowing only one
+1 from the initial committer to get the code in (or back) prevents this.
Cheers
Jean-Frederic
>
> Rémy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
Remy Maucherat wrote:
>
> Since the community is a bit small, it could be useful to precise that a
> single +1 (from the committer who proposes the commit) is enough for a
> commit to go through, rather than the usual 3 +1s.
That would be C-T-R, aye?
E.g. you are -1 to adopting R-T-C on any branches if we understand you
correctly.
Just be aware that R-T-C on released branches is not entirely popular on
httpd. It certainly is an obstacle to momentum. Nobody argues that
it isn't a painful discipline.
It was adopted to try to move focus to the development trunk, because
without that change, Apache 1.3 would have grown forever sapping the
energy of developers to actually improve upon 2.0. And to try to find
a more stable, happy medium in a code base that had as many regressions
as it had fixes with new releases.
Jeff Trawick proposed a maintenance branch of 2.0.42 that would have
been maintained for some time into perpetuity. (E.g. 2.0.42.2, .3 etc).
R-T-C was adopted to try to find that middle ground between folks who
wanted to package a trustworthy httpd v.s. folks who wanted to continue
to innovate. /trunk/ was selected for innovation (and a sandbox when
the changes would make trunk unstable for a significant period of time.)
Bill
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Remy Maucherat <re...@apache.org>.
jean-frederic clere wrote:
> Bill Barker wrote:
>> I'm so tired of this thread, so let's settle it once and for all. I'm
>> backing Remy's suggestion to send the current trunk to the sandbox:
>> [X] +1 Let's end the revolution
>
> I would also propose that we take an handling of releases similar to httpd.
> See http://svn.apache.org/repos/asf/httpd/httpd/
>
> branches contains the productions branches and the experimental
> developpemnt branches.
>
> trunk contains the place where the commmun developement and the new
> agreed features and bugs fixes are going.
> To move something from the "experimental developpement branches" to
> trunk (or to a production branche) we vote it. (in a file named STATUS)
> once accepted (no -1) the stuff enters the production or trunk. If
> someone starts something in trunk and gets a -1 he should create a new
> branche with the new code and propose a vote to get it back in trunk.
>
> What does that means.
> http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/ will be moved to
> http://svn.apache.org/repos/asf/tomcat/tc6.0.x/branches/comet_dev (or
> filip_dev)
> A new http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/ (or better
> http://svn.apache.org/repos/asf/tomcat/trunk/) will be created there we
> put what we agree to put for the actual trunk (by voting).
> Everyone that when to try something could try it in a new branche.
>
> Comments?
Since the community is a bit small, it could be useful to precise that a
single +1 (from the committer who proposes the commit) is enough for a
commit to go through, rather than the usual 3 +1s.
Rémy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
Boy, what an absurd thread...
jean-frederic clere wrote:
>
> I would also propose that we take an handling of releases similar to httpd.
> See http://svn.apache.org/repos/asf/httpd/httpd/
I just want to make sure you aren't confusing the above ^^^
with below vvv
> branches contains the productions branches and the experimental
> developpemnt branches.
>
> trunk contains the place where the commmun developement and the new
> agreed features and bugs fixes are going.
> To move something from the "experimental developpement branches" to
> trunk (or to a production branche) we vote it. (in a file named STATUS)
> once accepted (no -1) the stuff enters the production or trunk. If
> someone starts something in trunk and gets a -1 he should create a new
> branche with the new code and propose a vote to get it back in trunk.
This isn't how httpd works. Any committer can commit new features or code
to trunk. Any committer can veto a commit, as well, at which point it has
to leave trunk unless the author can convince the veto'er of their plan,
or they agree to work together to fix the committed code to everyone's
satisfaction. Or (and this is rare) there's no *technical* justification
for the veto, and the rest of the committers agree it isn't valid.
Now on the subject of sandboxes, they don't exist to shove off committers.
They are tools for committers to use to develop their own proof of their
concept. Let's face it, on radical changes, it's almost impossible to
keep the development branch building until the change is complete.
But it's not a purgatory to which you can shove another committers' code
into. They either agree their work needs to be refined, or reverted.
Revert the trunk code on a case by case basis the code that you cannot
agree on, and let the author move it to a sandbox if that is their choice.
That is how the httpd project handles svn.
Any suggestion to "push aside" the current trunk contents shows some
incredibly poor respect for fellow committers and certainly reflects
badly on the state of the community and project.
All of this is to say slow down, agree to back out offending patches from
trunk, and just move forward to 6.5 or 7.0 or whatever it is, IMHO. You
are using SVN to bully each other into agreement, which is worthless if
your goal is to build back up the tomcat community. If you seek to destroy
it, there is really a quicker and more efficient way to go about it.
All of which I point out as simply an observer and user of Tomcat, and from
years of similar debates at httpd. So take this for what it's worth.
Bill
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Henri Gomez <he...@gmail.com>.
+1
Good idea to get the httpd release handling, a big +1.
I'll be more confortable with more eyes (commiters) on a new piece of code
2007/8/20, jean-frederic clere <jf...@gmail.com>:
> Bill Barker wrote:
> > I'm so tired of this thread, so let's settle it once and for all. I'm
> > backing Remy's suggestion to send the current trunk to the sandbox:
> > [X] +1 Let's end the revolution
>
> I would also propose that we take an handling of releases similar to httpd.
> See http://svn.apache.org/repos/asf/httpd/httpd/
>
> branches contains the productions branches and the experimental
> developpemnt branches.
>
> trunk contains the place where the commmun developement and the new
> agreed features and bugs fixes are going.
> To move something from the "experimental developpement branches" to
> trunk (or to a production branche) we vote it. (in a file named STATUS)
> once accepted (no -1) the stuff enters the production or trunk. If
> someone starts something in trunk and gets a -1 he should create a new
> branche with the new code and propose a vote to get it back in trunk.
>
> What does that means.
> http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/ will be moved to
> http://svn.apache.org/repos/asf/tomcat/tc6.0.x/branches/comet_dev (or
> filip_dev)
> A new http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/ (or better
> http://svn.apache.org/repos/asf/tomcat/trunk/) will be created there we
> put what we agree to put for the actual trunk (by voting).
> Everyone that when to try something could try it in a new branche.
>
> Comments?
>
> Cheers
>
> Jean-Frederic
>
> > [ ] +0 What revolution?
> > [ ] -1 Viva the revolultion
> >
> > My vote is +1.
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: dev-help@tomcat.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Remy Maucherat <re...@apache.org>.
Mark Thomas wrote:
>> trunk contains the place where the commmun developement and the new
>> agreed features and bugs fixes are going.
>> To move something from the "experimental developpement branches" to
>> trunk (or to a production branche) we vote it. (in a file named STATUS)
>> once accepted (no -1) the stuff enters the production or trunk. If
>> someone starts something in trunk and gets a -1 he should create a new
>> branch with the new code and propose a vote to get it back in trunk.
>
> +1 to this combined approach. I like it.
Yes, maybe it can work due to the centralized file. A separate vote
thread for each commit would not work. This would need to be a separate
discussion and vote, though.
>> What does that means.
>> http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/ will be moved to
>> http://svn.apache.org/repos/asf/tomcat/tc6.0.x/branches/comet_dev (or
>> filip_dev)
>> A new http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/
>
> We already have this and it is, as far as I am concerned, the current
> trunk.
>
> I like the idea of keeping each major release in a separate directory
> under http://svn.apache.org/repos/asf/tomcat/. It keeps everything
> nice and consistent (something I like). Therefore I am -0 on moving
> http://svn.apache.org/repos/asf/tomcat/tc6.0.x/* to
> http://svn.apache.org/repos/asf/tomcat/
There's a 6.0.x trunk to which some patches can be merged, and I also
like the separate folder.
Rémy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Mark Thomas <ma...@apache.org>.
jean-frederic clere wrote:
> I would also propose that we take an handling of releases similar to httpd.
> See http://svn.apache.org/repos/asf/httpd/httpd/
-1 for review-then-commit for all commits.
Commit-then-review has worked well for us and I see no reason to move
to the additional overhead and burden of review-then-commit for
everything.
> trunk contains the place where the commmun developement and the new
> agreed features and bugs fixes are going.
> To move something from the "experimental developpement branches" to
> trunk (or to a production branche) we vote it. (in a file named STATUS)
> once accepted (no -1) the stuff enters the production or trunk. If
> someone starts something in trunk and gets a -1 he should create a new
> branch with the new code and propose a vote to get it back in trunk.
+1 to this combined approach. I like it.
> What does that means.
> http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/ will be moved to
> http://svn.apache.org/repos/asf/tomcat/tc6.0.x/branches/comet_dev (or
> filip_dev)
> A new http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/
We already have this and it is, as far as I am concerned, the current
trunk.
I like the idea of keeping each major release in a separate directory
under http://svn.apache.org/repos/asf/tomcat/. It keeps everything
nice and consistent (something I like). Therefore I am -0 on moving
http://svn.apache.org/repos/asf/tomcat/tc6.0.x/* to
http://svn.apache.org/repos/asf/tomcat/
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by jean-frederic clere <jf...@gmail.com>.
Bill Barker wrote:
> I'm so tired of this thread, so let's settle it once and for all. I'm
> backing Remy's suggestion to send the current trunk to the sandbox:
> [X] +1 Let's end the revolution
I would also propose that we take an handling of releases similar to httpd.
See http://svn.apache.org/repos/asf/httpd/httpd/
branches contains the productions branches and the experimental
developpemnt branches.
trunk contains the place where the commmun developement and the new
agreed features and bugs fixes are going.
To move something from the "experimental developpement branches" to
trunk (or to a production branche) we vote it. (in a file named STATUS)
once accepted (no -1) the stuff enters the production or trunk. If
someone starts something in trunk and gets a -1 he should create a new
branche with the new code and propose a vote to get it back in trunk.
What does that means.
http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/ will be moved to
http://svn.apache.org/repos/asf/tomcat/tc6.0.x/branches/comet_dev (or
filip_dev)
A new http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/ (or better
http://svn.apache.org/repos/asf/tomcat/trunk/) will be created there we
put what we agree to put for the actual trunk (by voting).
Everyone that when to try something could try it in a new branche.
Comments?
Cheers
Jean-Frederic
> [ ] +0 What revolution?
> [ ] -1 Viva the revolultion
>
> My vote is +1.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Remy Maucherat <re...@apache.org>.
Filip Hanik - Dev Lists wrote:
> for those not following the entire non existent revolution, here is the
> veto that was being debated
Yes, you ignored it, along with all subsequent objections, and continued
hacking. You also obviously do not consider this branch to be a
proposal, since otherwise you would have agreed to move it to the
sandbox long ago.
In case you are interested (I suppose not), I am not in favor of the
latest virtual CL loader, since this sort of feature allows users to
very easily bypass proper webapp packaging, which will make webapps not
portable and will create CL issues.
Rémy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Remy Maucherat <re...@apache.org>.
William A. Rowe, Jr. wrote:
> Filip Hanik - Dev Lists wrote:
>> for those not following the entire non existent revolution, here is the
>> veto that was being debated
>
> Thanks, I have a question below...
>
>> fhanik@apache.org wrote:
>>> Author: fhanik
>>> Date: Tue May 29 15:23:36 2007
>>> New Revision: 542678
>>>
>>> URL: http://svn.apache.org/viewvc?view=rev&rev=542678
>>> Log:
>>> setup default operation
>>>
>>> Modified:
>>> tomcat/trunk/java/org/apache/catalina/connector/CometEventImpl.java
>>>
>>> Modified:
>>> tomcat/trunk/java/org/apache/catalina/connector/CometEventImpl.java
>>> URL:
>>> http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/connector/CometEventImpl.java?view=diff&rev=542678&r1=542677&r2=542678
>>>
>>> ==============================================================================
>>>
>>> ---
>>> tomcat/trunk/java/org/apache/catalina/connector/CometEventImpl.java
>>> (original)
>>> +++
>>> tomcat/trunk/java/org/apache/catalina/connector/CometEventImpl.java
>>> Tue May 29 15:23:36 2007
>>> @@ -41,6 +41,11 @@
>>> public CometEventImpl(Request request, Response response) {
>>> this.request = request;
>>> this.response = response;
>>> + try {
>>> + this.register(CometOperation.OP_READ);
>>> + }catch ( IOException x ) {
>>> + throw new IllegalStateException(x.getMessage(),x);
>>> + }
>>> }
>> To keep with the proper commit handling procedures of the ASF, I think I
>> have to veto all these changes, so that they are not considered as
>> having been accepted inside an official branch. They have to be
>> considered a proposal (even though the branch they live in sounds
>> official), but of course, no need to revert them.
>>
>> Rémy
>
> I'm confused. I see the veto, I don't see the justification in that
> veto message.
There's a large thread on these issues. At the time, the API design was
downright bad. It did improve to some extent (without further debate),
but this was all done in trunk without any collaboration.
I wish to move out the current trunk and use stricter commit policies to
avoid these sort of issues, and force agreement before commit.
Rémy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
Filip Hanik - Dev Lists wrote:
> for those not following the entire non existent revolution, here is the
> veto that was being debated
Thanks, I have a question below...
> fhanik@apache.org wrote:
>> Author: fhanik
>> Date: Tue May 29 15:23:36 2007
>> New Revision: 542678
>>
>> URL: http://svn.apache.org/viewvc?view=rev&rev=542678
>> Log:
>> setup default operation
>>
>> Modified:
>> tomcat/trunk/java/org/apache/catalina/connector/CometEventImpl.java
>>
>> Modified:
>> tomcat/trunk/java/org/apache/catalina/connector/CometEventImpl.java
>> URL:
>> http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/connector/CometEventImpl.java?view=diff&rev=542678&r1=542677&r2=542678
>>
>> ==============================================================================
>>
>> ---
>> tomcat/trunk/java/org/apache/catalina/connector/CometEventImpl.java
>> (original)
>> +++
>> tomcat/trunk/java/org/apache/catalina/connector/CometEventImpl.java
>> Tue May 29 15:23:36 2007
>> @@ -41,6 +41,11 @@
>> public CometEventImpl(Request request, Response response) {
>> this.request = request;
>> this.response = response;
>> + try {
>> + this.register(CometOperation.OP_READ);
>> + }catch ( IOException x ) {
>> + throw new IllegalStateException(x.getMessage(),x);
>> + }
>> }
>
> To keep with the proper commit handling procedures of the ASF, I think I
> have to veto all these changes, so that they are not considered as
> having been accepted inside an official branch. They have to be
> considered a proposal (even though the branch they live in sounds
> official), but of course, no need to revert them.
>
> Rémy
I'm confused. I see the veto, I don't see the justification in that
veto message.
What "proper commit handling procedures"? You don't vote first
on C-T-R branches like trunk. You vote against the code you don't
like with a justification of why you don't like it (and what the author
can do to help you like it.) Or you vote for it just to show moral
support.
Then you vote up or down on a release, someday in the future, when
there is an RM who wants to release it.
The rules were very deliberately designed to prevent any one person
from hijacking a project, either in releasing software the project
isn't satisfied with, or in being an obstacle to releasing software
the project is satisfied with.
Bill
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
for those not following the entire non existent revolution, here is the
veto that was being debated
fhanik@apache.org wrote:
> Author: fhanik
> Date: Tue May 29 15:23:36 2007
> New Revision: 542678
>
> URL: http://svn.apache.org/viewvc?view=rev&rev=542678
> Log:
> setup default operation
>
> Modified:
> tomcat/trunk/java/org/apache/catalina/connector/CometEventImpl.java
>
> Modified:
> tomcat/trunk/java/org/apache/catalina/connector/CometEventImpl.java
> URL:
> http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/connector/CometEventImpl.java?view=diff&rev=542678&r1=542677&r2=542678
>
> ==============================================================================
>
> ---
> tomcat/trunk/java/org/apache/catalina/connector/CometEventImpl.java
> (original)
> +++
> tomcat/trunk/java/org/apache/catalina/connector/CometEventImpl.java
> Tue May 29 15:23:36 2007
> @@ -41,6 +41,11 @@
> public CometEventImpl(Request request, Response response) {
> this.request = request;
> this.response = response;
> + try {
> + this.register(CometOperation.OP_READ);
> + }catch ( IOException x ) {
> + throw new IllegalStateException(x.getMessage(),x);
> + }
> }
To keep with the proper commit handling procedures of the ASF, I think I
have to veto all these changes, so that they are not considered as
having been accepted inside an official branch. They have to be
considered a proposal (even though the branch they live in sounds
official), but of course, no need to revert them.
Rémy
Bill Barker wrote:
> I'm so tired of this thread, so let's settle it once and for all. I'm
> backing Remy's suggestion to send the current trunk to the sandbox:
> [ ] +1 Let's end the revolution
> [ ] +0 What revolution?
> [ ] -1 Viva the revolultion
>
> My vote is +1.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
I've been giving this a lot of thought, and I've come to the conclusion
that this is not a valid vote.
There is no technical justification for throwing away trunk, nor was
there a justification in Remy's veto.
I'm happy to pull out whatever Remy is vetoing, when I know exactly what
is being vetoed.
I proposed in private@tomcat that we should vote on the Comet impl, and
put that in trunk.
I two or three times asked for a technical justification for this vote,
but one was never given.
In order to not give up the ASF ways, I believe we should be focused on
technical issues, this vote was thrown out there to end an argument, and
that is not a technical justification.
Kudos to Bill for wanting to get to a resolution, but this can't be it.
I'm aware that this will probably cause more heat in an already heated
debate.
Filip
Bill Barker wrote:
> I'm so tired of this thread, so let's settle it once and for all. I'm
> backing Remy's suggestion to send the current trunk to the sandbox:
> [ ] +1 Let's end the revolution
> [ ] +0 What revolution?
> [ ] -1 Viva the revolultion
>
> My vote is +1.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Jim Jagielski <ji...@jaguNET.com>.
On Aug 20, 2007, at 11:13 AM, Remy Maucherat wrote:
> Filip Hanik - Dev Lists wrote:
>> [X] +0 What revolution?
>> everything is backwards compatible, even Comet, if you take a
>> 6.0.x comet app, it would work in trunk, there was just new
>> features added
>
> Given the additional calls that were added, it didn't look to me it
> was compatible. Regardless, it's still a non approved proposal that
> is kept in an official sounding branch (the vote would be to rename
> the branch from "trunk" to "filip_trunk").
>
What would become trunk?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Remy Maucherat <re...@apache.org>.
Filip Hanik - Dev Lists wrote:
> [X] +0 What revolution?
>
> everything is backwards compatible, even Comet, if you take a 6.0.x
> comet app, it would work in trunk, there was just new features added
Given the additional calls that were added, it didn't look to me it was
compatible. Regardless, it's still a non approved proposal that is kept
in an official sounding branch (the vote would be to rename the branch
from "trunk" to "filip_trunk").
> I think this whole thing is a big shame, there was no revolution going
> on here. not a single thing in trunk is, and now, we are simply going to
> have to redo it all over again.
Given the likely patch process update, it would have to be done over
again anyway. I don't see this many patches which were not also mirrored
in 6.0.x.
Rémy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
Henri Gomez wrote:
> And what about using a modular design 'à la http modules' ?
>
not sure what you mean, but if you are referring to the "6.x wishlist",
none of those items are implemented, and were brought up as proposals
for consensus.
no revolution here either
Filip
> 2007/8/20, Filip Hanik - Dev Lists <de...@hanik.com>:
>
>> [X] +0 What revolution?
>>
>> everything is backwards compatible, even Comet, if you take a 6.0.x
>> comet app, it would work in trunk, there was just new features added
>> I think this whole thing is a big shame, there was no revolution going
>> on here. not a single thing in trunk is, and now, we are simply going to
>> have to redo it all over again.
>>
>> Filip
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: dev-help@tomcat.apache.org
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Henri Gomez <he...@gmail.com>.
And what about using a modular design 'à la http modules' ?
2007/8/20, Filip Hanik - Dev Lists <de...@hanik.com>:
> [X] +0 What revolution?
>
> everything is backwards compatible, even Comet, if you take a 6.0.x
> comet app, it would work in trunk, there was just new features added
> I think this whole thing is a big shame, there was no revolution going
> on here. not a single thing in trunk is, and now, we are simply going to
> have to redo it all over again.
>
> Filip
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [VOTE] Send trunk to the sandbox
Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
[X] +0 What revolution?
everything is backwards compatible, even Comet, if you take a 6.0.x
comet app, it would work in trunk, there was just new features added
I think this whole thing is a big shame, there was no revolution going
on here. not a single thing in trunk is, and now, we are simply going to
have to redo it all over again.
Filip
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[VOTE] Send trunk to the sandbox
Posted by Bill Barker <wb...@wilshire.com>.
I'm so tired of this thread, so let's settle it once and for all. I'm
backing Remy's suggestion to send the current trunk to the sandbox:
[ ] +1 Let's end the revolution
[ ] +0 What revolution?
[ ] -1 Viva the revolultion
My vote is +1.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org