Search found 21 matches

by obmsch
Feb 03, 2020 7:05 pm
Forum: Help
Topic: REST API- picture attachment handling
Replies: 2
Views: 717

Re: REST API- picture attachment handling

As far as the php fileinfo extension is enabled, the mime type is build-in derived from the content. Something like

Code: Select all

  { "name": "test.jpg", "content": "<base64encoded_content_of_test.jpg>" }
should work in that case.
by obmsch
Feb 03, 2020 6:33 am
Forum: Help
Topic: REST API- Summary not specified
Replies: 11
Views: 1432

Re: REST API- Summary not specified

That might be true. But obviously they got stripped of either by the cmdline processing or
by curl itself. That's the reason I escaped all those qoutes in my test. There might be other
means to achieve this, but I guess curl is not the right tool to process such large request anyway.
by obmsch
Feb 03, 2020 5:54 am
Forum: Help
Topic: REST API- Summary not specified
Replies: 11
Views: 1432

Re: REST API- Summary not specified

At first glance the send data is wrong. All strings are missing qoutes ("). For example summary:summarysample should be
"summary":"summarysample". And after you fixed that, the mandantory 'category' (!) really needs to be "category": {"id": 1}.
by obmsch
Feb 03, 2020 5:18 am
Forum: Help
Topic: REST API- Summary not specified
Replies: 11
Views: 1432

Re: REST API- Summary not specified

Just to be sure that the send data is really valid json. Have you cross-checked that
with any JSON viewer? Please provide that part of the trace output.
by obmsch
Jan 31, 2020 2:51 pm
Forum: Help
Topic: REST API- Summary not specified
Replies: 11
Views: 1432

Re: REST API- Summary not specified

Running the following from a cmd on Win10, local MantisBT 2.23.0 (personal information -> ?): curl --trace-ascii - --location --request POST "http://mantisbt/api/rest/issues/" ^ --header "Authorization: ?" ^ --header "Content-Type: application/json" ^ --data-raw "{\"summary\": \"This is a test issue...
by obmsch
Jan 31, 2020 4:19 am
Forum: Help
Topic: REST API- Summary not specified
Replies: 11
Views: 1432

Re: REST API- Summary not specified

I don't use curl myself, but I guess "--data-urlencode" is the problem here. You might have a look at the rest api documentation: https://documenter.getpostman.com/view/29959/mantis-bug-tracker-rest-api/7Lt6zkP The samples there use "--data-raw". And "category_id":"1" is surely wrong. That should be...
by obmsch
Jan 08, 2020 2:02 pm
Forum: General Discussion
Topic: Problem REST API - adding issue
Replies: 2
Views: 977

Re: Problem REST API - adding issue

Hello MiSu, your data-raw is not valid json. Strings need to be double quoted not single(... "summary" : "test", ...). As your are using IIS, some remarks about that: You need a web.config for url rewrites in api/rest. That was added in 2.20.0, if I remember correctly. If you like to stay with 2.8.0...
by obmsch
Apr 05, 2019 3:53 am
Forum: General Discussion
Topic: Connection to SQL Server 2017 Express
Replies: 9
Views: 2918

Re: Connection to SQL Server 2017 Express

As I said in my previous post, login to SSMS with 'Windows Authentication' to manage/configure your instance. Users are under 'Security->Logins'. You can change any property (including pwd) of a user from there. And before you come back with the next basic question how to configure/manage your datab...
by obmsch
Apr 02, 2019 10:55 am
Forum: General Discussion
Topic: Connection to SQL Server 2017 Express
Replies: 9
Views: 2918

Re: Connection to SQL Server 2017 Express

Are you sure - your SQL Server Instance is running in mixed mode? - that user 'SA_Mantis' exists? - the password is correct? Try to connect with this credentials in SSMS. Make sure, that in the authentication dropdown 'Sql Server Authentication' is selected. This is just for testing. Switch back to ...
by obmsch
Mar 14, 2019 5:08 am
Forum: General Discussion
Topic: Connection to SQL Server 2017 Express
Replies: 9
Views: 2918

Re: Connection to SQL Server 2017 Express

I didn't talk about PHP versions, but the version of the php extension to access a specific database (SQL Server in your case). I only warned you to not use the latest release (5.6.0) there, but to take an older (5.3.0) one. All prerequisites, installation instructions and appropriate links are on h...
by obmsch
Mar 06, 2019 6:31 pm
Forum: General Discussion
Topic: Connection to SQL Server 2017 Express
Replies: 9
Views: 2918

Re: Connection to SQL Server 2017 Express

That link is pretty old, and a lot of things have improved on the MantisBT side with SQLServer. The current version (2.19.0) should install out of the box, if the prerequisites are fulfilled ( https://github.com/Microsoft/msphpsql ). As the latest driver (5.6.0) has a serious bug ( https://github.co...
by obmsch
Oct 19, 2018 3:00 am
Forum: General Discussion
Topic: PHP/SQLServer/MySQL
Replies: 6
Views: 2536

Re: PHP/SQLServer/MySQL

Looks like a start up issue with SQL Server Agent. Please check a) The SQL Server ERRORLOG and if present the SQLAgent.out file b) The windows event log (both application and system), if there are any entries around the time your error occurred That might reveal enough information about the exact ca...
by obmsch
May 24, 2018 2:21 am
Forum: General Discussion
Topic: PHP/SQLServer/MySQL
Replies: 6
Views: 2536

Re: PHP/SQLServer/MySQL

changed IIS to use PHP 7.1 ... Database connection failed. Error received from database was #0: PHP Support for database is not enabled Have you installed/enabled the appropriate driver (extension) in php? For recent releases: https://github.com/Microsoft/msphpsql/releases Make sure the prerequisit...
by obmsch
Nov 09, 2017 7:22 pm
Forum: General Discussion
Topic: Version running on mantisbt.org
Replies: 3
Views: 1731

Re: Version running on mantisbt.org

So that's a regression introduced with 2.8, but there are 2.6 and 2.7. Despite of the additional effort that would put on the spare time of the core developers, I would recommend to keep org in sync with the latest release. Step back to latest stable if regressions require that. Fix as soon as possi...
by obmsch
Nov 09, 2017 2:43 pm
Forum: General Discussion
Topic: Version running on mantisbt.org
Replies: 3
Views: 1731

Version running on mantisbt.org

With the release of MantisBT 2.8, your own Tracker (still 2.5.1-master-...) is way behind.
Makes me wonder if that's a simple oversight or anything else stops you from upgrading.
In any case I would feel more confident installing a new release, if org runs that too.

Martin