eclipse-paho / eclipse-paho/paho.mqtt.java

Insufficient permissions lead to 'empty' MqttPersistenceException being thrown

Open
#434 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
2.3k
Forks
919
PR merge metrics
No merged PRs in 30d

Description

When I create a new MqttClient connection with MqttDefaultFilePersistence and the file and directory permissions are not set properly an empty MqttPersistenceException is thrown. No code, no message, nothing. This is IMHO bad design. It would be very nice if the exception would have a code or message or something so I can actually see what caused the error. I suggest more user friendly exception messages.

- [X] Bug exists Release Version 1.2.0 ( Master Branch)
- [?] Bug exists in Snapshot Version 1.2.1-SNAPSHOT (Develop Branch)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.