SharePoint term store crashes if pageContext has no cultureinfo
See original GitHub issueCategory
[ ] Enhancement
[x] Bug
[ ] Question
Version
Please specify what version of the library you are using: 3.8.0
Expected / Desired Behavior / Question
Search for a term even if the page has no culture info set.
Observed Behavior
An uncaught exception is thrown:
SPTermStorePickerService.js:471 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'currentUICultureName')
at SPTermStorePickerService.js:471:50
(anonymous) @ SPTermStorePickerService.js:471
Promise.then (async)
(anonymous) @ SPTermStorePickerService.js:451
Wt+Y.SPTermStorePickerService.searchTermsByTermSet @ SPTermStorePickerService.js:450
Wt+Y.SPTermStorePickerService.searchTermsByName @ SPTermStorePickerService.js:322
(anonymous) @ TermPicker.js:133
step @ TermPicker.js:45
(anonymous) @ TermPicker.js:26
(anonymous) @ TermPicker.js:20
b7hz.__awaiter @ TermPicker.js:16
b7hz.TermPicker.onFilterChanged @ TermPicker.js:126
BasePicker._this._onResolveSuggestions @ BasePicker.js:352
invokeFunction @ Async.js:310
callback @ Async.js:335
resultFunction @ Async.js:364
kSRW.BasePicker.updateValue @ BasePicker.js:594
BasePicker._this.onInputChange @ BasePicker.js:77
9Ow0.Autofill._notifyInputChange @ Autofill.js:267
(anonymous) @ Autofill.js:109
pr @ sp-pages-assembly_en-nz_8d7827d88cb39cb2a4596efd3d5f4ef4.js:69
Steps to Reproduce
Use the term picker and search for a term on site without culture info.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Description of the security update for SharePoint Server 2019
File identifier File version File size Date Time
microsoft.office.access.services.moss.dll 16.0.10368.20022 767904 21‑Oct‑20 07:41
ascalc.dll 16.0.10368.20022 972216 21‑Oct‑20 07:40
microsoft.office.access.server.application.dll 16.0.10368.20022 608176 21‑Oct‑20 07:40
Read more >Description of the security update for SharePoint Server 2019
Improvements and fixes. This security update contains improvements and fixes for the following nonsecurity issues in SharePoint Server 2019:.
Read more >Description of the security update for SharePoint Server 2019
File identifier File version File size Date Time
microsoft.office.access.services.moss.dll 16.0.10371.20043 767912 25‑Jan‑21 07:48
ascalc.dll 16.0.10371.20043 972208 25‑Jan‑21 07:45
microsoft.office.access.server.application.dll 16.0.10371.20043 608176 25‑Jan‑21 07:44
Read more >Description of the security update for SharePoint Server 2019
This security update contains improvements and fixes for the following nonsecurity issues in Project Server 2019: It is now possible to update task...
Read more >Validation of viewstate MAC failed / The state information is ...
- NO, i'm not running a Web Farm. - page property "EnableViewStateMac" set to false does not solve the problem, it just changes...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@joelfmrodrigues yes I think so too. It may avoid similar (user) problems in the future 😉
@DennisKuhn I have just merged your PR. I assume it’s still a valid change as it’s only checking that the property is valid?