You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Dennis Kieselhorst (JIRA)" <ji...@apache.org> on 2008/06/05 16:57:45 UTC

[jira] Created: (CXF-1633) http conduit authorization not applied in spring configuration with simple:client

http conduit authorization not applied in spring configuration with simple:client
---------------------------------------------------------------------------------

                 Key: CXF-1633
                 URL: https://issues.apache.org/jira/browse/CXF-1633
             Project: CXF
          Issue Type: Bug
          Components: Configuration
    Affects Versions: 2.1
         Environment: Tomcat 6, JDK 1.5
            Reporter: Dennis Kieselhorst
            Priority: Critical


Similar to issue CXF-922. 

Spring configuration with simple:client:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:simple="http://cxf.apache.org/simple"
      xmlns:sec="http://cxf.apache.org/configuration/security"
      xmlns:http="http://cxf.apache.org/transports/http/configuration"
      xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
  http://cxf.apache.org/simple http://cxf.apache.org/schemas/simple.xsd
  http://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd
  http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd">

  <simple:client id="cxf-client"
  	address="http://localhost:8080/webservices/MyService"
  	serviceClass="de.my.service.MyService">
  	<simple:dataBinding>
  		<bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
  	</simple:dataBinding>
  </simple:client>

  <http:conduit name="{http://service.my.de/}MyServicePort.http-conduit">
  	<http:authorization>
  		<sec:UserName>myTestuser</sec:UserName>
  		<sec:Password>myTestpassword</sec:Password>
  	</http:authorization>
  </http:conduit>
</beans>

Also tried the wildcard solution explained here - http://cwiki.apache.org/CXF20DOC/client-http-transport-including-ssl-support.html:
  <http:conduit name="*.http-conduit">
  	<http:authorization>
  		<sec:UserName>myTestuser</sec:UserName>
  		<sec:Password>myTestpassword</sec:Password>
  	</http:authorization>
  </http:conduit>

AuthorizationPolicy exists, but userName and password are null (see screenshot).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CXF-1633) http conduit authorization not applied in spring configuration with simple:client

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12603646#action_12603646 ] 

Daniel Kulp commented on CXF-1633:
----------------------------------


Any chance of getting a small project that shows this?

This actually might be fixed with the latest 2.1 snapshots.  The most common case of this is the wrong bus is being grabbed.  The snapshots handle injecting the bus differently so it may work better.





> http conduit authorization not applied in spring configuration with simple:client
> ---------------------------------------------------------------------------------
>
>                 Key: CXF-1633
>                 URL: https://issues.apache.org/jira/browse/CXF-1633
>             Project: CXF
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 2.1
>         Environment: Tomcat 6, JDK 1.5
>            Reporter: Dennis Kieselhorst
>            Priority: Critical
>         Attachments: Debugger screenshot.jpg
>
>
> Similar to issue CXF-922. 
> Spring configuration with simple:client:
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>       xmlns:simple="http://cxf.apache.org/simple"
>       xmlns:sec="http://cxf.apache.org/configuration/security"
>       xmlns:http="http://cxf.apache.org/transports/http/configuration"
>       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
>   http://cxf.apache.org/simple http://cxf.apache.org/schemas/simple.xsd
>   http://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd
>   http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd">
>   <simple:client id="cxf-client"
>   	address="http://localhost:8080/webservices/MyService"
>   	serviceClass="de.my.service.MyService">
>   	<simple:dataBinding>
>   		<bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
>   	</simple:dataBinding>
>   </simple:client>
>   <http:conduit name="{http://service.my.de/}MyServicePort.http-conduit">
>   	<http:authorization>
>   		<sec:UserName>myTestuser</sec:UserName>
>   		<sec:Password>myTestpassword</sec:Password>
>   	</http:authorization>
>   </http:conduit>
> </beans>
> Also tried the wildcard solution explained here - http://cwiki.apache.org/CXF20DOC/client-http-transport-including-ssl-support.html:
>   <http:conduit name="*.http-conduit">
>   	<http:authorization>
>   		<sec:UserName>myTestuser</sec:UserName>
>   		<sec:Password>myTestpassword</sec:Password>
>   	</http:authorization>
>   </http:conduit>
> AuthorizationPolicy exists, but userName and password are null (see screenshot).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CXF-1633) http conduit authorization not applied in spring configuration with simple:client

Posted by "Dennis Kieselhorst (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12603894#action_12603894 ] 

Dennis Kieselhorst commented on CXF-1633:
-----------------------------------------

Didn't work with latest snapshot either. Will upload a testcase asap.

> http conduit authorization not applied in spring configuration with simple:client
> ---------------------------------------------------------------------------------
>
>                 Key: CXF-1633
>                 URL: https://issues.apache.org/jira/browse/CXF-1633
>             Project: CXF
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 2.1
>         Environment: Tomcat 6, JDK 1.5
>            Reporter: Dennis Kieselhorst
>            Priority: Critical
>         Attachments: Debugger screenshot.jpg
>
>
> Similar to issue CXF-922. 
> Spring configuration with simple:client:
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>       xmlns:simple="http://cxf.apache.org/simple"
>       xmlns:sec="http://cxf.apache.org/configuration/security"
>       xmlns:http="http://cxf.apache.org/transports/http/configuration"
>       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
>   http://cxf.apache.org/simple http://cxf.apache.org/schemas/simple.xsd
>   http://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd
>   http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd">
>   <simple:client id="cxf-client"
>   	address="http://localhost:8080/webservices/MyService"
>   	serviceClass="de.my.service.MyService">
>   	<simple:dataBinding>
>   		<bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
>   	</simple:dataBinding>
>   </simple:client>
>   <http:conduit name="{http://service.my.de/}MyServicePort.http-conduit">
>   	<http:authorization>
>   		<sec:UserName>myTestuser</sec:UserName>
>   		<sec:Password>myTestpassword</sec:Password>
>   	</http:authorization>
>   </http:conduit>
> </beans>
> Also tried the wildcard solution explained here - http://cwiki.apache.org/CXF20DOC/client-http-transport-including-ssl-support.html:
>   <http:conduit name="*.http-conduit">
>   	<http:authorization>
>   		<sec:UserName>myTestuser</sec:UserName>
>   		<sec:Password>myTestpassword</sec:Password>
>   	</http:authorization>
>   </http:conduit>
> AuthorizationPolicy exists, but userName and password are null (see screenshot).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CXF-1633) http conduit authorization not applied in spring configuration with simple:client

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604635#action_12604635 ] 

Daniel Kulp commented on CXF-1633:
----------------------------------


If you create your own spring context like the client does, you need to import the required CXF stuff into it.   Otherwise, the CXF runtime will create a "default" context/runtime under the covers to load all of its extensions.   In your case, if you add:

	<import resource="classpath:META-INF/cxf/cxf.xml" />
	<import resource="classpath:META-INF/cxf/cxf-extension-http.xml" />
	<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />

to your client.xml, the testcase runs fine.





> http conduit authorization not applied in spring configuration with simple:client
> ---------------------------------------------------------------------------------
>
>                 Key: CXF-1633
>                 URL: https://issues.apache.org/jira/browse/CXF-1633
>             Project: CXF
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 2.1
>         Environment: Tomcat 6, JDK 1.5
>            Reporter: Dennis Kieselhorst
>            Priority: Critical
>         Attachments: cxf-testclient-1.0.0-SNAPSHOT-project.zip, cxf-testserver-1.0.0-SNAPSHOT-project.zip, Debugger screenshot.jpg
>
>
> Similar to issue CXF-922. 
> Spring configuration with simple:client:
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>       xmlns:simple="http://cxf.apache.org/simple"
>       xmlns:sec="http://cxf.apache.org/configuration/security"
>       xmlns:http="http://cxf.apache.org/transports/http/configuration"
>       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
>   http://cxf.apache.org/simple http://cxf.apache.org/schemas/simple.xsd
>   http://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd
>   http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd">
>   <simple:client id="cxf-client"
>   	address="http://localhost:8080/webservices/MyService"
>   	serviceClass="de.my.service.MyService">
>   	<simple:dataBinding>
>   		<bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
>   	</simple:dataBinding>
>   </simple:client>
>   <http:conduit name="{http://service.my.de/}MyServicePort.http-conduit">
>   	<http:authorization>
>   		<sec:UserName>myTestuser</sec:UserName>
>   		<sec:Password>myTestpassword</sec:Password>
>   	</http:authorization>
>   </http:conduit>
> </beans>
> Also tried the wildcard solution explained here - http://cwiki.apache.org/CXF20DOC/client-http-transport-including-ssl-support.html:
>   <http:conduit name="*.http-conduit">
>   	<http:authorization>
>   		<sec:UserName>myTestuser</sec:UserName>
>   		<sec:Password>myTestpassword</sec:Password>
>   	</http:authorization>
>   </http:conduit>
> AuthorizationPolicy exists, but userName and password are null (see screenshot).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CXF-1633) http conduit authorization not applied in spring configuration with simple:client

Posted by "Dennis Kieselhorst (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1633?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Kieselhorst updated CXF-1633:
------------------------------------

    Attachment: cxf-testclient-1.0.0-SNAPSHOT-project.zip

Use the TestClient class to access the testserver.

> http conduit authorization not applied in spring configuration with simple:client
> ---------------------------------------------------------------------------------
>
>                 Key: CXF-1633
>                 URL: https://issues.apache.org/jira/browse/CXF-1633
>             Project: CXF
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 2.1
>         Environment: Tomcat 6, JDK 1.5
>            Reporter: Dennis Kieselhorst
>            Priority: Critical
>         Attachments: cxf-testclient-1.0.0-SNAPSHOT-project.zip, cxf-testserver-1.0.0-SNAPSHOT-project.zip, Debugger screenshot.jpg
>
>
> Similar to issue CXF-922. 
> Spring configuration with simple:client:
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>       xmlns:simple="http://cxf.apache.org/simple"
>       xmlns:sec="http://cxf.apache.org/configuration/security"
>       xmlns:http="http://cxf.apache.org/transports/http/configuration"
>       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
>   http://cxf.apache.org/simple http://cxf.apache.org/schemas/simple.xsd
>   http://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd
>   http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd">
>   <simple:client id="cxf-client"
>   	address="http://localhost:8080/webservices/MyService"
>   	serviceClass="de.my.service.MyService">
>   	<simple:dataBinding>
>   		<bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
>   	</simple:dataBinding>
>   </simple:client>
>   <http:conduit name="{http://service.my.de/}MyServicePort.http-conduit">
>   	<http:authorization>
>   		<sec:UserName>myTestuser</sec:UserName>
>   		<sec:Password>myTestpassword</sec:Password>
>   	</http:authorization>
>   </http:conduit>
> </beans>
> Also tried the wildcard solution explained here - http://cwiki.apache.org/CXF20DOC/client-http-transport-including-ssl-support.html:
>   <http:conduit name="*.http-conduit">
>   	<http:authorization>
>   		<sec:UserName>myTestuser</sec:UserName>
>   		<sec:Password>myTestpassword</sec:Password>
>   	</http:authorization>
>   </http:conduit>
> AuthorizationPolicy exists, but userName and password are null (see screenshot).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CXF-1633) http conduit authorization not applied in spring configuration with simple:client

Posted by "Dennis Kieselhorst (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1633?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Kieselhorst updated CXF-1633:
------------------------------------

    Attachment: Debugger screenshot.jpg

> http conduit authorization not applied in spring configuration with simple:client
> ---------------------------------------------------------------------------------
>
>                 Key: CXF-1633
>                 URL: https://issues.apache.org/jira/browse/CXF-1633
>             Project: CXF
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 2.1
>         Environment: Tomcat 6, JDK 1.5
>            Reporter: Dennis Kieselhorst
>            Priority: Critical
>         Attachments: Debugger screenshot.jpg
>
>
> Similar to issue CXF-922. 
> Spring configuration with simple:client:
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>       xmlns:simple="http://cxf.apache.org/simple"
>       xmlns:sec="http://cxf.apache.org/configuration/security"
>       xmlns:http="http://cxf.apache.org/transports/http/configuration"
>       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
>   http://cxf.apache.org/simple http://cxf.apache.org/schemas/simple.xsd
>   http://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd
>   http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd">
>   <simple:client id="cxf-client"
>   	address="http://localhost:8080/webservices/MyService"
>   	serviceClass="de.my.service.MyService">
>   	<simple:dataBinding>
>   		<bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
>   	</simple:dataBinding>
>   </simple:client>
>   <http:conduit name="{http://service.my.de/}MyServicePort.http-conduit">
>   	<http:authorization>
>   		<sec:UserName>myTestuser</sec:UserName>
>   		<sec:Password>myTestpassword</sec:Password>
>   	</http:authorization>
>   </http:conduit>
> </beans>
> Also tried the wildcard solution explained here - http://cwiki.apache.org/CXF20DOC/client-http-transport-including-ssl-support.html:
>   <http:conduit name="*.http-conduit">
>   	<http:authorization>
>   		<sec:UserName>myTestuser</sec:UserName>
>   		<sec:Password>myTestpassword</sec:Password>
>   	</http:authorization>
>   </http:conduit>
> AuthorizationPolicy exists, but userName and password are null (see screenshot).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CXF-1633) http conduit authorization not applied in spring configuration with simple:client

Posted by "Dennis Kieselhorst (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1633?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Kieselhorst updated CXF-1633:
------------------------------------

    Attachment: cxf-testserver-1.0.0-SNAPSHOT-project.zip

Launch this testserver with mvn jetty:run

> http conduit authorization not applied in spring configuration with simple:client
> ---------------------------------------------------------------------------------
>
>                 Key: CXF-1633
>                 URL: https://issues.apache.org/jira/browse/CXF-1633
>             Project: CXF
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 2.1
>         Environment: Tomcat 6, JDK 1.5
>            Reporter: Dennis Kieselhorst
>            Priority: Critical
>         Attachments: cxf-testserver-1.0.0-SNAPSHOT-project.zip, Debugger screenshot.jpg
>
>
> Similar to issue CXF-922. 
> Spring configuration with simple:client:
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>       xmlns:simple="http://cxf.apache.org/simple"
>       xmlns:sec="http://cxf.apache.org/configuration/security"
>       xmlns:http="http://cxf.apache.org/transports/http/configuration"
>       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
>   http://cxf.apache.org/simple http://cxf.apache.org/schemas/simple.xsd
>   http://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd
>   http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd">
>   <simple:client id="cxf-client"
>   	address="http://localhost:8080/webservices/MyService"
>   	serviceClass="de.my.service.MyService">
>   	<simple:dataBinding>
>   		<bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
>   	</simple:dataBinding>
>   </simple:client>
>   <http:conduit name="{http://service.my.de/}MyServicePort.http-conduit">
>   	<http:authorization>
>   		<sec:UserName>myTestuser</sec:UserName>
>   		<sec:Password>myTestpassword</sec:Password>
>   	</http:authorization>
>   </http:conduit>
> </beans>
> Also tried the wildcard solution explained here - http://cwiki.apache.org/CXF20DOC/client-http-transport-including-ssl-support.html:
>   <http:conduit name="*.http-conduit">
>   	<http:authorization>
>   		<sec:UserName>myTestuser</sec:UserName>
>   		<sec:Password>myTestpassword</sec:Password>
>   	</http:authorization>
>   </http:conduit>
> AuthorizationPolicy exists, but userName and password are null (see screenshot).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CXF-1633) http conduit authorization not applied in spring configuration with simple:client

Posted by "Dennis Kieselhorst (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12603658#action_12603658 ] 

Dennis Kieselhorst commented on CXF-1633:
-----------------------------------------

Ok, I will try it with 2.1.1-SNAPSHOT from http://people.apache.org/repo/m2-snapshot-repository/org/apache/cxf/ tomorrow.

If I don't suceed, I will create a small testcase runnable with jetty and a sample client.

> http conduit authorization not applied in spring configuration with simple:client
> ---------------------------------------------------------------------------------
>
>                 Key: CXF-1633
>                 URL: https://issues.apache.org/jira/browse/CXF-1633
>             Project: CXF
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 2.1
>         Environment: Tomcat 6, JDK 1.5
>            Reporter: Dennis Kieselhorst
>            Priority: Critical
>         Attachments: Debugger screenshot.jpg
>
>
> Similar to issue CXF-922. 
> Spring configuration with simple:client:
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>       xmlns:simple="http://cxf.apache.org/simple"
>       xmlns:sec="http://cxf.apache.org/configuration/security"
>       xmlns:http="http://cxf.apache.org/transports/http/configuration"
>       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
>   http://cxf.apache.org/simple http://cxf.apache.org/schemas/simple.xsd
>   http://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd
>   http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd">
>   <simple:client id="cxf-client"
>   	address="http://localhost:8080/webservices/MyService"
>   	serviceClass="de.my.service.MyService">
>   	<simple:dataBinding>
>   		<bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
>   	</simple:dataBinding>
>   </simple:client>
>   <http:conduit name="{http://service.my.de/}MyServicePort.http-conduit">
>   	<http:authorization>
>   		<sec:UserName>myTestuser</sec:UserName>
>   		<sec:Password>myTestpassword</sec:Password>
>   	</http:authorization>
>   </http:conduit>
> </beans>
> Also tried the wildcard solution explained here - http://cwiki.apache.org/CXF20DOC/client-http-transport-including-ssl-support.html:
>   <http:conduit name="*.http-conduit">
>   	<http:authorization>
>   		<sec:UserName>myTestuser</sec:UserName>
>   		<sec:Password>myTestpassword</sec:Password>
>   	</http:authorization>
>   </http:conduit>
> AuthorizationPolicy exists, but userName and password are null (see screenshot).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CXF-1633) http conduit authorization not applied in spring configuration with simple:client

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1633?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-1633.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.7
                   2.1.1
         Assignee: Daniel Kulp


Fix put in place to allow either style to work.   Using the imports is preferred (and performs better), but the other form now works.

> http conduit authorization not applied in spring configuration with simple:client
> ---------------------------------------------------------------------------------
>
>                 Key: CXF-1633
>                 URL: https://issues.apache.org/jira/browse/CXF-1633
>             Project: CXF
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 2.1
>         Environment: Tomcat 6, JDK 1.5
>            Reporter: Dennis Kieselhorst
>            Assignee: Daniel Kulp
>            Priority: Critical
>             Fix For: 2.1.1, 2.0.7
>
>         Attachments: cxf-testclient-1.0.0-SNAPSHOT-project.zip, cxf-testserver-1.0.0-SNAPSHOT-project.zip, Debugger screenshot.jpg
>
>
> Similar to issue CXF-922. 
> Spring configuration with simple:client:
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>       xmlns:simple="http://cxf.apache.org/simple"
>       xmlns:sec="http://cxf.apache.org/configuration/security"
>       xmlns:http="http://cxf.apache.org/transports/http/configuration"
>       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
>   http://cxf.apache.org/simple http://cxf.apache.org/schemas/simple.xsd
>   http://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd
>   http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd">
>   <simple:client id="cxf-client"
>   	address="http://localhost:8080/webservices/MyService"
>   	serviceClass="de.my.service.MyService">
>   	<simple:dataBinding>
>   		<bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
>   	</simple:dataBinding>
>   </simple:client>
>   <http:conduit name="{http://service.my.de/}MyServicePort.http-conduit">
>   	<http:authorization>
>   		<sec:UserName>myTestuser</sec:UserName>
>   		<sec:Password>myTestpassword</sec:Password>
>   	</http:authorization>
>   </http:conduit>
> </beans>
> Also tried the wildcard solution explained here - http://cwiki.apache.org/CXF20DOC/client-http-transport-including-ssl-support.html:
>   <http:conduit name="*.http-conduit">
>   	<http:authorization>
>   		<sec:UserName>myTestuser</sec:UserName>
>   		<sec:Password>myTestpassword</sec:Password>
>   	</http:authorization>
>   </http:conduit>
> AuthorizationPolicy exists, but userName and password are null (see screenshot).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.