Project

General

Profile

Actions

Bug #15178

closed

Deleting a technique in the technique editor just after its creation fails

Added by Alexis Mousset almost 5 years ago. Updated almost 2 years ago.

Status:
Released
Priority:
N/A
Category:
Web - Technique editor
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Getting started - demo | first install | Technique editor and level 1 Techniques
Effort required:
Very Small
Priority:
82
Name check:
Reviewed
Fix check:
Checked
Regression:

Description

It fails with:

Cause: [Errno 2] No such file or directory: '/var/rudder/configuration-repository/ncf/50_techniques/undefined'
Traceback (most recent call last):
  File "/usr/share/ncf/api/ncf_api_flask_app/views.py", line 176, in delete_technique
    ncf.delete_technique(bundle_name,path)
  File "/usr/share/ncf/tools/ncf.py", line 743, in delete_technique
    shutil.rmtree(filename)
  File "/usr/lib/python2.7/shutil.py", line 239, in rmtree
    onerror(os.listdir, path, sys.exc_info())
  File "/usr/lib/python2.7/shutil.py", line 237, in rmtree
    names = os.listdir(path)
OSError: [Errno 2] No such file or directory: '/var/rudder/configuration-repository/ncf/50_techniques/undefined'

It should just delete it in the browser instead


Related issues 1 (0 open1 closed)

Related to Rudder - User story #5482: Enable delete/clone button just after we create a cloneResolvedVincent MEMBRÉActions
Actions

Also available in: Atom PDF