Merge branch 'jetty-9.3.x' of github.com:eclipse/jetty.project into jetty-9.3.x
This commit is contained in:
commit
a9a21daa8e
|
@ -17,9 +17,20 @@
|
|||
[[contributing-patches]]
|
||||
=== Contributing Patches
|
||||
|
||||
How to contribute a patch to the jetty project.
|
||||
You should first familiarize yourself with the Eclipse wiki page on http://wiki.eclipse.org/Development_Resources/Contributing_via_Git[contributing
|
||||
via Git].
|
||||
We love seeing people contribute patches to the Jetty project and the process is relatively simple.
|
||||
The requirements to commit are modest but very important to the Eclipse Foundation and the intellectual property of the open source project.
|
||||
The following is the general process by which we operate.
|
||||
|
||||
* You must have a signed Eclipse Contributor Agreement.
|
||||
* This agreement must be under the _same_ email address as the Git pull request originates from.
|
||||
* The commit must be signed.
|
||||
* When the pull request is made, a git-hook will validate the email address.
|
||||
** If the result is a green checkbox then the Jetty committers can review the pull request.
|
||||
** If the result is a red X then there is absolutely nothing the Jetty committers can do to accept the commit at this point.
|
||||
* This may not be the final form a commit will take, there may be some back and forth and you may be asked to re-issue a pull request.
|
||||
|
||||
|
||||
|
||||
Not everything is specifically relevant since we are at GitHub but the crux of things are detailed there. The CLA is critically important to the process.
|
||||
|
||||
[[contributing-cla]]
|
||||
|
@ -31,21 +42,64 @@ The Eclipse Foundation has a strong Intellectual Property policy which tracks co
|
|||
2. Does the contributor have the rights to contribute this content to Eclipse?
|
||||
3. Is the contribution under the project’s license(s) (e.g. EPL)
|
||||
|
||||
Thus a contributor needs to e-sign a Contributor Licence Agreement (for more explanation see the http://www.eclipse.org/legal/clafaq.php[Eclipse CLA FAQ] ) regardless of how their contribution patch is provided.
|
||||
|
||||
A contributor needs to e-sign a Contributor Licence Agreement (for more explanation see the http://www.eclipse.org/legal/clafaq.php[Eclipse CLA FAQ] ) regardless of how their contribution patch is provided.
|
||||
You can familiarize yourself with the Eclipse wiki page at http://wiki.eclipse.org/Development_Resources/Contributing_via_Git[Contributing via Git].
|
||||
In order to have a pull request accepted by any Eclipse project you must complete this agreement.
|
||||
____
|
||||
[TIP]
|
||||
Log into the https://projects.eclipse.org/user/login/sso[Eclipse projects forge] (you will need to create an account with the Eclipse Foundation if you have not already done so); click on "Contributor License Agreement"; and Complete the form.
|
||||
Be sure to use the _same email address_ when you create any Git commit records.
|
||||
____
|
||||
|
||||
==== GitHub Contribution
|
||||
[[contributing-git-config]]
|
||||
==== Configuring Git
|
||||
|
||||
Jetty is hosted at GitHub and accepts pull requests now.
|
||||
However you must have a CLA on file as mentioned above, with the email address you will be using at github for your signed commit.
|
||||
Make sure your commit is using the email that you registered in your CLA or no amount of pushing
|
||||
the in world from us will get past the eclipse git commit hooks.
|
||||
When you do your commit that you use for the pull request it is also _vital_ that you "sign-off" on the commit using "git commit -s". Without the sign-off, your patch cannot be applied to the jetty repo because it will be rejected.
|
||||
GitHub has copious amounts of quality documentation on how to interact with the system and you will minimally need to configure the user.email property.
|
||||
Check out the following link:https://help.github.com/articles/setting-your-email-in-git[guide on GitHub] for more information.
|
||||
|
||||
[[contributing-making-the-commit]]
|
||||
==== Making the Commit
|
||||
|
||||
When making the commit for the pull request it is _vital_ that you "sign-off" on the commit using "git commit -s" option.
|
||||
Without this sign-off, your patch cannot be applied to the Jetty repository because it will be rejected.
|
||||
|
||||
You can check out the link:https://help.github.com/articles/signing-tags-using-gpg[guide at Github] for more information.
|
||||
____
|
||||
[TIP]
|
||||
One way to think of this is that when you sign the CLA you are indicating that you are free to contribute to eclipse, but that doesn't mean everything you ever do can be contributed.
|
||||
Using the commit signing mechanism indicates that your commit is under the auspices of your agreement.
|
||||
____
|
||||
|
||||
If a pull request is for a particular issue in our repository then the format of the commit message is important.
|
||||
The message should follow the form "Issue #123 <description of the commit>".
|
||||
When the Jetty project runs releases we have an automated process that scans for commits with this format for inclusion in our VERSION.txt file.
|
||||
|
||||
____
|
||||
> git commit -s -m "Issue #123 resolving the issue by adding widget"
|
||||
____
|
||||
|
||||
[[contributing-the-pull-request]]
|
||||
==== The Pull Request
|
||||
|
||||
Pull requests are very much a GitHub process so best link:https://help.github.com/articles/creating-a-pull-request[explained by Github].
|
||||
|
||||
[[contributing-our-policies]]
|
||||
==== Our Policies
|
||||
|
||||
We wholeheartedly welcome contributions to Jetty and will do our best to process them in a timely fashion.
|
||||
While not every contribution will be accepted as is our commitment is to work with interested parties on the things they care about.
|
||||
With that in mind, short of some simple contributions we can only handle pull requests with actively engaged parties.
|
||||
We reserve the right to abandon pull requests whose authors do no respond in a timely fashion.
|
||||
We will generally adhere to the following time frames for contributions.
|
||||
|
||||
* Invalid Pull Requests - 1 week
|
||||
** These pull requests do not follow the contribution requirements for some reason, be it missing contributor agreement or the wrong email.
|
||||
** We will try and follow up with the pull request author to resolve the issue but much of this is out of our hands and are between committer and the Eclipse Foundation.
|
||||
** If we do not hear from the contributor after a week we will close the pull request.
|
||||
|
||||
* Valid Pull Requests - 2 weeks
|
||||
** These pull requests have a green check mark after the commit title.
|
||||
** If the pull request can be immediately applied we will do so.
|
||||
** There may need to be some conversation on the issue in which case a committer will follow up with the author in the pull request.
|
||||
** If the original contributor does not respond within 2 weeks we may close the commit.
|
||||
** If we see value in the commit yet the author has not responded after 2 weeks we may make some variation of the commit ourselves.
|
||||
|
|
|
@ -212,7 +212,8 @@ public abstract class AbstractEndPoint extends IdleTimeout implements EndPoint
|
|||
name=c.getSimpleName();
|
||||
}
|
||||
|
||||
return String.format("%s@%x{%s<->%d,%s,%s,%s,%s,%s,%d/%d,%s}",
|
||||
Connection connection = getConnection();
|
||||
return String.format("%s@%x{%s<->%d,%s,%s,%s,%s,%s,%d/%d,%s@%x}",
|
||||
name,
|
||||
hashCode(),
|
||||
getRemoteAddress(),
|
||||
|
@ -224,6 +225,7 @@ public abstract class AbstractEndPoint extends IdleTimeout implements EndPoint
|
|||
_writeFlusher.toStateString(),
|
||||
getIdleFor(),
|
||||
getIdleTimeout(),
|
||||
getConnection()==null?null:getConnection().getClass().getSimpleName());
|
||||
connection == null ? null : connection.getClass().getSimpleName(),
|
||||
connection == null ? 0 : connection.hashCode());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -344,7 +344,10 @@ public class Server extends HandlerWrapper implements Attributes
|
|||
|
||||
LOG.info("jetty-" + getVersion());
|
||||
if (!Jetty.STABLE)
|
||||
{
|
||||
LOG.warn("THIS IS NOT A STABLE RELEASE! DO NOT USE IN PRODUCTION!");
|
||||
LOG.warn("Download a stable release from http://download.eclipse.org/jetty/");
|
||||
}
|
||||
|
||||
HttpGenerator.setJettyVersion(HttpConfiguration.SERVER_VERSION);
|
||||
MultiException mex=new MultiException();
|
||||
|
|
|
@ -36,13 +36,8 @@ public class Jetty
|
|||
|
||||
POWERED_BY="<a href=\"http://eclipse.org/jetty\">Powered by Jetty:// "+VERSION+"</a>";
|
||||
|
||||
boolean stable=true;
|
||||
for (char c: VERSION.toCharArray())
|
||||
{
|
||||
if (c!='.' && !Character.isDigit(c))
|
||||
stable=false;
|
||||
}
|
||||
STABLE=stable;
|
||||
// Show warning when RC# or M# is in version string
|
||||
STABLE = !VERSION.matches("^.*\\.(RC|M)[0-9]+$");
|
||||
}
|
||||
|
||||
private Jetty()
|
||||
|
|
|
@ -452,7 +452,7 @@ public class MultiPartInputStreamParser
|
|||
/**
|
||||
* Throws an exception if one has been latched.
|
||||
*
|
||||
* @throws IOException
|
||||
* @throws IOException the exception (if present)
|
||||
*/
|
||||
protected void throwIfError ()
|
||||
throws IOException
|
||||
|
|
|
@ -596,7 +596,7 @@ public class Scanner extends AbstractLifeCycle
|
|||
|
||||
/**
|
||||
* Report a file addition to the registered FileAddedListeners
|
||||
* @param filename
|
||||
* @param filename the filename
|
||||
*/
|
||||
private void reportAddition (String filename)
|
||||
{
|
||||
|
@ -623,7 +623,7 @@ public class Scanner extends AbstractLifeCycle
|
|||
|
||||
/**
|
||||
* Report a file removal to the FileRemovedListeners
|
||||
* @param filename
|
||||
* @param filename the filename
|
||||
*/
|
||||
private void reportRemoval (String filename)
|
||||
{
|
||||
|
@ -650,7 +650,7 @@ public class Scanner extends AbstractLifeCycle
|
|||
|
||||
/**
|
||||
* Report a file change to the FileChangedListeners
|
||||
* @param filename
|
||||
* @param filename the filename
|
||||
*/
|
||||
private void reportChange (String filename)
|
||||
{
|
||||
|
|
|
@ -155,7 +155,6 @@ public abstract class Resource implements ResourceFactory, Closeable
|
|||
* @param useCaches controls URLConnection caching
|
||||
* @return A Resource object.
|
||||
* @throws MalformedURLException Problem accessing URI
|
||||
* @throws IOException Problem handling resource as file.
|
||||
*/
|
||||
public static Resource newResource(String resource, boolean useCaches)
|
||||
throws MalformedURLException
|
||||
|
|
|
@ -103,6 +103,8 @@ public interface ExecutionStrategy
|
|||
}
|
||||
|
||||
/**
|
||||
* @param producer the execution strategy producer
|
||||
* @param executor the execution strategy executor
|
||||
* @deprecated use {@code getDefault().newExecutionStrategy(Producer, Executor)} instead
|
||||
*/
|
||||
@Deprecated
|
||||
|
|
|
@ -122,7 +122,7 @@ public class MultiMapTest
|
|||
}
|
||||
|
||||
/**
|
||||
* Tests {@link MultiMap#putValues(String, String...)}
|
||||
* Tests {@link MultiMap#putValues(String, Object[])}
|
||||
*/
|
||||
@Test
|
||||
public void testPutValues_StringArray()
|
||||
|
@ -138,7 +138,7 @@ public class MultiMapTest
|
|||
}
|
||||
|
||||
/**
|
||||
* Tests {@link MultiMap#putValues(String, String...)}
|
||||
* Tests {@link MultiMap#putValues(String, List)}
|
||||
*/
|
||||
@Test
|
||||
public void testPutValues_VarArgs()
|
||||
|
|
7
pom.xml
7
pom.xml
|
@ -540,6 +540,7 @@
|
|||
<module>jetty-http-spi</module>
|
||||
<module>jetty-osgi</module>
|
||||
<module>jetty-alpn</module>
|
||||
<module>jetty-documentation</module>
|
||||
|
||||
<!-- modules that need fixed and added back, or simply dropped and not maintained
|
||||
<module>jetty-rhttp</module>
|
||||
|
@ -750,12 +751,6 @@
|
|||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>documentation</id>
|
||||
<modules>
|
||||
<module>jetty-documentation</module>
|
||||
</modules>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>ci</id>
|
||||
<modules>
|
||||
|
|
Loading…
Reference in New Issue