You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One would expect CBRAIN quietly return list of files starting with 24_ , and yet an exception is generated during yaml serialization of the string.
Perhaps, as a workaround one may add quotations over the string.
In a rails 5.0.7 console/ ruby 2.7 '2_'.to_yaml generates an exception, but rails works fine with for '"2_"'.to_yaml
The issue is corrected in more recent psych releases, see PR https://github.com/ruby/psych/issues/442
Updating to recent psych would be more clean bug fix but will require all developers to update their setup
The text was updated successfully, but these errors were encountered:
That's a great and elegant workaround, but upgrading would save us from the same issue around the whole application. While the latest releases of psych 4 and 5 are too advanced, 3rd version seems to do the trick gem "psych", '~> 3.3'
To reproduce in file search field enter
24_
or enter urlhttps://portal.cbrain.mcgill.ca/userfiles?name_like=24_&_=1727287061912
One would expect CBRAIN quietly return list of files starting with 24_ , and yet an exception is generated during yaml serialization of the string.
Perhaps, as a workaround one may add quotations over the string.
In a rails 5.0.7 console/ ruby 2.7
'2_'.to_yaml
generates an exception, but rails works fine with for'"2_"'
.to_yamlThe issue is corrected in more recent psych releases, see PR
https://github.com/ruby/psych/issues/442
Updating to recent psych would be more clean bug fix but will require all developers to update their setup
The text was updated successfully, but these errors were encountered: