View Issue Details

IDProjectCategoryView StatusLast Update
0019848Plugin - ReminderGeneralpublic2017-01-17 02:16
Reporterrakekniven Assigned Todregad  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Summary0019848: Plugin does not work with Jenkins (CI) via SOAP
Description

As soon as the plugin is enabled jenkins cannot interact with mantis anymore.

Jenkins log says:
org.xml.sax.SAXParseException: Content is not allowed in prolog

Following link enlighted me:
https://stackoverflow.com/questions/20551572/saxparseexception-content-is-not-allowed-in-prolog

Link to module: https://wiki.jenkins-ci.org/display/JENKINS/Mantis+Plugin

Filed issue at jenkins some weeks ago with a lot of log information:
https://issues.jenkins-ci.org/browse/JENKINS-28381

TagsNo tags attached.

Activities

atrol

atrol

2015-06-18 11:31

developer   ~0050933

I am not the author of this plugin. I hope he will have a look at it.

I don't use the plugin and do not have time to dive into the code.
Thus, just a guess:
I found that the strings_german.txt is stored as "UTF-8 with BOM".
Does storing the file as "UTF-8 without BOM" fix the issue?

rakekniven

rakekniven

2015-06-18 11:46

reporter   ~0050934

Hello,

I spent way to much time to get to this point ... wait

rakekniven

rakekniven

2015-06-18 11:55

reporter   ~0050935

Hey atrol,

you hit the bulls eye. Only the german file is stored with BOM.
Changed it and it works.

Please do not fix!
I doing my first steps with git on github and willing to prepare an PR.

Thx.

atrol

atrol

2015-06-18 18:17

developer   ~0050940

Please do not fix!
Don't worry ;-)
I have hardly any time to fix bugs in MantisBT core, so I will not invest time in fixing bugs of 3rd party plugins.

rakekniven

rakekniven

2016-01-01 15:57

reporter   ~0052220

Just wanted to create PR.
So I forked code from https://github.com/mantisbt-plugins/Reminder to https://github.com/rakekniven/Reminder and there my doubt came up:
The german file has no BOM.
Next step was to check commit log.
No changes on german file the last years.
What happened? Where is the pain causing BOM? Who killed it?

atrol

atrol

2016-01-01 16:37

developer   ~0052221

What happened?
Really strange, no idea at the moment.
Maybe a temporary bug in GitHub and/or Git

dregad

dregad

2016-01-01 17:10

developer   ~0052224

@rakekniven

The original file from the ZIP files which I used as the source to create the Git repository had (ref. tag v1.22)

strings_german.txt:  PHP script, UTF-8 Unicode (with BOM) text, with CRLF line terminators

I converted all files to use Unix line endings [1], which actually fixed the BOM issue. I can only assume that you were using the plugin based on the original release from cas.

Anyway I hope this clarifies.

[1] see commit https://github.com/mantisbt-plugins/Reminder/commit/7b8f2053cd6bf59878d950d5b03ec30965e424b8

dregad

dregad

2016-01-01 17:23

developer   ~0052226

Let us know if this issue can be closed.

rakekniven

rakekniven

2016-01-01 17:24

reporter   ~0052227

Please close it and still saying "Happy new year".
Loving mantisbt a lot.