Project

General

Profile

Bug #12209

metadata.xml not generated when saving a technique from editor

Added by François ARMAND 9 months ago. Updated 9 months ago.

Status:
Released
Priority:
N/A
Category:
Web - Technique editor
Target version:
Severity:
Critical - prevents main use of Rudder | no workaround | data loss | security
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Priority:
76

Description

When saving a technique in editor, we have a success message but the metadata.xml is not correctly generated, and so the technique is not available in directive list afterward.

If we look in js debug console, we can see:

Request URL: https://192.168.49.2/rudder/secure/api/ncf
Request Method: POST
Status Code: 500 Server Error
Remote Address: 192.168.49.2:443
Referrer Policy: no-referrer-when-downgrade

{
  "action": "updateTechnique",
  "result": "error",
  "errorDetails": "Authorization error: User 'admin' is not allowed to access POST secure/api/ncf" 
}

There is two problems here: we don't get the error in technique editor (we have success but actually it's not the case). This one is managed in ticket: #12210

And we get an error 500 preventing metadata to be created (that ticket).

Associated revisions

Revision 745217b5 (diff)
Added by François ARMAND 9 months ago

Fixes #12209: metadata.xml not generated when saving a technique from editor

Revision 9fe46d22 (diff)
Added by François ARMAND 9 months ago

Fixes #12209: metadata.xml not generated when saving a technique from editor

History

#1 Updated by François ARMAND 9 months ago

  • Description updated (diff)

#2 Updated by François ARMAND 9 months ago

  • Status changed from New to In progress

#3 Updated by François ARMAND 9 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from François ARMAND to Vincent MEMBRÉ
  • Pull Request set to https://github.com/Normation/rudder/pull/1870

#4 Updated by Normation Quality Assistant 9 months ago

  • Assignee changed from Vincent MEMBRÉ to François ARMAND

#5 Updated by François ARMAND 9 months ago

  • Status changed from Pending technical review to Pending release

#6 Updated by Vincent MEMBRÉ 9 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.3.0~rc1 which was released today.

Also available in: Atom PDF