[COMMENTING-28] Create comment POST throws 401 on public instance / anonymous Created: 13/Jul/20  Updated: 13/Jul/20  Resolved: 13/Jul/20

Status: Closed
Project: Commenting
Component/s: None
Affects Version/s: 1.0
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: Edwin Guilbert Assignee: Adrien Manzoni
Resolution: Not an issue Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Magnolia 6.2.1


Attachments: PNG File Screenshot 2020-07-13 at 11.47.33.png    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

When creating a comment with a POST request to:

/.rest/commenting/v1/comment

with body:

{ "mgnlWorkspace": "website", "mgnlId": "b06b82a2-74b0-4994-8015-028c4fd60716", "text": "testing travel anonymous", "authorChoice": false, "abuseReport": false, "numLikes": 0, "numUnlikes": 0, "rating": 0, "userName": "ebguilbert", "userEmail": "edwin.guilbert@magnolia-cms.com" 
 }

Throws HTTP 401 Aunahtorized.
 
 
 
This only happens on Public instance with anonymous. The anonymous user has been granted GET/POST web access on /.rest/* and still same issue.
 
On Author instance or Public with logged-in user works just fine.



 Comments   
Comment by Edwin Guilbert [ 13/Jul/20 ]

https://wiki.magnolia-cms.com/display/SERVICES/Commenting#Commenting-Anonymouscomments.

Generated at Mon Feb 12 00:01:27 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.