is it possible to customize bugzilla fields ( text fields, text area etc)? - perl

I have one product and several components of this product. Each component have several reported bugs.
Every bug has been assigned to a specific user.
I want to customize some text fields/areas for that user, so that he/she can not edit that specific field.
I also want to customize some text fields/areas for for Bug Creator (who files the new bug) so that he/she can not edit his/her posted bug.
Is it possible ?
Can we customize these fields via making changes in code ? or by installing some plugins ? or any other way ?
Permission/restrictions on groups are also not working. For example I created 2 groups A and B. Group A have full permissions (Create and Edit bug) but group B don't have any permission but only READONLY. But there is no difference between the user's rights those either belongs to group A or B (both can create and edit bugs). How i can limits the users belongs to group B ?
Only Developer should able the create/edit the fields but Client should not able to edit the bug.
The following discussion was very helpful for me. As i have ProductA, ProductB and groups Client, Developer.
http://groups.google.com/group/netscape.public.mozilla.webtools/browse_thread/thread/98efcae88fe84d6d/51c8deb672402e09?lnk=gst&q=permissions+for+all+users#51c8deb672402e09
Answer:
Product A:
ReadCreateA: Entry/Mandatory/Mandatory/-- EditA: --/NA/NA/Canedit Similar for Product B.
For this, you need to give editbugs privileges to developers. If you want to restrict editbugs privileges in other products, you need to set up a group they are not a member of as xx/xx/xx/Canedit for the other products. In your particular setup, this is already covered by the EditA and EditB groups.
(Works fine ) When I use the above guide , it works perfectly except posting comments. I am getting following error while posting comment --> "You are not permitted to edit bugs in product Product A"
but I want users of "Group UsersA" should not edit the bug (that is fine) but must be able to post the comment.
How can I manage this?
Any help would be appreciated!
Thanks.

You will need to modify code to accomplish this. See http://www.bugzilla.org/docs/4.2/en/html/cust-change-permissions.html for details.

Here is very nice discussion and I think my 75% problem has been solved.
Link
but in this case user are not able to post the comments, now I need to find the ways that user should not able to edit the bug fields but user could post comments anyway.

Related

Moodle Error "you dont have permission to view course here."

I am working as a teacher in college. I have installed moodle 3.7+ with php7.1.29 on our server. Initially system worked well now there are almost 800 courses and 3000 users registered to system. but now every user getting error message saying "you dont have permission to view course here." this error is show till user refreshes the page 2-3 times and after refreshing page it show course. I have attached screenshot here....can anyone please help me with the problem.
Try purging the caches:
/path/to/php /path/to/moodle/admin/cli/purge_caches.php
If that doesn't work, make sure you don't have any hidden categories.
I can't see that string in Moodle 3.7. It might be a plugin causing this.
If you are able to, can you go to Site admin > Development > Debugging
or direct to /admin/settings.php?section=debugging
and enable debugstringids
Then go to the course and add &strings=1 to the end of the url
https://docs.moodle.org/38/en/Language_customisation#Finding_the_component_and_string_identifier
This will display the source of the string
If administrators can open the course just fine, but other users is having this issue: check the course and category management, make sure the course in question is not inside a hidden category, or the top /parent category is hidden.

Security warning from extension_builder: action is publicly accessible

I created an extension with the extension builder.
On saving I get this message:
The object was updated. Please be aware that this action is publicly accessible unless you implement an access check. See https://docs.typo3.org/typo3cms/extensions/extension_builder/User/Index.html
How can I fix this issue? Yes I read the page but there are no useful hints.
Since the question is how you can "fix the issue": There is no issue, it is a warning, you can remove it and make your request secure. (As in the other answer.)
The "hint" on the page is actually very straightforward. The "issue", that a user is able to manipulate the url and make the server to execute a not wanted action.
Here is an example:
You have a list of users of your page and you can open thier public porfile for more information:
https://yourdomain.com/list/?tx_ext_plugin['action']=show&tx_ext_plugin['userId']=41.
So if I want to make some trouble, I change the action "show" to "delete" and may I am able to delete the poor user "41" from the db. That is bad.
https://yourdomain.com/list/?tx_ext_plugin['action']=delete&tx_ext_plugin['userId']=41.
So since it is you business logic typo3 offers no out of the box solution for this. That is why this warning from extension builder says, that you need to make actions to prevent misuse.
Regarding how to implemnt a better security here are some thoughts about the Access Control and some ideas what to implement in your actions:
1) FE
You can separate your actions into different plugins. So if you have a public list action it can not be modified to the plugin that responsible for the delete action. How is it possible? TYPO3 will look the page record in your database. And will render it, and if there is a plugin on the page with the signature "tx_ext_plugin" then it will get the sent parameters. In this case you have the possibility to add the different plugins to different pages so changing the signature of it for an attacker won't help, because:
If the delete action is not registered by the plugin, TYPO3 will
throw an exception.
If you are trying to change the whole signature the page won't be able to identify the plugin.
You can add the edit / delete plugin to pages where a user has to be logged in. You can even manage multiple usergroups. Like normal user can only edit its profile, but a premium user can make further changes. You can use in fluid a view helper IfHasRole that can show parts of your template for defined user groups. (There is an ifAuthenticated ViewHelper too)
You can take the extension "femanager" as an example. There is a controller "EditController", that covers actions like "update" and "delete". For example before making the update action there is a check if the logged in user has the same user id as the record which going to be changed. If you have a complex example you can make a check on the user group also.
2) BE
It is actually almost the same as frontend.
BUT instead of plugins / user groups assigned in page settings. You can use different mountpoints, so BE users can not see folders where they are not allow to edit / delete.
You have those two ViewHelper for the BE too. There names are: f:be:security.ifAuthenticated and f:be:security:ifHasRole. However ifAuthenticated is also for FE, in a BE context it does not make sense.
You have also the possibility to identify the id and userGroups of the BE user and you can make your own checks before you let an action run.
You have also the possibility to turn on / off a module for a certain BE group.
+1: It is nothing to do with any action but just to list it too. There is also the possibility to allow / disallow field for BE Users by editing a record through the List mode in the BE.
Extension builder creates dummy actions to update and create records. Those example actions do not contain any security checks, whether the caller actually is allowed to do so.
So it is your job to add adequate access control to those methods. E.g. make sure the current user (be it Frontend or Backend) is actually allowed to update the model in question.

Hide typo3 content elements for specific user(groups)

I want to "hide/deactivate" the table element for specific users/usergroups in the typo3 BE.
Or to be more clear: I want to ONLY allow it to ONE specific user (admin).
How can i do that?
NOTE: At the moment the table element is deactivated in the global TS-config via tt_content removeItems().
TIA
Note: I have only an old Typo3 4.3.5 installation, but I hope this hasn't changed much.
In User admin, edit group permissions and go to Access lists. At the bottom is "Explicitly allow/deny field values" where you can restrict specific content types.
With the restriction, affected users still see the restricted content element in BE, but get a message when trying to edit it.

How to hide a page based on the logged-in user in CQ5?

I want to hide a page in navigation component based on the logged in user. I have two approaches in mind. Set permissions on the page's node in CRX-DE; denying it for all users; and then allowing it for specific groups. I have been trying it; not found much success. Else; I can get the id of the logged in user in the jsp and based on the user group; I can set the page's property 'Hide in Navigation' . But I am not able to find how to set that property in jsp. Please suggest.
Edit:
I am using the default authentication.I wanted to hide a page from navigation in the default 'list' component. If I use CUG; the users belonging to that group will still be able to see that particular page's link in the list component; and would be asked for login on clicking on that page.I want the link itself to be hidden if the user belonged to a particular group
Thanks.
If you are using the default authentication features in AEM (like Geometrixx), which rely on users that exist in AEM, you can use Closed User Groups. CUG allows you to set what users or groups can or cannot see a specific page. You can see where to set CUGs in the page properties dialog for each page. I'm pretty sure CUG settings inherit down the page hierarchy as well.
Using the JCR permissions for this is a good deal more complex, because it's such a low-level architectural thing. However, for more complex solutions, sometimes it's a necessary part of the equation.
I agree with ryanluka that going for JCR permissions should be avoided when the problem can be solved by much simpler approach. I modified the list.jsp of the default list component. Extracted the login user's id using Userpropertiesutil; and based on the group; wrote the code in jQuery to remove that particular page's div from list component.

Administrator has no admin bar for specific pages

I have an issue with a dotnetnuke 7 site, where the administrator cannot edit a minority of the pages.
When logged in and on such a page, the edit page menu missing.
When on the page management view, there are only options to view or make homepage. On clicking, properties are not shown.
What could be causing this?
Cheers, mark
I've seen in the past where the Administrator Role Id is incorrectly defined in the database.
Unfortunately there isn't a UI way to change this, you'll need to go into the DB to see what Role ID is defined. I believe AdministratorRoleID is stored either in the Portals table, or in the PortalSettings or PortalLocalization table. Check the # and see if that matches the ID of the Administrators role for that portal.
It could also be a CSS issue if it only affects some pages. Can you try changing the skin on those pages to the default skin and try again...
Just noticed this old question, so I thought that I'd update with what the actual problem was.
We imported pages using a direct to database program - we naturally assumed that the site administrator could, as a default be able to edit pages within their own site.
As it turns out, DNN actually creates correct access rights to each page as they are created, and rights are added and removed as required. This means that if you create pages you must directly create access rights for the correct site administrator.
Kind Regards, Mark, IA