Y
If an organisation is compelled by law to make your personal data publically available, then you don’t have the right to be informed or any other rights, except those related to automated decision making. The exemption only applies in so far as meeting the legal requirement to disclose the information.
The organisation does not have to comply with the lawfulness, fairness and transparency principle, except the requirement for processing to be lawful, nor the purpose limitation principle.