#284  Couldn't create new issue
Released
Koboo opened 3 years ago

Bug (short)

If you set the role "Issue Reporter" as default role in a project and the user has only the authorization of the default role, he cannot create an new issue.

Reproduce:

Role Configuration
2021 05 18 15 11 17 Administration   OneDev   Brave

Group Configuration: Any "Not-Administrator"-Group

User: "Heinz" (The user has the default role "Issue Reporter" (configuration of role shown in screenshot) for the shown repository and got a "Not-Administrator"-group.)

  • Step 1: Login with User "Heinz"
  • Step 2: Click on a project (User only got "Manage Issue" permissions in the role, so he gets forwarded to the issue-management.)
  • Step 3: Click on the blue "+"-Button
  • Step 4: Errorpage opens

2021 05 18 15 17 50 OneDev   Super Easy All In One DevOps Platform   Brave

Even if the user is explicitly set the role "Issue Reporter" via "Authorization", the error appears.

Expected behaviour:

Open a "new issue" dialog

Additional Notes:

We don't use the Mail-Settings. I am not 100% sure if this is a bug in the source code or if I have configured it incorrectly.

Through further trail error tests, I was able to classify the problem more precisely. It seems to be related to the code permissions in some way. With the following role configurations I could not reproduce the error.

Works1
Works2
Works3
Works4

Enviroment:

  • OS: Linux 4.19.0-5-amd64, amd64
  • JVM: OpenJDK 64-Bit Server VM 1.8.0_292, AdoptOpenJDK
  • Total Heap Memory 3180 MB
  • Used Heap Memory 434 MB
  • Heap Memory Usage 13%
  • User: root
  • Version: 4.3.3

(Installed as system-service)

I think your work is great and I will continue to use and support OneDev! Maybe the problem is found and can be fixed!

With best regards

Koboo changed fields 3 years ago
Name Previous Value Current Value
Type
Support Request
Bug
Seen Builds
empty
1499
OneDev changed state to 'Closed' 3 years ago
Previous Value Current Value
Open
Closed
OneDev changed state to 'Released' 3 years ago
Previous Value Current Value
Closed
Released
Robin Shen referenced from other issue 2 years ago
issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Affected Versions
Not Found
Issue Votes (0)
Watchers (4)
Reference
onedev/server#284
Please wait...
Page is in error, reload to recover