Bug #23442
closed
File picker on an existing directive often fails and changes the URL
Added by Nicolas CHARLES about 1 year ago.
Updated 8 months ago.
Category:
Web - Config management
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
- Target version changed from 7.3.7 to 7.3.8
- Target version changed from 7.3.8 to 7.3.9
- Target version changed from 7.3.9 to 7.3.10
- Regression changed from No to Yes
- Target version changed from 7.3.10 to 7.3.11
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
- Status changed from New to In progress
- Assignee set to Raphael GAUTHIER
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?
- Target version changed from 7.3.11 to 7.3.12
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
- Target version changed from 7.3.12 to 7.3.13
- Assignee deleted (
Raphael GAUTHIER)
- Target version changed from 7.3.13 to 7.3.14
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"}
- Status changed from In progress to Rejected
only in 7.3 and not linked to a support issue, closing.
Also available in: Atom
PDF