View Issue Details

IDProjectCategoryView StatusLast Update
0010628Talermerchant backendpublic2025-11-18 16:46
Reportervecirex Assigned ToFlorian Dold Resolution deadline
ImplementerReviewer 
Release signed byDeployed by 
VerifierCommunicator 
Data protection authority notification requiredNo  
CSIRT notification requiredNo  
Estimated effort (hours)Actual effort (hours)0 
Fast-trackNo
Work packagenone
PrioritynormalSeveritytweakReproducibilityalways
Status closedResolutionwon't fix 
Product Version1.0 
Target Version1.2Fixed in Version1.2 
Summary0010628: Merchant config: options for sections ENABLED=NO vs. DISABLED=YES / ENABLED=YES vs. DISABLED=NO -- make uniform?
DescriptionIt looks like non-intentional, but the way only way to switch off taler-merchant's default KUDOS exchange without deleting default config incudes like
kudos.conf
from
/usr/share/taler-merchant/config.d
or messing around with system merchant config files organizing those includes, seems to be using the option
DISABLED=YES

in the respective section, as I learned from @sebasjm: ty!

On the other hand, the currency can be switched off by
ENABLED=NO

To not break existing configurations, both options could be supported, as long as the cases
DISABLED=NO
ENABLED=NO

and
DISABLED=YES
ENABLED=YES

in the sections yield an error, or just making that the engagement of both of those options in a given context yield an error stating one should make a decision to use just one of the two per section.
Steps To ReproduceAn easy test is to try to use
ENABLED = NO

to swtich off the KUDOS exchange.

Working config excerpt of
merchant-overrides.conf
used on https://taler.hacktivism.ch/ looks like this:
[taler]
CURRENCY = CHF

### Disable default exchange
[merchant-exchange-kudos]
DISABLED = YES

### Disable default currency
[currency-KUDOS]
ENABLED = NO

[merchant]
CURRENCY = CHF
DATABASE = postgres
[...]

Changing the config to look like the following, with
ENABLED = NO
in the section
[merchant-exchange-kudos]

that is, looking uniform as in this excerpt
[taler]
CURRENCY = CHF

### Disable default exchange
[merchant-exchange-kudos]
ENABLED = NO

### Disable default currency
[currency-KUDOS]
ENABLED = NO

[merchant]
CURRENCY = CHF
DATABASE = postgres
[...]

has no effect for the exchange and let's it appear again, as can be queried by https://taler.hacktivism.ch/config or any other site at its /config location.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

vecirex

2025-11-18 16:02

administrator   ~0026521

Last edited: 2025-11-18 16:03

beautify: remove unnecessary whitespaces [working only partly...]

vecirex

2025-11-18 16:04

administrator   ~0026522

fix category: exchange -> merchant backend

vecirex

2025-11-18 16:06

administrator   ~0026523

fix typos

Christian Grothoff

2025-11-18 16:24

manager   ~0026525

No, making this uniform would break compatibility, allowing both enables inconsistencies, like when you set both ENABLED and DISABLED.
Also, the reason for the non-uniformity is that the default is that the option is not given at all, and in some cases we then default to ENABLED while in others we default to DISABLED. Changing this now will cause major breakage, so I'm against changing it.

vecirex

2025-11-18 16:44

administrator   ~0026528

Last edited: 2025-11-18 16:46

OK, the title doesn't match description, as in the latter see: " To not break existing configurations, both options could be supported, as long as the cases [...]".

In any case, a docu section on switching off default exchanges and default currencies is needed here for -- at least -- production environments, as I lost time with this, so others would most likely, too; people might also start to delete system-wide installed files, or alter other config include files including those, while none of them are meant to be changed by operators; this could then make upgrades shaky -> more support time to be used:

I just opened a separate ticket (0010629), for the docu on this at least; to go here:

https://docs.taler.net/taler-merchant-manual.html

Issue History

Date ModifiedUsernameFieldChange
2025-11-18 15:57vecirexNew Issue
2025-11-18 15:57vecirexStatusnew => assigned
2025-11-18 15:57vecirexAssigned To => Florian Dold
2025-11-18 16:00vecirexSteps to Reproduce Updated
2025-11-18 16:02vecirexDescription Updated
2025-11-18 16:02vecirexSteps to Reproduce Updated
2025-11-18 16:02vecirexNote Added: 0026521
2025-11-18 16:03vecirexNote Edited: 0026521
2025-11-18 16:04vecirexCategoryexchange => merchant backend
2025-11-18 16:04vecirexNote Added: 0026522
2025-11-18 16:06vecirexSteps to Reproduce Updated
2025-11-18 16:06vecirexNote Added: 0026523
2025-11-18 16:24Christian GrothoffNote Added: 0026525
2025-11-18 16:24Christian GrothoffStatusassigned => closed
2025-11-18 16:24Christian GrothoffResolutionopen => won't fix
2025-11-18 16:24Christian GrothoffProduct Version1.2 => 1.0
2025-11-18 16:24Christian GrothoffFixed in Version => 1.2
2025-11-18 16:44vecirexNote Added: 0026528
2025-11-18 16:46vecirexNote Edited: 0026528