Skip to content

Validation Error for Non-Admin Users Publishing Content with Umbraco Commerce Price Property in Safari #713

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mdp-jf opened this issue May 27, 2025 · 1 comment

Comments

@mdp-jf
Copy link

mdp-jf commented May 27, 2025

Which component is this issue related to?

Umbraco Commerce (Core)

Which Umbraco Commerce version are you using? (Please write the exact version, example: 10.1.0)

15.3.4

Bug summary

Non-admin users encounter a validation error when attempting to publish content containing required Umbraco Commerce price properties, but only when using Safari browser. Admin users and other browsers work correctly.

Specifics

Error Details
{
"type": "Error",
"title": "Validation failed",
"status": 400,
"detail": "One or more properties did not pass validation",
"operationStatus": "PropertyValidationError",
"errors": {
"$.values[?(@.alias == 'price' && @.culture == null && @.segment == null)].Value": [
"#validation_invalidNull"
]
}
}

Steps to reproduce

Steps to Reproduce

  • Install Umbraco 15.4.1 with Umbraco Commerce 15.3.4
  • Create a new store
  • Create a document type that uses said store
  • Create a document type that is a child of the first document type with a required field that uses the price property from Umbraco Commerce
  • Create content using this document types
  • Use Safari browser
  • Log in as a non-admin user (without admin rights)
  • Create new content as a non-admin
  • Attempt to publish the content

Expected result / actual result

Expected Behavior

  • Non-admin users should be able to publish content with Commerce price properties regardless of browser
  • Behavior should be consistent across all supported browsers

Actual Behavior

  • Non-admin users receive validation error when publishing in Safari
  • Error message indicates price property validation failure with "#validation_invalidNull"
  • Same content publishes successfully for admin users in Safari
  • Same content publishes successfully for non-admin users in other browsers

Dependencies

Environment

  • Umbraco Version: 15.4.1
  • Umbraco Commerce: Installed 15.3.4
  • Affected Browser: Safari (all versions tested)
  • Working Browsers: Chrome, Firefox, Edge
  • User Permissions: Issue affects non-admin users only

This item has been added to our backlog AB#53359

@mdp-jf mdp-jf added the bug Something isn't working label May 27, 2025
@mattbrailsford
Copy link
Contributor

Thanks for reporting this, I've added it to our sprint backlog to review. In the meantime it sounds like a valid workaround would be to a) use a different browser or b) don't make the price field mandatory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants