Project

General

Profile

Actions

Bug #20184

closed

Ressource not found when creating a draft and comming back to it to save it as a technique

Added by Nicolas CHARLES about 3 years ago. Updated almost 3 years ago.

Status:
Released
Priority:
N/A
Category:
Web - Technique editor
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:

Description

I started a Technique in Rudder 7.0, and attached a ressource to it - but didn't save it
I then went to do something else, logged out, and logged in again
Went back to this technique, finished it and saved it - not using a ressource

When deploying the technique, I go the following error

⇨ Policy update error for process '49' at 2021-10-21 10:27:56 
⇨  Cannot write nodes configuration 
⇨  Accumulated: Unexpected: Error when trying to open resource 'techniques/ncf_techniques/test_block/1.0/resources/brightness_364_512.icc'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects.

the technique doesn't show any ressource, not any way to remove it

yet metadata says

      <FILE name="RUDDER_CONFIGURATION_REPOSITORY/techniques/ncf_techniques/test_block/1.0/resources/brightness_364_512.icc">
        <INCLUDED>false</INCLUDED>
        <OUTPATH>test_block/1.0/resources/brightness_364_512.icc</OUTPATH>
      </FILE>
    </FILES>

It might be related to the fact that I have a draft technique with the same name, and the ressource is in there

it seems there is a collision between the draft and the technique, but changing the technique by adding a method in it converted it to "draft" (according to the tag next to it), but didn't change the actual draft


Files

clipboard-202110211233-8tuea.png (63 KB) clipboard-202110211233-8tuea.png Nicolas CHARLES, 2021-10-21 12:33
Actions #1

Updated by Vincent MEMBRÉ about 3 years ago

  • Target version changed from 7.0.0~beta2 to 7.0.0~beta3
Actions #2

Updated by Vincent MEMBRÉ about 3 years ago

  • Target version changed from 7.0.0~beta3 to 7.0.0~rc1
Actions #3

Updated by Vincent MEMBRÉ about 3 years ago

  • Target version changed from 7.0.0~rc1 to 7.0.0~rc2
Actions #4

Updated by Vincent MEMBRÉ about 3 years ago

  • Target version changed from 7.0.0~rc2 to 7.0.0~rc3
Actions #5

Updated by Vincent MEMBRÉ almost 3 years ago

  • Target version changed from 7.0.0~rc3 to 7.0.0
Actions #6

Updated by Vincent MEMBRÉ almost 3 years ago

  • Target version changed from 7.0.0 to 7.0.1
Actions #7

Updated by François ARMAND almost 3 years ago

Does it still happen ?

Actions #8

Updated by Nicolas CHARLES almost 3 years ago

It appened also without leaving the technique
I created a technique, first attached parameter, then ressource, and generic method, and finally the name
I saved it
I tried to create a directive based on it and applied it, and I had a policy generation error about a missing ressource in technique; and it was indeed not there

Actions #9

Updated by Elaad FURREEDAN almost 3 years ago

  • Status changed from New to In progress
  • Assignee set to Elaad FURREEDAN
Actions #12

Updated by Elaad FURREEDAN almost 3 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Elaad FURREEDAN to Vincent MEMBRÉ
  • Pull Request set to https://github.com/Normation/rudder/pull/4170
Actions #13

Updated by Anonymous almost 3 years ago

  • Status changed from Pending technical review to Pending release
Actions #14

Updated by Nicolas CHARLES almost 3 years ago

  • Fix check changed from To do to Checked
Actions #15

Updated by Vincent MEMBRÉ almost 3 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 7.0.1 which was released today.

Actions

Also available in: Atom PDF