Giter VIP home page Giter VIP logo

mantisbt-plugins / source-integration Goto Github PK

View Code? Open in Web Editor NEW
181.0 30.0 130.0 1.58 MB

Source control integration plugin framework for MantisBT, including support for Github, Gitlab, Bitbucket, Gitweb, Cgit, Subversion, Mercurial and more

Home Page: http://noswap.com/projects/source-integration/

License: MIT License

PHP 97.05% JavaScript 1.64% Shell 0.78% Batchfile 0.17% PowerShell 0.36%
mantisbt plugin github gitlab bitbucket svn subversion mercurial vcs gitweb

source-integration's Introduction

Mantis Source Integration

Gitter

Copyright (c) 2008 - 2012 John Reese - https://noswap.com
Copyright (c) 2012 - 2022 MantisBT Team - [email protected]

Released under the MIT license

Description

The Source plugin provides a flexible framework for fully integrating any sort of Version Control System (VCS) with Mantis, including support for multiple repositories, changesets or revisions, and file path tracking. It has many features already, such as importing repository history and optional support for remote check-ins or imports, and utilizes a class-based API to access objects in the database.

Initial support is included for Subversion and Git repositories using the following extension plugins:

  • SourceBitBucket: Git repositories hosted on BitBucket.
  • SourceCgit: Git repositories accessible via a cgit web frontend installation.
  • SourceGithub: Git repositories hosted on GitHub.
  • SourceGitlab: Git repositories hosted on GitLab.
  • SourceAzureDevOps: Git repositories hosted on Azure DevOps Services Repos.
  • SourceGitphp: Git repositories accessible via a Gitphp web frontend installation.
  • SourceGitweb: Git repositories accessible via a GitWeb web frontend installation.
  • SourceHgWeb: Mercurial repositories accessible via a HgWeb frontend installation.
  • SourceSFSVN: SVN repositories hosted on SourceForge.
  • SourceSVN: SVN repositories locally accessible by the SVN binaries.
  • SourceViewVC: SVN repositories accessible via a ViewVC web frontend installation.
  • SourceVisualSVNServer: SVN repositories hosted on a VisualSVN Server installation, with support for URL linking from MantisBT to VisualSVN Server's built-in web frontend.
  • SourceWebSVN: SVN repositories accessible via a WebSVN web frontend installation.

Support for additional source control tools should be rather straightforward to implement due to the flexibility inherent in the integration framework and API.

Requirements

The Source Integration framework requires MantisBT version 2.21.0 or higher.

VCS plugins

Some VCS plugins have additional, specific requirements:

Installation

Compatibility

The Source Integration framework's version numbering follows Semantic Versioning. Major version increments indicate a change in the minimum required MantisBT version.

See the Change log for detailed revision history.

Depending on which version of MantisBT you are using, please make sure to get the appropriate version of the source code. Use release tags, or the relevant branch in the Plugin's GitHub repository, as per the table below:

MantisBT version Tags Branch Notes
2.x v2.* master Current release
1.3.x v1.* master-1.3.x Support ended 2020-12-31
1.2.x v0.* master-1.2.x Support ended 2017-06-30

Setup instructions

  1. Download the appropriate version (see Compatibility section above) or clone a copy of the source code and checkout the correct branch.

  2. Copy the primary Source plugin (the Source/ directory) into your Mantis installation's plugins/ directory.

  3. Copy all the remaining plugins, or just the appropriate ones for your repositories, into your Mantis installation's plugins/ directory.

  4. While logged into your Mantis installation as an administrator, go to 'Manage' -> "Manage Plugins".

  5. In the "Available Plugins" list, you'll find the "Source Control Integration" and additional plugins:

    a. First, click the "Install" link for the "Source Control Integration" plugin.

    b. Next, click the "Install" link next to any additional Source Control plugins appropriate for your repositories.

  6. Click on the "Source Control Integration" plugin to configure it.

    NOTE: an API Key must be set up to import changesets via shell. To generate a random key, run

     openssl rand -hex 12
    
  7. Go to "Repositories" and enter your repository name, select the repository type, and click "Create Repository" to begin adding your first repository.

  8. Configure the repository, following the specific documentation for the relevant plugin extension:

  9. Once configured, click the "Return to Repository" link and click either the "Import Everything" or "Import Newest Data" button to perform initial import of repository changesets and verify configuration.

  10. Once satisfied that your repository is configured & working correctly, you can automate the import of new changesets by configuring a cron job on the web server where your Mantis installation resides, as follows:

    • import via curl (could run into timeouts on large repositories, or block your webserver)

        curl "http://host.domain.tld/mantisbt/plugin.php?page=Source/import&id=all&api_key=<YOUR_API_KEY>"
      
    • import via shell

        php-cgi -f plugin.php page=Source/import id=all api_key=<YOUR_API_KEY>
      

      Please be aware of the difference between php-cgi and php-cli. The import won't run with php-cli.

    This will import new changesets for all configured repositories.

  11. You can also configure event-driven import of new changesets. Many source control systems support configurable hooks or triggers which can be used to notify the Source plugin that new commits or revisions are available for import. This improves user experience by eliminating delays between source control commits and MantisBT state updates.

    Refer to the configuration documentation for the relevant plugin extension(s) for more information.

  12. Add additional repositories as needed.

Support

The following support channels are available if you wish to file a bug report, or have questions related to use and installation:

All code contributions (bug fixes, new features and enhancements, additional VCS integration plugins) are welcome and highly encouraged, preferably as a Pull Request.

The latest source code is available on GitHub; John Reese's original project documentation can be found on his website, noswap.com.

source-integration's People

Contributors

01-scripts avatar amyreese avatar ashumkin avatar atrol avatar bright-tools avatar ckhalilo avatar comargo avatar davidhicks avatar davidhopkinsfbr avatar dregad avatar dtamajon avatar jeckyhl avatar kirill avatar lavoiesl avatar lazar2606 avatar morgant avatar obmsch avatar obones avatar okainov avatar philippbeckmann avatar philippschaefer avatar rick-gnous avatar roman-1983 avatar slankes avatar srombauts avatar sukima avatar syncguru avatar thinkl33t avatar vboctor avatar zipher04 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

source-integration's Issues

XML Getting truncated

$t_svnlog_xml = shell_exec( "$svn log -v -r $t_rev:HEAD --limit 200 $t_url --xml" );

Not sure why but after that line in SourceSVN.php is run, $t_svnlog_xml is missing the last </log> tag and the call to process_svn_log_xml() fails. I hacked around it with $t_svnlog_xml.='</log>'. When I run the SVN command manually, the trailing tag is there. Weird.

Bug to install plugin Source

When i want to install the Source plugin i have this message

APPLICATION ERROR #2503

La mise à jour du schéma pour le plugiciel a échoué en bloc #2.

My mantisbt version is 1.2.12. please help

Payload-data of Github service hook for MantisBT changed

While trying to get the MantisBT service hook on Github working together with my mantisbt installation (including source-integration), I think I recognized that the submitted data of the service hook has changed.

Right now the following data is submitted during the hook:
https://github.com/downloads/01-Scripts/source-integration/payload_data_array.txt

I'm attaching some code-changes that solved the problem for me.
Maybe someone can check the changes.

Incorrect datetime value when importing latest data from github

APPLICATION ERROR #401

Database query failed. Error received from database was #1292: Incorrect datetime value: '2012-12-04T11:11:04Z' for column 'timestamp' at row 1 for the query: INSERT INTO mantis_plugin_Source_changeset_table ( repo_id, revision, parent, branch, user_id,
timestamp, author, message, info, ported, author_email, committer, committer_email, committer_id
) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ).

Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.

Can't used in an organization

My team and me are using github, so we create a organization to manage our code.When I use SourceGithub to import our private repo to mantis, it failed.
Only return
Retrieving master ... failed (Not Found).

I create application both on my account and my organizaion, the auth passed, but i can't import, why it's failed?

SQL Server (timestamp) and Translation(GE)

Hello,

Windows 7 Prof SP1(32) - All Updates/Fixes applied (Locale: de-DE)
IIS 7.5
PHP 5.4.9
MantisBT 1.2.14 (Locale: Default)
SI-Plugins (VCS 0.18, SVN 0.16, WebSVN 0.17)
WebSVN 2.3.3
SQLServer Express 2012
Subversion 1.7.8
TortoiseSVN 1.7.11

  1. Source Integration only works if I set the MantisBT.SQLServer.LogonAccount(User).Language to 'English', due to Locale issues with 'Matis_plugin_Source_changeset_Table.timestamp'. DateTime will not work reliable on Values with 'yyyy-mm-dd hh:mm:ss' format like '2013-03-07 12:00:00 (3rd of July 2013 on my system), or '2013-03-17 12:00:00' (out of range exception - 17 is not a month in my Locale) on SQLServer. Given format depends on Locale on all versions of SQLServer.

Possible Resolutions:
a) Advice to set the language of the MantisBT User on SQLServer to 'English'. Easy done, only one.
b) Use ISO 8601 Format 'yyyy-mm-ddThh:mm:ss' on Updates/Inserts.

I don't care, but please adjust the format of dates in changelogs. I get someting like '2013-03-20T15:52:57Z'. Would prefer '2013-03-20 15:52:57'.

  1. For lang.DE:
    change $s_plugin_SourceWebSVN_websvn_path = 'WebSVN Path...
    to $s_plugin_SourceWebSVN_websvn_path = 'WebSVN Pfad...

Martin

Change timestamp type to (Unix)timestamp

Change 'Matis_plugin_Source_changeset_Table.timestamp' type to (Unix)timestamp.
Rationale:
a) All other dates in MantisBT are implemented this way.
b) Any server-side interpretation of dates is avoided. At least on MSSQLServer all 'Y-m-d H:i:s' dates depend on
Locale.

Follow-up(issue #53)

LG M.

Error when opening repositories management page with SQL Server

My configuration is MantisBT 1.2.12 with SQL Server 2008

An error occurs when opening repositories management page :
operand text is not valid for count operator

the query is

SELECT COUNT(DISTINCT filename) FROM mantis_plugin_Source_file_table AS f
JOIN mantis_plugin_Source_changeset_table AS c
ON c.id=f.change_id
WHERE c.repo_id=?

My workaround is to use VARCHAR column type instead of TEXT

ALTER TABLE mantis_plugin_Source_file_table
ALTER COLUMN filename VARCHAR(250) NOT NULL

Maybe VARCHAR(MAX) would be better ?

Wrong URL on emails (SourceSVN)

When fixing an issue, the URLs on the email body are http://localhost/... instead of using the actual server hostname.
When adding notes or updating issues, emails are sent with the correct URL.

e.g: (sorry, but it is on PT-Br)
Issue fixed by SourceSVN:

O seguinte caso foi RESOLVIDO. 
======================================================================
http://localhost/mantis/view.php?id=107
====================================================================== 
Relatado por:               reporter
Atribuído a:                developer

Issue updated:

O seguinte caso foi ATUALIZADO. 
======================================================================
http://hostname.of.my.server/mantis/view.php?id=107
====================================================================== 
Relatado por:               reporter
Atribuído a:                developer

Notes are added as public when fixing bugs

When fixing bugs, a not is added in public state, and this is hard coded.

I just hard coded it to private for my needs, but it would be nice to have this either use the default for adding bug notes, or eventually have it configurable through a new variable.

check_svn() doesn't take arguments into account

On a windows installation SVN might require a custom argument to work properly.

In specific "--config-dir C:\Users\Administrator\AppData\Roaming\Subversion\config"

The function check_svn() in SourceSVN.php doesn't take the arguments in account - and hence SVN-integration is failing on line 265 without any logging of explanation.

Currently I work around this issue by commenting line 265. But more ideal would be a NON-generic error, the console output and to include the svn arguments.

String "plugin_Source_import_latest_failed" not found

Using the Source & SourceGithub plugins from master, I get the following error when running an "Import Latest Data" on a repository which fails:

APPLICATION WARNING #300: String "plugin_Source_import_latest_failed" not found.

I have confirmed that the plugin_Source_import_latest_failed string does not exist in master.

Mantis with GitHub

Hi,
I've installed the plugins on my Mantis and tried to integrate with GitHub.
But I get the following error when importing data on a repository.

APPLICATION ERROR #401
Database query failed. Error received from database was #1048: Column 'revision' cannot be null for the query: INSERT INTO mantis_plugin_Source_changeset_table ( repo_id, revision, parent, branch, user_id,
timestamp, author, message, info, ported, author_email, committer, committer_email, committer_id
) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ).

Any help will be appreciated.

Thanks

Mantis 1.2.8 - Installation failure

On MantisBT 1.2.8 the installation of the SourceIntegration appears to fail. The plugin does not create the required database tables.

This leads to critical errors such as:
Database Query failed. The report message is #-1: ERROR: relation "mantis_plugin_source_bug_table" does not exist LINE 1: SELECT * FROM mantis_plugin_Source_bug_table WHERE bug_id IN... ^ for the query: SELECT * FROM mantis_plugin_Source_bug_table WHERE bug_id IN ( 6987,7094,7093,7092,7023,6319,7015,7021,7016,7033,7057,7078,7024,7036,6979,6284,7014,7025,7077,7063,6086,6479,7091,7009,7035,6967,6709,183,6800,7084,7086,7088,6992,7090,1299,6252,6124,7002,6719,7075,7087,6671,6952,7071,6416,690,7055,7085,6473,6584 ).

There is no reason or message given on why the database tables are not created.

SourceGitweb: #1048: Column 'author' cannot be null

#1048: Column 'author' cannot be null error occures when trying to import changesets with Gitweb.

Problem is in commit_changeset( ) where newline chars are stripped off of the input string, but the regexp is checking for a newline.

Proposed fix is to change the \n to \s* in
preg_match( '#author(?:<a[^>]>)?([^<>])(?:)? (?:<a[^>]>)?<([^<>])>(?:)?(?:<[^<>]>\s_)?\n\w, (\d_ \w* \d* \d_:\d_:\d*)#', $t_gitweb_data, $t_matches );

I am proposing \s* for better readability when checking the actual output of Gitweb.

Same problem happens with
preg_match( '#

\n(.*)\n
#', $t_gitweb_data, $t_matches );

Changing the \n to \s* fixes the problem

GitHub integration fails due to missing user agent in GET requests

I was wondering why suddenly the GitHub integration does not work anymore.
The reason is that GitHub now requires a valid user agent to be sent with any http request (see http://developer.github.com/v3/#user-agent-required )

The problem is that the function
function url_get
in /mantis/core/url_api.php does not provide a user agent string.

I did a very crude hack that basically enforces CURL and sets a user agent
like this:

if( !ini_get_bool( 'allow_url_fopen' ) ) { // disable file_get_contents
    return @file_get_contents( $p_url );
}
# Use the PHP cURL extension
if( function_exists( 'curl_init' ) ) {
    $t_curl = curl_init( $p_url );
    curl_setopt($t_curl,CURLOPT_USERAGENT,'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13'); // Set a user agent
    curl_setopt( $t_curl, CURLOPT_RETURNTRANSFER, true );

    $t_data = curl_exec( $t_curl );
    curl_close( $t_curl );
    return $t_data;
}

I'd recommend to either change the Mantis API or use your own function url_get in the Source plugin.

Thank you for a great plugin.

Import fails: Duplicate entry in mantis_plugin_Source_bug_table

Hi, I get the following error when importing :

APPLICATION ERROR #401
Database query failed. Error received from database was #1062: Duplicate entry '8673-1136' for key 1 for the query: INSERT INTO mantis_plugin_Source_bug_table ( change_id, bug_id ) VALUES (?, ?), (?, ?), (?, ?), (?, ?).

all I changed is the regexp as follows:
svn commit message is: "[FFT-00012345] blah blah"

Bug Link Regex Pass 1 : /[FFT-(\d_)1-9].*/i
Bug Link Regex Pass 2 : /(\d+)/

has anyone seen this message before ?
thanks !

svn post-commit http post broken with --xml patch

Windows 7 Prof SP1(32) - All Updates/Fixes applied (Locale: de-DE)
IIS 7.5
PHP 5.4.18
MantisBT 1.2.15 (Locale: Default)
SI-Plugins (VCS 0.18, SVN 0.16, WebSVN 0.17)
WebSVN 2.3.3
SQLServer Express 2012 (SP1)
Subversion 1.8.1
TortoiseSVN 1.8.1

I tried the version as of 20130820 (with xml patch) to get my issue (#62) with german umlauts solved.

With this version my custom post-commit hook, which notifies MantisBT about the commit, no longer works(http post -> ..../plugin.php?page=Source/checkin).

At least neither a changeset nor a bug_note for resolved issues (state isn't change either) is added to the db.

A diff between my working version(20130305) and the tested shows only relevant changes in SourceSVN.php. My knowledge of PHP isn't sufficient to figure out what's going wrong here.

And please increment the version number of the module

SVN can't determine the user's config path

On Windows I'm getting the following error when I try to Import Latest Data:

svn: E125001: Can't determine the user's config path

I tried setting the --config-dir argument in the config page, but it looks like this isn't being used in check_svn() to test with svn help.

Per-repository permissions

I am running a Mantis instance which hosts different projects with different users and different permissions, but all repositories are visible to everyone.

It would be nice to be able to assign a repository to a project, and then have the project permissions apply for the repository as well.

Incorrect users in history when attaching changeset

Commits authored by someone without write access to repository and/or without being developer in MantisBT are not registered properly in the MantisBT history, as shown in the issue below

http://www.mantisbt.org/bugs/view.php?id=14700&history=1#history

In this example, the commit was authored by "JGuilbaud" aka LapinKiller in MantisBT, and committed by me.

  • Changeset attach event is logged by non-existent user id '0'
  • Issue fields updates are done by 'anonymous' user
Date Modified    Username       Field                    Change               
====================================================================== 
[...snip...]
2012-09-10 09:29 user0          Changeset attached        => MantisBT
master-1.2.x 7aa07d86
2012-09-10 09:29 anonymous      Status                   assigned => resolved
2012-09-10 09:29 anonymous      Resolution               open => fixed       
2012-09-10 09:29 anonymous      Fixed in Version          => 1.2.x           
======================================================================

I believe the author should be the committer.

Do imports happen automatically?

So I have everything working great, but I'm a little confused on this.

When I was testing, it seemed that imports happened automatically. But a colleague just push, and the import didn't happen. I ran import latest data, and his changes came in successfully.

Does the import need to be automated? If so, do you have any recommendations for the setup (I was going to use wget from Jenkins... do you have a different approach?)

SVN: Any way to parse revprop changes?

Specifically, certain members of our development team insist on committing, testing the autobuild executables, then changing their commit messages to indicate fixes (rather than "speculating" on fixes beforehand). I currently can't see a way to have the SCI plugin(s) parse the revprop changes and update the already imported changeset logs. Is this even do-able with the current plugins?

Running SCI 0.18, SVN-I 0.16, WebSVN-I 0.17 against MantisBT 1.2.15 on Ubuntu 10.04 LTS

SOAP - Plugin

Do I understand correctly, that it is impossible to access the information provided by plugin from SOAP?
What I would like to do, is to get the list of changesets attached to issue using any easy parsable form (JSON, SOAP...)

Github: Timeout-problem importing a big repository

Hello,

I'm facing a problem when I try to import a kind of big repository for the first time with the source-integration-plugin for Github.
I've just installed the newest version of mantis, applied the patch to get it working together with SourceGithub and tried to do a complete import of one of my repositories.

But after around 60s my provider ends the process.
This leads in some cases to a new project enry named "Imported ....current date&time". And in some other cases (if I only import som special branches), the commits of these branches are imported but now connection between the issues and the commits are made.

Any idea how I can solve that problem for me? Is it possible to break the import process into smaller pieces?

Regards,
Michael

Git integration question

I'd like to use the Source plugin (only - don't need the others) to connect to existing repositories on my server. When I use the Mantis interface where the repository is created, where are the actual files? I'd like to know where they are so I can issue a 'git clone' in that directory and just have the web interface see the repositories that I've copied over to the server.

Project specific email notifications does not work with source-integration

Source Control Integration Plugin does not respect the custom email notifications configured for a particular project.

For example, consider a project has an Email Notification Configuration which allows all the Developers(role) to receive email notifications when an issue is Resolved. The notifications are NOT sent to Developers and only the reporter and administrators receives the notification.

However, the notifications are sent to Developers when an issue is resolved through the Mantis Web Interface.

Gitlab integration

Is it possible to integrating Mantis with Gitlab? I see no available plugin yet.

Import does not work gitweb version 1.7.7

Two problems:

The first is already reported by issue #24, and it is fixed by purposed fix for issue #24 (#25)

The second is that after applying that fix, and doing import, the changesets does not appear correctly - the left side of the "changesets" view does work (showing author, timestamp, etc') but the right side (showing commit message etc') does not (appears empty)

Please Help ? ?

History doesn't take into account permission

Hi,

When "View Threshold" is set to "developer", user with access level "reporter" can't see the changesets, good. However they can see them indirectly in the history with a quite explicit message. I expect them to see no informations about commits.

For reference in order to hard code this behavior for this configuration, I added the following code in history_get_raw_events_array in core/history_api.php

if( $v_type == PLUGIN_HISTORY && ($v_field_name == "Source_changeset_attached" || $v_field_name == "Source_changeset_removed")) {
          if( !$t_private_bugnote_visible ) {
                        continue;
              }
   }

Incorrect user access when displaying changesets in bug view

In file SourceIntegration.php, function displayBug, line 36, you use function access_has_global_level to know if you should display changeset.

This fails if global access is not the same than project access.

The function access_has_project_level should be used instead.

Incompatibilities with SQL Server

This bug report follows bug #36 ; I found some others incomptabilities with SQL Server

config : MantisBT 1.2.12 with SQL Server 2008
plugin-version : master (changeset 2a0e94b)

1° Error when searching issues (Repositories > Search ; search for all changesets) saying that c.timestamp field is not in a aggregate function
query :

SELECT COUNT(c.id) 
FROM mantis_plugin_Source_changeset_table AS c 
LEFT JOIN mantis_plugin_Source_repository_table AS r ON c.repo_id=r.id
ORDER BY c.timestamp DESC

This is caused by ORDER BY clause at the end of query

2° Again when searching issues --> error cannot compare TEXT fields
query :

SELECT DISTINCT( c.id ), c.* 
FROM mantis_plugin_Source_changeset_table
 AS c LEFT JOIN mantis_plugin_Source_repository_table AS r 
 ON c.repo_id=r.id ORDER BY c.timestamp DESC

This is caused by DISTINCT clause.

My workarounds / solutions :
1° move $t_order variable from Source_Process_Filters(..) to find(..) function. The find(..) function becomes :

list( $t_filters, $t_filter_params ) = Source_Twomap( 'Source_Process_FilterOption', $this->filters );
list ( $t_query_tail, $t_params ) = Source_Process_Filters( $t_filters, $t_filter_params );
$t_order = 'ORDER BY c.timestamp DESC';

$t_count_query = "SELECT COUNT(c.id) $t_query_tail";
$t_full_query = "SELECT DISTINCT( c.id ), c.* $t_query_tail $t_order";
# ...

2° Simply delete DISTINCT keyword (seem not useful here) ini Source.FilterAPI.php, function find

German Umlauts

Windows 7 Prof SP1(32) - All Updates/Fixes applied (Locale: de-DE)
IIS 7.5
PHP 5.4.9
MantisBT 1.2.15 (Locale: Default)
SI-Plugins (VCS 0.18, SVN 0.16, WebSVN 0.17)
WebSVN 2.3.3
SQLServer Express 2012 (SP1)
Subversion 1.7.9
TortoiseSVN 1.7.12

Perhaps that's not an issue at all, but due to my current configuration.
For all change sets, whenever the log message contains German Umlauts the message don't show up in the views.
I'd edited some of them in the db(mantis_plugin_Source_changeset_table) directly ('ä' -> 'ae'...) and those are displayed.

LG M.

Lacks current documentation

Source Integration lacks current installation & usage instructions. All the examples from leetcode.net/noswap.com are outdated and now that Source Integration is no longer being actively maintained by @jreese, it seems appropriate to update the README and start pulling documentation into the repository.

Replace occurences of deprecated `db_query` API

In MantisBT 1.3, the db_query() function will be removed from the API (see mantisbt/mantisbt#128).
The following occurences have been found in this plugin; they should be replaced
by db_query_bound() calls

Source/Source.API.php:718:      $t_result = db_query( $t_query );
Source/Source.API.php:793:      $t_result = db_query( $t_query );
Source/Source.API.php:1528:     $t_result = db_query( $t_query );

Cgit plugin does not retrieve all revisions

For some reason, Cgit imports all revisions of my project up to a particular revision, and any attempt to import newer data (using "Import Latest Data" from the Manage Repositories interface, or using the post-receive hook below)

#!/bin/sh

curl "http://localhost/issues/plugin.php?page=Source/import&id=allapi_key=MY_API_KEY"

results in this message:

Oldest 'master' branch parent: ''
Retrieving master ... processing fdeca4274efd46b4122c3b2cecedb0c06a12019d ... already exists.

I've tried deleting the repository configuration and re-creating it and it's stuck at the same revision.

If I pick "Import Everything" I get some "already exists" message as well, for example

Retrieving 2a1973c8be416890722f5a275a761787e0bdca87 ... processing 2a1973c8be416890722f5a275a761787e0bdca87 ... already exists.

interspersed among the normal ones, ending with the same revision as when updating

Retrieving 09afc275dc6841b92c6e6ffe980bc6d02f5ca25b ... processing 09afc275dc6841b92c6e6ffe980bc6d02f5ca25b ... saved.

Oldest 'master' branch parent: ''
Retrieving master ... processing fdeca4274efd46b4122c3b2cecedb0c06a12019d ... already exists.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.