Releases next week....

2017-10-26 Thread Daniel Kulp
It’s been over 6 weeks since 3.2.0 was released and being a “.0”, I think 
having a patch release fairly quick to address some of the migration issues is 
important.Thus, I’d like to do builds early next week.  Please try to get 
any additional changes in fairly shortly.   Let me know if there is anything 
outstanding that I’d need to wait for. 

Thanks! 

-- 
Daniel Kulp
dk...@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com



[GitHub] andymc12 commented on issue #326: [CXF-7537] Use doPriv when calling methods needing Java 2 permissions - 3.1.X

2017-10-26 Thread GitBox
andymc12 commented on issue #326: [CXF-7537] Use doPriv when calling methods 
needing Java 2 permissions - 3.1.X
URL: https://github.com/apache/cxf/pull/326#issuecomment-339785475
 
 
   I must've mixes streams here... I'm planning to close this PR and resubmit 
the doPriv changes from PR #325 into the 3.1.X stream directly.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


Re: [cxf] branch master updated: Add doPrivs

2017-10-26 Thread Sergey Beryozkin

Hi Andy

Thanks, FYI, just in case,

there could be some helper methods available in

https://github.com/apache/cxf/blob/master/core/src/main/java/org/apache/cxf/common/util/ReflectionUtil.java

Cheers. Sergey
On 26/10/17 16:55, amccri...@apache.org wrote:

This is an automated email from the ASF dual-hosted git repository.

amccright pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/master by this push:
  new 294e7aa  Add doPrivs
294e7aa is described below

commit 294e7aa05790c6a5925accac99841b0a0ceee1ea
Author: Andy McCright 
AuthorDate: Wed Oct 25 15:54:15 2017 -0500

 Add doPrivs
---
  .../apache/cxf/jaxrs/model/BeanResourceInfo.java   | 34 --
  1 file changed, 32 insertions(+), 2 deletions(-)

diff --git 
a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/BeanResourceInfo.java
 
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/BeanResourceInfo.java
index 2f48fec..6134e9d 100644
--- 
a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/BeanResourceInfo.java
+++ 
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/BeanResourceInfo.java
@@ -17,11 +17,32 @@
   * under the License.
   */
  
+/**

+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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 org.apache.cxf.jaxrs.model;
  
  import java.lang.annotation.Annotation;

  import java.lang.reflect.Field;
  import java.lang.reflect.Method;
+import java.security.AccessController;
+import java.security.PrivilegedAction;
  import java.util.ArrayList;
  import java.util.Collections;
  import java.util.List;
@@ -59,7 +80,7 @@ public abstract class BeanResourceInfo extends 
AbstractResourceInfo {
  if (Object.class == cls || cls == null) {
  return;
  }
-for (Field f : cls.getDeclaredFields()) {
+for (Field f : getDeclaredFields(cls)) {
  for (Annotation a : f.getAnnotations()) {
  if 
(AnnotationUtils.isParamAnnotationClass(a.annotationType())) {
  if (paramFields == null) {
@@ -110,4 +131,13 @@ public abstract class BeanResourceInfo extends 
AbstractResourceInfo {
  return paramFields == null ? Collections.emptyList()
  : 
Collections.unmodifiableList(paramFields);
  }
-}
+
+private static Field[] getDeclaredFields(final Class cls) {
+return AccessController.doPrivileged(new PrivilegedAction() {
+
+@Override
+public Field[] run() {
+return cls.getDeclaredFields();
+} });
+}
+}
\ No newline at end of file



[GitHub] asfgit closed pull request #328: MBW for Spring Views

2017-10-26 Thread GitBox
asfgit closed pull request #328: MBW for Spring Views
URL: https://github.com/apache/cxf/pull/328
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/spring/Messages.properties
 
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/spring/Messages.properties
new file mode 100644
index 000..7dd277348d8
--- /dev/null
+++ 
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/spring/Messages.properties
@@ -0,0 +1,21 @@
+#
+#
+#Licensed to the Apache Software Foundation (ASF) under one
+#or more contributor license agreements. See the NOTICE file
+#distributed with this work for additional information
+#regarding copyright ownership. The ASF licenses this file
+#to you 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.
+#
+#
+RESPONSE_REDIRECTED_TO=Setting an instance of \"{0}\" as HttpServletRequest 
attribute \"{1}\" and redirecting the response to \"{2}\".
diff --git 
a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/spring/SpringViewResolverProvider.java
 
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/spring/SpringViewResolverProvider.java
new file mode 100644
index 000..8fa38cd0bea
--- /dev/null
+++ 
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/spring/SpringViewResolverProvider.java
@@ -0,0 +1,395 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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 org.apache.cxf.jaxrs.spring;
+
+import java.io.IOException;
+import java.io.OutputStream;
+import java.lang.annotation.Annotation;
+import java.lang.reflect.Type;
+import java.util.Collections;
+import java.util.Locale;
+import java.util.Map;
+import java.util.ResourceBundle;
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+import javax.servlet.RequestDispatcher;
+import javax.ws.rs.Produces;
+import javax.ws.rs.core.Context;
+import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.MultivaluedMap;
+import javax.ws.rs.ext.MessageBodyWriter;
+import javax.ws.rs.ext.Provider;
+
+import org.apache.cxf.common.i18n.BundleUtils;
+import org.apache.cxf.common.logging.LogUtils;
+import org.apache.cxf.common.util.StringUtils;
+import org.apache.cxf.jaxrs.ext.MessageContext;
+import org.apache.cxf.jaxrs.provider.AbstractConfigurableProvider;
+import org.apache.cxf.jaxrs.utils.ExceptionUtils;
+import org.apache.cxf.message.Message;
+import org.apache.cxf.phase.PhaseInterceptorChain;
+import org.apache.cxf.transport.http.AbstractHTTPDestination;
+import org.springframework.web.servlet.LocaleResolver;
+import org.springframework.web.servlet.View;
+import org.springframework.web.servlet.ViewResolver;
+
+/**
+ * CXF view provider that delegates view rendering to Spring MVC Views.
+ *
+ * Sample usage in a spring application:
+ * 
+ @Bean
+ public SpringViewResolverProvider springViewProvider(ViewResolver 
viewResolver) {
+ SpringViewResolverProvider viewProvider = new 
SpringViewResolverProvider(viewResolver,
+new AcceptHeaderLocaleResolver());
+ viewProvider.setUseClassNames(true);
+ viewProvider.setBeanName("model");
+ viewProvider.setResourcePaths(Collections.singletonMap("/remove", 
"registeredClients"));
+ return viewProvider;
+ }
+ * 
+ */
+@Produces("text/html")
+@Provider
+public class SpringViewResolverProvider extends AbstractConfigurableProvider 
implements MessageBodyWriter {
+
+private static final ResourceBundle BUNDLE = 
BundleUtils.getBundle(SpringViewResolverProvider.class);
+

[GitHub] gonzalad opened a new pull request #328: MBW for Spring Views

2017-10-26 Thread GitBox
gonzalad opened a new pull request #328: MBW for Spring Views
URL: https://github.com/apache/cxf/pull/328
 
 
   This SpringViewResolverProvider provides support for rendering spring views 
as text/html mediaTypes.
   
   Sample usage:
   
   ```
   @Bean
   public SpringViewResolverProvider springViewProvider(ViewResolver 
viewResolver) {
SpringViewResolverProvider viewProvider = new 
SpringViewResolverProvider(viewResolver,
new AcceptHeaderLocaleResolver());
viewProvider.setUseClassNames(true);
viewProvider.setBeanName("model");
viewProvider.setResourcePaths(Collections.singletonMap("/remove", 
"registeredClients"));
return viewProvider;
   }
   ```


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] chongma opened a new pull request #21: Update HowToGenerateKeysREADME.html

2017-10-26 Thread GitBox
chongma opened a new pull request #21: Update HowToGenerateKeysREADME.html
URL: https://github.com/apache/cxf-fediz/pull/21
 
 
   examples/samplekeys/ststrust.jks contains alias idpcert but this how to does 
not mention that it should be added


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services