Need a special offer?Find out if your project fits.
+

Request headers are cleared after updateData() method call

Answered
Alex asked on December 17, 2019

Hi,

There is an issue with request headers for csv data source after upgrading from 2.7.17 to 2.7.20.
 
Request headers are set in report object using 'requestHeaders' property of the data source. On the first load headers are sent to server and everything is fine. But after reloading data through 'updateData()' method headers missed.
 
Such behavior stops us from upgrading to the latest version. Could you give any suggestions how it can be solved?
 
Thanks for your help.

3 answers

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster December 17, 2019

Hello, Alex,
 
Thank you for reporting about that bug.
We have managed to reproduce the problem on our side.
 
The issue is going to be fixed with the next minor update ETA 30 Dec.
 
Also, we would like to kindly draw your attention to the fact that the updateData API call updates the whole dataSource object.
 
Being a property of the dataSource object, the requestHeaders object is impacted as well; it has to be explicitly defined as a parameter of the updateData method. Otherwise, the requestHeaders object will be removed as well as other undefined properties.
 
More information about updateData API call and its parameters, including the requestHeaders, can be found by the following link: updateData method.
 
We hope it works for you.
 
Kind regards,
Illia

Public
Mykhailo Halaida Mykhailo Halaida Flexmonster December 31, 2019

Hi Alex,
 
We are glad to announce that the issue with request headers not being applied when using updateData() method call was fixed.
 
This is available in the 2.7.22 version of Flexmonster: https://www.flexmonster.com/release-notes/
 
You are welcome to update the component: https://www.flexmonster.com/doc/updating-to-the-latest-version/
 
Please let us know if everything works fine.
 
Looking forward to hearing from you.
 
Best regards,
Mykhailo

Public
Alex January 2, 2020

Hello, Mykhailo
 
After upgrading to the 2.7.22 version everything works fine. Request headers are sent as expected.
 
Many thanks,
Alex

Please login or Register to Submit Answer