ConnectApiHelperTest: "Context user does not have permission to create rich text in feed"
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 20/100
Research direction
Start with ConnectApiHelperTest.testCreateInputFromBody at line 257 and the ConnectApi.ChatterFeeds.postFeedElement failure shown in the report. Reproduce the unit test with the reported context user, inspect how Network.getNetworkId() behaves in that context, and determine which permission or test setup is required for the test to complete successfully.
Written by the indexing model from the issue text.
Description
I installed the software from UnofficialSF.com and when running unit tests, got this error
Class.ConnectApi.ChatterFeeds.postFeedElement: line 1458, column 1
Class.ConnectApiHelperTest.testCreateInputFromBody: line 257, column 1
10:18:52.130 (194554713)|FATAL_ERROR|ConnectApi.ConnectApiException: Context user does not have permission to create rich text in feed
The ContextUser is UserInfo.getUserId() - which is me, user with System Admin profile. The test appears to be posting a bolded element.
test class is V47
Network.getNetworkId() returns null for the test context
What permission to I need to setup for the running user to be able to execute this unit test?
- Dominant language
- Apex
- Stars
- 105
- Forks
- 81
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from forcedotcom/ConnectApiHelper
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
forcedotcom/ConnectApiHelper#34 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
forcedotcom/ConnectApiHelper#33 · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
forcedotcom/ConnectApiHelper#31 · 6 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
forcedotcom/ConnectApiHelper#28 · 1 comment ·
All issues in forcedotcom/ConnectApiHelper
Similar issues
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100