Search found 75 matches

by dregad
24 Mar 2024, 15:47
Forum: Help
Topic: REST Api - creating issues with dates in the past
Replies: 1
Views: 2280

Re: REST Api - creating issues with dates in the past

This is currently not possible.

I believe the XmlImportExport plugin can do this, but I have not used it in years so not 100% sure.
by dregad
24 Mar 2024, 14:10
Forum: Help
Topic: REST Api - Unable to add a note
Replies: 5
Views: 569

Re: REST Api - Unable to add a note

Not sure why you posted that issue under CSV plugin project. I moved it to MantisBT
by dregad
20 Dec 2023, 11:13
Forum: General Discussion
Topic: custom X-Content-Security-Policy
Replies: 3
Views: 5892

Re: custom X-Content-Security-Policy

Have a look at how it's done in the MantisGraph core plugin
  • Declare event in hooks()

    Code: Select all

    'EVENT_CORE_HEADERS' => 'csp_headers',
  • Add CSP header

    Code: Select all

    	function csp_headers() {
    		if( config_get_global( 'cdn_enabled' ) == ON ) {
    			http_csp_add( 'script-src', self::CHARTJS_CDN );
    		}
    	}
    
by dregad
20 Dec 2023, 09:20
Forum: General Discussion
Topic: LDAP Access
Replies: 16
Views: 58179

Re: LDAP Access

The problem seems to be mantis keeps using Administrator instead of the account we are telling it
As mentioned in #33444, I believe this is a red herring. This is just a sanity check performed by the login page to ensure the default administrator account's password has been changed.
by dregad
10 Dec 2023, 11:16
Forum: General Plugin Discussion
Topic: Linked Custom Fields
Replies: 2
Views: 4261

Re: Linked Custom Fields

Problem fixed, LinkedCustomFields 2.0.1 released (a CVE has been requested for the XSS via Security Advisory
by dregad
10 Dec 2023, 10:30
Forum: General Plugin Discussion
Topic: Linked Custom Fields
Replies: 2
Views: 4261

Re: Linked Custom Fields

Thanks for the heads up, for some reason I didn't receive any Github notification for this PR
by dregad
15 Oct 2023, 15:08
Forum: Customizations
Topic: Customizing Severity
Replies: 4
Views: 8780

Re: Customizing Severity

In PHP, constants can't be redefined (otherwise they would, by definition, not be constants). MINOR is a standard constant defined in constant_inc.php. If you define it again in your custom constants file it creates a conflict hence the error you get. Either use the standard value for MINOR (50) or ...
by dregad
12 Sep 2023, 09:18
Forum: General Discussion
Topic: Notes adding copied text from clipboard
Replies: 2
Views: 20235

Re: Notes adding copied text from clipboard

Most likely the data in the clibpoard contained an image format instead of (or possibly in addition to) text. Consequently, the dropzone treated it as an attachment. I frequently copy/paste text, and never faced this problem. In the interest of reproducing the problem, it would be useful to know fro...
by dregad
24 Jul 2023, 08:29
Forum: General Discussion
Topic: Re-enable the disabled admin account
Replies: 2
Views: 13646

Re: Re-enable the disabled admin account

As mentioned by cas, you need to update the user record in your database using SQL

Code: Select all

UPDATE mantis_user_table SET enabled=1 WHERE username='admin';
by dregad
13 Mar 2023, 17:17
Forum: General Plugin Discussion
Topic: GaugeSupport Plugin install issue
Replies: 3
Views: 11777

Re: GaugeSupport Plugin install issue

Probably best to use this https://github.com/mantisbt-plugins/GaugeSupport and report issues there.
by dregad
15 Feb 2023, 12:09
Forum: Help
Topic: Migrating Mantis issues to gitlab ...missing Notes
Replies: 7
Views: 4730

Re: Migrating Mantis issues to gitlab ...missing Notes

The notes column was added in MantisBT release 1.3.0-rc.2. See https://mantisbt.org/bugs/view.php?id=20383 is there any work around for 1.2.17 to edit some underlying file to add more columns, where GUI is reading these information from? I would suggest you upgrade your Mantis to 1.3, which should b...
by dregad
11 Feb 2023, 17:41
Forum: Help
Topic: Migrating Mantis issues to gitlab ...missing Notes
Replies: 7
Views: 4730

Re: Migrating Mantis issues to gitlab ...missing Notes

The "notes" column is available for selection in the CSV export: screenshot.png However, that may have been added in a later version of MantisBT, I'm not sure. Please note that 1.2.17 is no longer supported, for many years now... Anyway, that will give you all notes put together in a singl...
by dregad
02 Feb 2022, 09:15
Forum: General Plugin Discussion
Topic: Api plugin that can be used by other plugins
Replies: 1
Views: 16497

Re: Api plugin that can be used by other plugins

Did you try to override the currently active plugin, before calling plugin_config_get() ? Check plugin_push_current() / plugin_pop_current(). As an example, the Source Integration plugin framework uses this so VCS-specific child plugins (e.g. SourceGithub ) can access settings defined in the "m...