X Tutup
Skip to content

Proper error message not displayed while trying to add a group with invalid name #40162

@kiranadh1452

Description

@kiranadh1452

Steps to reproduce

  1. Login to owncloud and navigate to 'users'
  2. Type any invalid name (ending with a whitespace ) in the placeholder 'Group...'
  3. Click on '+' button (Button to add a new group)

Expected behaviour

The message saying Error creating group: Invalid group name should be popped up.

Actual behaviour

The actual pop up says Error creating group: {message}
image

The issue is not in the API because on making API call to add a group "newgroup ", it returns the correct error message.

API Call

curl -X POST http://admin:secret@example.com/ocs/v1.php/cloud/groups -d groupid="newgroup "

Obtained Response

<?xml version="1.0"?>
<ocs>
 <meta>
  <status>failure</status>
  <statuscode>101</statuscode>
  <message>Invalid group name</message>
 </meta>
 <data/>
</ocs>

Server configuration

Operating system: ubuntu 20.04

Web server: apache2

Database: MySQL

PHP version: 7.4.3

ownCloud version: 10.11.0 prealpha (git)

Updated from an older ownCloud or fresh install: fresh

Where did you install ownCloud from: github

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    X Tutup