View Issue Details

IDProjectCategoryView StatusLast Update
0010628Talermerchant backendpublic2025-11-18 17:46
Reportervecirex Assigned ToFlorian Dold  
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.

Activities

vecirex

2025-11-18 17:02

manager   ~0026521

Last edited: 2025-11-18 17:03

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

vecirex

2025-11-18 17:04

manager   ~0026522

fix category: exchange -> merchant backend

vecirex

2025-11-18 17:06

manager   ~0026523

fix typos

Christian Grothoff

2025-11-18 17: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 17:44

manager   ~0026528

Last edited: 2025-11-18 17: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 Modified Username Field Change
2025-11-18 16:57 vecirex New Issue
2025-11-18 16:57 vecirex Status new => assigned
2025-11-18 16:57 vecirex Assigned To => Florian Dold
2025-11-18 17:00 vecirex Steps to Reproduce Updated
2025-11-18 17:02 vecirex Description Updated
2025-11-18 17:02 vecirex Steps to Reproduce Updated
2025-11-18 17:02 vecirex Note Added: 0026521
2025-11-18 17:03 vecirex Note Edited: 0026521
2025-11-18 17:04 vecirex Category exchange => merchant backend
2025-11-18 17:04 vecirex Note Added: 0026522
2025-11-18 17:06 vecirex Steps to Reproduce Updated
2025-11-18 17:06 vecirex Note Added: 0026523
2025-11-18 17:24 Christian Grothoff Note Added: 0026525
2025-11-18 17:24 Christian Grothoff Status assigned => closed
2025-11-18 17:24 Christian Grothoff Resolution open => won't fix
2025-11-18 17:24 Christian Grothoff Product Version 1.2 => 1.0
2025-11-18 17:24 Christian Grothoff Fixed in Version => 1.2
2025-11-18 17:44 vecirex Note Added: 0026528
2025-11-18 17:46 vecirex Note Edited: 0026528