Project

General

Profile

Actions

Bug #6924

closed

Saving an NCF Technique in Editor fails

Added by Janos Mattyasovszky over 9 years ago. Updated almost 9 years ago.

Status:
Rejected
Priority:
2
Category:
Web - Technique editor
Target version:
-
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

Hi,

Using following procedure:
  1. open NCF Editor
  2. Create a Technique with any Name and Description
  3. Add the Method "File copy from remote source", but only fill out "Source file :", not "Destination file:"
  4. Click to "Save"

Result: On Screen popup displays error:

An Error occured! Could not write technique 'File_CMS_Rudder_Variables' from path /var/rudder/configuration-repository/ncf, cause is: Error while running post-hook command [u'/var/rudder/configuration-repository/ncf/ncf-hooks.d/post.write_technique.rudderify.sh', u'/var/rudder/configuration-repository/ncf', u'File_CMS_Rudder_Variables']
Details: INFO: Alternative source path added: /var/rudder/configuration-repository/ncf

When the Destination field is also filled, it is saved without issues.

This should be handled in a more decent way and the Save button should not allow to save until all required fields are filled.

Issue tracked:

The rudderify hook actually fails here:

ncf-api-venv@rudder:~> curl https://localhost/rudder/api/techniqueLibrary/reload
Error:
A
cause:n
cause:
cause:e
cause:r
cause:r
cause:o
cause:r
cause:
cause:o
cause:c
cause:c
cause:u
cause:r
cause:e
cause:d
cause:
cause:w
cause:h
cause:e
cause:n
cause:
cause:u
cause:p
cause:d
cause:a
cause:t
cause:i
cause:n
cause:g
cause:
cause:t
cause:h
cause:e
cause:
cause:T
cause:e
cause:c
cause:h
cause:n
cause:i
cause:q
cause:u
cause:e
cause:
cause:l
cause:i
cause:b
cause:r
cause:a
cause:r
cause:y
cause:
cause:f
cause:r
cause:o
cause:m
cause:
cause:f
cause:i
cause:l
cause:e
cause:
cause:s
cause:y
cause:s
cause:t
cause:e
cause:m
cause:
cause:<
cause:-
cause:
cause:E
cause:r
cause:r
cause:o
cause:r
cause:
cause:w
cause:h
cause:e
cause:n
cause:
cause:t
cause:r
cause:y
cause:i
cause:n
cause:g
cause:
cause:t
cause:o
cause:
cause:r
cause:e
cause:a
cause:d
cause:
cause:t
cause:e
cause:c
cause:h
cause:n
cause:i
cause:q
cause:u
cause:e
cause:
cause:l
cause:i
cause:b
cause:r
cause:a
cause:r
cause:y

In the webapp logs we see:

[2015-07-02 13:28:06] ERROR com.normation.cfclerk.services.impl.GitTechniqueReader - Error when processing technique '/ncf_technique
s/File_CMS_Rudder_Variables/1.0/metadata.xml'
com.normation.cfclerk.xmlparsers.EmptyReportKeysValue: In 'expectedReportKey File copy from remote source', the element REPORTKEYS m
ust have a non empty list of provided values: <REPORTKEYS><VALUE>val foo</VALUE><VALUE>...
        at com.normation.cfclerk.domain.SectionVariableSpec$.apply(VariableAndSectionSpec.scala:416) ~[cfclerk-2.11.11.jar:na]
[2015-07-02 13:30:25] ERROR com.normation.cfclerk.services.impl.GitTechniqueReader - Error when processing technique '/ncf_technique
s/File_CMS_Rudder_Variables/1.0/metadata.xml'
com.normation.cfclerk.xmlparsers.EmptyReportKeysValue: In 'expectedReportKey File copy from remote source', the element REPORTKEYS m
ust have a non empty list of provided values: <REPORTKEYS><VALUE>val foo</VALUE><VALUE>...
        at com.normation.cfclerk.domain.SectionVariableSpec$.apply(VariableAndSectionSpec.scala:416) ~[cfclerk-2.11.11.jar:na]
[2015-07-02 13:31:03] ERROR com.normation.cfclerk.services.impl.GitTechniqueReader - Error when processing technique '/ncf_technique
s/File_CMS_Rudder_Variables/1.0/metadata.xml'
com.normation.cfclerk.xmlparsers.EmptyReportKeysValue: In 'expectedReportKey File copy from remote source', the element REPORTKEYS m
ust have a non empty list of provided values: <REPORTKEYS><VALUE>val foo</VALUE><VALUE>...
        at com.normation.cfclerk.domain.SectionVariableSpec$.apply(VariableAndSectionSpec.scala:416) ~[cfclerk-2.11.11.jar:na]
[2015-07-02 13:31:37] ERROR com.normation.cfclerk.services.impl.GitTechniqueReader - Error when processing technique '/ncf_technique
s/File_CMS_Rudder_Variables/1.0/metadata.xml'
com.normation.cfclerk.xmlparsers.EmptyReportKeysValue: In 'expectedReportKey File copy from remote source', the element REPORTKEYS m
ust have a non empty list of provided values: <REPORTKEYS><VALUE>val foo</VALUE><VALUE>...
        at com.normation.cfclerk.domain.SectionVariableSpec$.apply(VariableAndSectionSpec.scala:416) ~[cfclerk-2.11.11.jar:na]
[2015-07-02 13:31:45] ERROR com.normation.cfclerk.services.impl.GitTechniqueReader - Error when processing technique '/ncf_technique
s/File_CMS_Rudder_Variables/1.0/metadata.xml'
com.normation.cfclerk.xmlparsers.EmptyReportKeysValue: In 'expectedReportKey File copy from remote source', the element REPORTKEYS m
ust have a non empty list of provided values: <REPORTKEYS><VALUE>val foo</VALUE><VALUE>...
        at com.normation.cfclerk.domain.SectionVariableSpec$.apply(VariableAndSectionSpec.scala:416) ~[cfclerk-2.11.11.jar:na]
[2015-07-02 13:31:54] ERROR com.normation.cfclerk.services.impl.GitTechniqueReader - Error when processing technique '/ncf_technique
s/File_CMS_Rudder_Variables/1.0/metadata.xml'
com.normation.cfclerk.xmlparsers.EmptyReportKeysValue: In 'expectedReportKey File copy from remote source', the element REPORTKEYS m
ust have a non empty list of provided values: <REPORTKEYS><VALUE>val foo</VALUE><VALUE>...
        at com.normation.cfclerk.domain.SectionVariableSpec$.apply(VariableAndSectionSpec.scala:416) ~[cfclerk-2.11.11.jar:na]
[2015-07-02 13:32:50] ERROR com.normation.cfclerk.services.impl.GitTechniqueReader - Error when processing technique '/ncf_technique
s/File_CMS_Rudder_Variables/1.0/metadata.xml'
com.normation.cfclerk.xmlparsers.EmptyReportKeysValue: In 'expectedReportKey File copy from remote source', the element REPORTKEYS m
ust have a non empty list of provided values: <REPORTKEYS><VALUE>val foo</VALUE><VALUE>...
        at com.normation.cfclerk.domain.SectionVariableSpec$.apply(VariableAndSectionSpec.scala:416) ~[cfclerk-2.11.11.jar:na]

RPM Versions:

ncf-0.201505291844-1.SLES.11
ncf-api-virtualenv-2.11.11.release-1.SLES.11
rudder-agent-2.11.11.release-1.SLES.11
rudder-inventory-endpoint-2.11.11.release-1.SLES.11
rudder-inventory-ldap-2.11.11.release-1.SLES.11
rudder-jetty-2.11.11.release-1.SLES.11
rudder-plugin-external-node-information-2.11.4-1
rudder-reports-2.11.11.release-1.SLES.11
rudder-server-root-2.11.11.release-1.SLES.11
rudder-techniques-2.11.11.release-1.SLES.11
rudder-webapp-2.11.11.release-1.SLES.11


Related issues 1 (0 open1 closed)

Is duplicate of Rudder - Bug #7294: ncf technique editor is saving invalid promises filesReleasedFrançois ARMANDActions
Actions #1

Updated by Matthieu CERDA over 9 years ago

  • Assignee set to Vincent MEMBRÉ
  • Priority changed from N/A to 2

Thanks for the report Janos.

Assigning to VME for dispatch.

Actions #2

Updated by Jonathan CLARKE almost 9 years ago

  • Is duplicate of Bug #7294: ncf technique editor is saving invalid promises files added
Actions #3

Updated by Jonathan CLARKE almost 9 years ago

  • Status changed from New to Rejected

This was fixed by #7294

Actions

Also available in: Atom PDF