python-qpid-proton 0.37.0 on Linux: no user sent for auth to Artemis

2024-01-22 Thread Richard Sylvain
Hi all

I don't have the same behavior between python-qpid-proton under Linux and WIN10.

I'm trying to authenticate with a user "access1" to send messages on an 
exampleQueue.

With the same configuration, it works under WIN10 but not under Linux.

etc/login.config
activemq {
   org.apache.activemq.artemis.spi.core.security.jaas.PropertiesLoginModule 
required
   debug=true
   reload=true
   org.apache.activemq.jaas.properties.user="artemis-users.properties"
   org.apache.activemq.jaas.properties.role="artemis-roles.properties";
};

With artemis CLI (using java) it's works for both OS.
./artemis producer --url amqp://localhost:5676 --destination exampleQueue 
--user access1 --password access1 --message "salut" --protocol amqp 
--message-count 4  --clientID sender1 --verboseExecuting 
org.apache.activemq.artemis.cli.commands.messages.Producer producer --url 
amqp://localhost:5676 --destination exampleQueue --user access1 --password 
access1 --message salut --protocol amqp --message-count 4 --clientID sender1 
--verbose
Home::/opt/apache-artemis-2.31.2,


# Version client and Artemis broker
Linux (repo amq-clients-2-for-rhel-8-x86_64-rpms ;yum install 
python3-qpid-proton)
python-qpid-proton (0.37.0)   -->  broker apache-artemis-2.31.2

Windows10 (pip install)
python-qpid-proton-0.39.0.tar.gz -->  broker apache-artemis-2.31.2


My python test
urlh="localhost:5672"
cur_address="exampleQueue"
# To connect with a user and password:
cur_conn = event.container.connect(urlh, user="access1", 
password="access1")

See the log on Linux with the python code (sender).
2024-01-22 14:01:50,864 INFO  
[org.apache.activemq.artemis.core.server.plugin.impl] AMQ841000: created 
connection: 
org.apache.activemq.artemis.protocol.amqp.broker.ActiveMQProtonRemotingConnection@1fc3c919
2024-01-22 14:01:50,911 INFO  
[org.apache.activemq.artemis.core.server.plugin.impl] AMQ841010: routed message 
with ID: 427, result: NO_BINDINGS
2024-01-22 14:01:50,921 WARN  [org.apache.activemq.artemis.core.server] 
AMQ16: Security problem while authenticating: AMQ229031: Unable to validate 
user from /127.0.0.1:57226. Username: null; SSL certificate subject DN: 
unavailable
2024-01-22 14:01:50,935 INFO  
[org.apache.activemq.artemis.core.server.plugin.impl] AMQ841001: destroyed 
connection: 
org.apache.activemq.artemis.protocol.amqp.broker.ActiveMQProtonRemotingConnection@1fc3c919

On Linux, the user is not sent to Artemis broker.
On WIN10, the user/password is sent correctly.

Do you have an idea?




[jira] [Resolved] (QPID-8663) [Broker-J] Deprecate AESKeyFileEncrypter

2024-01-22 Thread Tomas Vavricka (Jira)


 [ 
https://issues.apache.org/jira/browse/QPID-8663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tomas Vavricka resolved QPID-8663.
--
Resolution: Implemented

> [Broker-J] Deprecate AESKeyFileEncrypter
> 
>
> Key: QPID-8663
> URL: https://issues.apache.org/jira/browse/QPID-8663
> Project: Qpid
>  Issue Type: Improvement
>  Components: Broker-J
>Affects Versions: qpid-java-broker-9.1.0
>Reporter: Daniil Kirilyuk
>Priority: Minor
> Fix For: qpid-java-broker-9.1.1
>
>
> AESKeyFileEncrypter should be marked as deprecated in favor of 
> AESGCMKeyFileEncrypter, documentation should be updated to discourage usage 
> of AESKeyFile-based configuration encryption.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Resolved] (QPID-8659) [Broker-J] Unit tests in QuerySettingsTest fail under some circumstances

2024-01-22 Thread Tomas Vavricka (Jira)


 [ 
https://issues.apache.org/jira/browse/QPID-8659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tomas Vavricka resolved QPID-8659.
--
Resolution: Fixed

> [Broker-J] Unit tests in QuerySettingsTest fail under some circumstances
> 
>
> Key: QPID-8659
> URL: https://issues.apache.org/jira/browse/QPID-8659
> Project: Qpid
>  Issue Type: Bug
>  Components: Broker-J
>Affects Versions: qpid-java-broker-9.1.0
>Reporter: Daniil Kirilyuk
>Priority: Minor
> Fix For: qpid-java-broker-9.1.1
>
>
> Under some circumstance unit tests in QuerySettingsTest fail.
> Stacktrace:
> {code:java}
> [ERROR]
> org.apache.qpid.server.query.engine.parsing.query.QuerySettingsTest.customizeZoneIdViaQueryEngine
> -- Time elapsed: 0.007 s <<< FAILURE!
> org.opentest4j.AssertionFailedError: expected:  but was: 
>     at
> org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
>     at
> org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
>     at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63)
>     at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36)
>     at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:31)
>     at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:179)
>     at
> org.apache.qpid.server.query.engine.parsing.query.QuerySettingsTest.customizeZoneIdViaQueryEngine(QuerySettingsTest.java:278)
>     at java.base/java.lang.reflect.Method.invoke(Method.java:568)
>     at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
>     at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (QPID-8659) [Broker-J] Unit tests in QuerySettingsTest fail under some circumstances

2024-01-22 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/QPID-8659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17809295#comment-17809295
 ] 

ASF GitHub Bot commented on QPID-8659:
--

vavrtom merged PR #232:
URL: https://github.com/apache/qpid-broker-j/pull/232




> [Broker-J] Unit tests in QuerySettingsTest fail under some circumstances
> 
>
> Key: QPID-8659
> URL: https://issues.apache.org/jira/browse/QPID-8659
> Project: Qpid
>  Issue Type: Bug
>  Components: Broker-J
>Affects Versions: qpid-java-broker-9.1.0
>Reporter: Daniil Kirilyuk
>Priority: Minor
> Fix For: qpid-java-broker-9.1.1
>
>
> Under some circumstance unit tests in QuerySettingsTest fail.
> Stacktrace:
> {code:java}
> [ERROR]
> org.apache.qpid.server.query.engine.parsing.query.QuerySettingsTest.customizeZoneIdViaQueryEngine
> -- Time elapsed: 0.007 s <<< FAILURE!
> org.opentest4j.AssertionFailedError: expected:  but was: 
>     at
> org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
>     at
> org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
>     at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63)
>     at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36)
>     at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:31)
>     at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:179)
>     at
> org.apache.qpid.server.query.engine.parsing.query.QuerySettingsTest.customizeZoneIdViaQueryEngine(QuerySettingsTest.java:278)
>     at java.base/java.lang.reflect.Method.invoke(Method.java:568)
>     at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
>     at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (QPID-8659) [Broker-J] Unit tests in QuerySettingsTest fail under some circumstances

2024-01-22 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/QPID-8659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17809296#comment-17809296
 ] 

ASF subversion and git services commented on QPID-8659:
---

Commit 40c2d096acb74b02b269a287ac4e4ae48d57e976 in qpid-broker-j's branch 
refs/heads/main from Daniil Kirilyuk
[ https://gitbox.apache.org/repos/asf?p=qpid-broker-j.git;h=40c2d096ac ]

QPID-8659: [Broker-J] Unit tests in QuerySettingsTest fail under some 
circumstances (#232)



> [Broker-J] Unit tests in QuerySettingsTest fail under some circumstances
> 
>
> Key: QPID-8659
> URL: https://issues.apache.org/jira/browse/QPID-8659
> Project: Qpid
>  Issue Type: Bug
>  Components: Broker-J
>Affects Versions: qpid-java-broker-9.1.0
>Reporter: Daniil Kirilyuk
>Priority: Minor
> Fix For: qpid-java-broker-9.1.1
>
>
> Under some circumstance unit tests in QuerySettingsTest fail.
> Stacktrace:
> {code:java}
> [ERROR]
> org.apache.qpid.server.query.engine.parsing.query.QuerySettingsTest.customizeZoneIdViaQueryEngine
> -- Time elapsed: 0.007 s <<< FAILURE!
> org.opentest4j.AssertionFailedError: expected:  but was: 
>     at
> org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
>     at
> org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
>     at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63)
>     at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36)
>     at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:31)
>     at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:179)
>     at
> org.apache.qpid.server.query.engine.parsing.query.QuerySettingsTest.customizeZoneIdViaQueryEngine(QuerySettingsTest.java:278)
>     at java.base/java.lang.reflect.Method.invoke(Method.java:568)
>     at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
>     at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



Re: [PR] QPID-8659: [Broker-J] Unit tests in QuerySettingsTest fail under some circumstances [qpid-broker-j]

2024-01-22 Thread via GitHub


vavrtom merged PR #232:
URL: https://github.com/apache/qpid-broker-j/pull/232


-- 
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...@qpid.apache.org

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


-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org