View Issue Details

IDProjectCategoryView StatusLast Update
0002476GNUnettesting librarypublic2012-11-05 18:34
ReporterMatthias Wachs Assigned ToSree Harsha Totakura  
PrioritynormalSeveritymajorReproducibilityhave not tried
Status closedResolutionfixed 
Product VersionGit master 
Target Version0.9.4Fixed in Version0.9.4 
Summary0002476: GNUNET_TESTING_configuration_create sets ACCEPT_FROM to "127.0.0.1;" for transport plugins
Descriptionupdate_config_sections sets ACCEPT_FROM by default to "127.0.0.1;" if no other value is given.

This breaks tcp plugin, since the tcp plugin needs to accept connections from anywhere
This especially breaks tcp_nat tests

Please think about the possibilites:
- set default to "global"
- skip transport plugins
TagsNo tags attached.

Activities

Christian Grothoff

2012-07-02 19:11

manager   ~0006190

mwachs hacked up a version to 'skip' transport plugins. That works, not sure if it is the cleanest version I can think of...

I think it would be better if, by default (TRUSTED option not given/NULL), we should simply NOT set the option and stick to defaults -- which restrict to loopback for services and are unrestricted for transport plugins.

Sree Harsha Totakura

2012-07-02 23:50

updater   ~0006194

fixed it by introducing a new testing-specific option TESTING_IGNORE_KEYS. This option takes multiple keys separated by ';' as value.
e.g:
[transport-tcp]
TESTING_IGNORE_KEYS = ACCEPT_FROM;PORT;ADVERTISED_PORT;

The testing library checks this value for keys to ignore. For now, it has been programmed not to modify ACCEPT_FROM in a section if the section has ACCEPT_FROM present in its TESTING_IGNORE_KEYS option.

Matthias Wachs

2012-07-03 10:28

reporter   ~0006195

Hmmm I read the solution https://gnunet.org/bugs/view.php?id=2476#c6194

I don't know if I like the solution that the [transport-*] section contain settings for the testing lib.

Is it perhaps better to include an option in the [testing] section which config sections should not be modified like:

SKIPSECTIONS = transport-*

But then we have to add every new plugin...

If we have an option which section should be explicitly modified we have to add each new service ...

MODIFYSECTIONS = arm,core,dht, ... newservice

Just my few cents...

Issue History

Date Modified Username Field Change
2012-07-02 16:33 Matthias Wachs New Issue
2012-07-02 16:33 Matthias Wachs Status new => assigned
2012-07-02 16:33 Matthias Wachs Assigned To => Sree Harsha Totakura
2012-07-02 16:33 Matthias Wachs Severity minor => major
2012-07-02 16:33 Matthias Wachs Product Version => Git master
2012-07-02 19:11 Christian Grothoff Note Added: 0006190
2012-07-02 23:50 Sree Harsha Totakura Note Added: 0006194
2012-07-02 23:50 Sree Harsha Totakura Status assigned => resolved
2012-07-02 23:50 Sree Harsha Totakura Fixed in Version => 0.9.4
2012-07-02 23:50 Sree Harsha Totakura Resolution open => fixed
2012-07-03 10:28 Matthias Wachs Note Added: 0006195
2012-07-04 19:55 Christian Grothoff Target Version => 0.9.4
2012-11-05 18:34 Christian Grothoff Status resolved => closed