-
Notifications
You must be signed in to change notification settings - Fork 5
Merge 3.0 and integrate http package for rest v2 #114
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understand correctly, you managed to copy all from a project (among other changed) in order to stay Java 6 compatible. I believe it is not the best way to do this.
It is always a good practice to propagate fixes upstream.
As for the inclusion of the library in the codebase, we were looking for a
"quick" (and dirty, I admit) solution to add compatibility for Java 6,
given that the compatibility with Java 6 will be dropped with a 4.0 version
of Waarp R66. The release of this major milestone is yet to be planned, but
it will arrive within two years top. The inclusion of netty-http will be
dropped then, and will be included as a "regular" dependency.
This is just a temporary solution.
Le mar. 18 juin 2019 à 13:27, Frédéric Brégier <[email protected]> a
écrit :
… ***@***.**** commented on this pull request.
------------------------------
In src/main/java/io/cdap/http/AbstractHandlerHook.java
<#114 (comment)>:
> * Copyright © 2014-2019 Cask Data, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package io.cdap.http;
At least in the meantime, we could only kept the changed files (not to
many) and only source ones, not the test ones (and upgrading dependencies
in our pom).
- src/main/java/io/cdap/http/AbstractHttpResponder.java
- src/main/java/io/cdap/http/NettyHttpService.java
- src/main/java/io/cdap/http/SSLHandlerFactory.java
- src/main/java/io/cdap/http/internal/BasicHttpResponder.java
- src/main/java/io/cdap/http/internal/HandlerException.java
- src/main/java/io/cdap/http/internal/HttpResourceHandler.java
- src/main/java/io/cdap/http/internal/HttpResourceModel.java
- src/main/java/io/cdap/http/internal/ImmutablePair.java
- src/main/java/io/cdap/http/internal/ParamConvertUtils.java
- src/main/java/io/cdap/http/internal/PatternPathRouterWithGroups.java
so 10 files instead of 36 files plus test files. It should be easier to
follow the evolution until the merge is done.
WDYT?
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#114?email_source=notifications&email_token=AAEPKCKXTG6PNMQGFVAK453P3DBD5A5CNFSM4HYHYHV2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB33FQHI#discussion_r294741672>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEPKCMSQDY2W7AIXPOHW63P3DBD5ANCNFSM4HYHYHVQ>
.
|
I understand the reason, of course. In the meantime, we could just import the tagged files (10 of them) instead of all... WDYT? |
getSession().useConnection(); // default since this is the top | ||
// connection | ||
return; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
KISS!
The only difference between the two branches of the if is the value of isReadOnly, which is, in fact !write
. the if
is useless.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I propose you an extra update on external project, following good advice from maintener.
Is DbAdmin on its way to be removed ? if so, I'm OK with this PR. |
Merge the fixes developed on branch 3.0
Add a modified netty-http compatible with java6