Re: Change default branch to main

2022-02-07 Thread Jim Ma
+1

On Tue, Feb 1, 2022 at 8:59 PM Colm O hEigeartaigh 
wrote:

> Hi,
>
> Most other Apache projects I work on (Camel, ActiveMQ, Karaf, etc.)
> have switched to use main as the default branch, to align with what
> the default branch is for new projects on GitHub etc. I'd like to
> propose switching all CXF projects to use main by default as well.
>
> WDYT?
>
> Colm.
>


[GitHub] [cxf] juniiorviani commented on pull request #900: JsonMapObjectReaderWriter not escaping the characters like \n properly

2022-02-07 Thread GitBox


juniiorviani commented on pull request #900:
URL: https://github.com/apache/cxf/pull/900#issuecomment-1031686104


   > 
   
   Sure thing, @amarkevich 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@cxf.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [cxf] juniiorviani commented on a change in pull request #900: JsonMapObjectReaderWriter not escaping the characters like \n properly

2022-02-07 Thread GitBox


juniiorviani commented on a change in pull request #900:
URL: https://github.com/apache/cxf/pull/900#discussion_r800858375



##
File path: 
rt/rs/extensions/json-basic/src/main/java/org/apache/cxf/jaxrs/json/basic/JsonMapObjectReaderWriter.java
##
@@ -384,26 +401,38 @@ public Output append(char ch) {
 
 }
 
-private String escapeJson(String value) {
+private String escapeJson(String content) {
 StringBuilder sb = new StringBuilder();
-for (int i = 0; i < value.length(); i++) {
-char c = value.charAt(i);
-// If we have " and the previous char was not \ then escape it
-if (c == '"' && (i == 0 || value.charAt(i - 1) != '\\')) {
-sb.append('\\').append(c);
-// If we have \ and the previous char was not \ and the next char 
is not an escaped char, then escape it
-} else if (c == '\\' && (i == 0 || value.charAt(i - 1) != '\\')
-&& (i == value.length() - 1 || 
!isEscapedChar(value.charAt(i + 1 {
-sb.append('\\').append(c);
-} else {
+final int[] escCodes = sOutputEscapes128;
+int escLen = escCodes.length;
+for (int i = 0, len = content.length(); i < len; ++i) {
+char c = content.charAt(i);
+if (c >= escLen || escCodes[c] == 0) {

Review comment:
   Actually we have characters with index higher than 32, such as:
   ` table['"'] = '"'; // index 92` and `table['\\'] = '\\';` and we need to 
escape those as well




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@cxf.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [cxf] juniiorviani edited a comment on pull request #900: JsonMapObjectReaderWriter not escaping the characters like \n properly

2022-02-07 Thread GitBox


juniiorviani edited a comment on pull request #900:
URL: https://github.com/apache/cxf/pull/900#issuecomment-1031686104


   > 
   
   Sure thing, @amarkevich I just added the unit tests


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@cxf.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [cxf] reta opened a new pull request #901: Update Jetty to 9.4.45.v20220203

2022-02-07 Thread GitBox


reta opened a new pull request #901:
URL: https://github.com/apache/cxf/pull/901


   Update Jetty to 9.4.45.v20220203


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@cxf.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [cxf] reta opened a new pull request #902: Update Swagger to 1.6.5

2022-02-07 Thread GitBox


reta opened a new pull request #902:
URL: https://github.com/apache/cxf/pull/902


   Update Swagger to 1.6.5


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@cxf.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [cxf] reta merged pull request #901: Update Jetty to 9.4.45.v20220203

2022-02-07 Thread GitBox


reta merged pull request #901:
URL: https://github.com/apache/cxf/pull/901


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@cxf.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [cxf] reta opened a new pull request #903: Update Swagger to 2.1.13

2022-02-07 Thread GitBox


reta opened a new pull request #903:
URL: https://github.com/apache/cxf/pull/903


   Update Swagger to 2.1.13


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@cxf.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [cxf] reta merged pull request #902: Update Swagger to 1.6.5

2022-02-07 Thread GitBox


reta merged pull request #902:
URL: https://github.com/apache/cxf/pull/902


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@cxf.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org