Bug #23442
closedFile picker on an existing directive often fails and changes the URL
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
Updated by Vincent MEMBRÉ over 1 year ago
- Target version changed from 7.3.7 to 7.3.8
Updated by Vincent MEMBRÉ about 1 year ago
- Target version changed from 7.3.8 to 7.3.9
Updated by Vincent MEMBRÉ about 1 year ago
- Target version changed from 7.3.9 to 7.3.10
Updated by Vincent MEMBRÉ about 1 year ago
- Target version changed from 7.3.10 to 7.3.11
Updated by François ARMAND about 1 year 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
Updated by Raphael GAUTHIER about 1 year ago
- Status changed from New to In progress
- Assignee set to Raphael GAUTHIER
Updated by Raphael GAUTHIER about 1 year 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?
Updated by Vincent MEMBRÉ 11 months ago
- Target version changed from 7.3.11 to 7.3.12
Updated by Nicolas CHARLES 11 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
Updated by Vincent MEMBRÉ 10 months ago
- Target version changed from 7.3.12 to 7.3.13
Updated by Vincent MEMBRÉ 10 months ago
- Target version changed from 7.3.13 to 7.3.14
Updated by Raphael GAUTHIER 9 months 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"}
Updated by Alexis Mousset 8 months ago
- Status changed from In progress to Rejected
only in 7.3 and not linked to a support issue, closing.