Project

General

Profile

Actions

Bug #23442

closed

File picker on an existing directive often fails and changes the URL

Added by Nicolas CHARLES 8 months ago. Updated 24 days ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Web - Config management
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
Yes

Description

If we open a directive based on File Content with data, the File Picker for the file source may of may not work
The more we click, the more it fails

Interestingly, it also changes the URL
from

https://orchestrateur-4.labo.normation.com/rudder/secure/configurationManager/directiveManagement#%7B%22directiveId%22:%223c242b2b-25f0-4a4f-8adf-7f2ce1014b28%22%7D

to
https://orchestrateur-4.labo.normation.com/rudder/secure/configurationManager/directiveManagement#!%2F%23%7B%22directiveId%22:%223c242b2b-25f0-4a4f-8adf-7f2ce1014b28%22%7D

console output is

and file picker is


Files

Actions #1

Updated by Vincent MEMBRÉ 8 months ago

  • Target version changed from 7.3.7 to 7.3.8
Actions #2

Updated by Vincent MEMBRÉ 6 months ago

  • Target version changed from 7.3.8 to 7.3.9
Actions #3

Updated by Vincent MEMBRÉ 6 months ago

  • Target version changed from 7.3.9 to 7.3.10
Actions #4

Updated by Nicolas CHARLES 5 months ago

  • Regression changed from No to Yes
Actions #5

Updated by Vincent MEMBRÉ 5 months ago

  • Target version changed from 7.3.10 to 7.3.11
Actions #6

Updated by François ARMAND 5 months ago

We need to qualify the problem better:
- how to reproduce it on 7.3 ?
- does it happen in the same way on 8.0 ?

It looks like a double escape of some html char

Actions #7

Updated by Raphael GAUTHIER 5 months ago

  • Status changed from New to In progress
  • Assignee set to Raphael GAUTHIER
Actions #8

Updated by Raphael GAUTHIER 5 months ago

I agree with Francois, I couldn't reproduce it on 7.3 or 8.0. Sometimes the list of files takes a long time to be displayed, but I don't get any errors in my js console and it ends up displaying.

What did you do to make this error appear?

Actions #9

Updated by Vincent MEMBRÉ 3 months ago

  • Target version changed from 7.3.11 to 7.3.12
Actions #10

Updated by Nicolas CHARLES 3 months ago

On Rudder 7.3
In the directive page, click on directive based on Technique "File download"
In the parameter page, click on the file selector for the Source path, and select something in a subfolder
Open another directive based on Technique "File Download", again select a file again, in a subfoleder
Open another directive based on Technique "File Download", the URL starts to blink and being rewriten

https://orchestrateur-4.labo.normation.com/rudder/secure/configurationManager/directiveManagement#!%2F%23%7B%22directiveId%22:%2289941f0f-3c4e-4dca-bf98-e06d78c08664%22%7D

rather than
https://orchestrateur-4.labo.normation.com/rudder/secure/configurationManager/directiveManagement#%7B%22directiveId%22:%2289941f0f-3c4e-4dca-bf98-e06d78c08664%22%7D

the file selector stays empty

Actions #11

Updated by Vincent MEMBRÉ 2 months ago

  • Target version changed from 7.3.12 to 7.3.13
Actions #12

Updated by Raphael GAUTHIER about 2 months ago

  • Assignee deleted (Raphael GAUTHIER)
Actions #13

Updated by Vincent MEMBRÉ about 2 months ago

  • Target version changed from 7.3.13 to 7.3.14
Actions #14

Updated by Raphael GAUTHIER about 1 month ago

I can't seem to fix this bug.
The URL change is caused by AngularJs (it's not directly our code that's making the change). I think it doesn't support the way our URL is encoded, I don't know...
To solve this bug, we might use REST URL like: /directives/xxxx-xxxx-xxxx-xxx instead of directiveManagement#{"directiveId":"xxx-xxx-xxx-xxx"}

Actions #15

Updated by Alexis Mousset 24 days ago

  • Status changed from In progress to Rejected

only in 7.3 and not linked to a support issue, closing.

Actions

Also available in: Atom PDF