Openfire xml debugger plugin - xmpp

I'm using openfire v4.1.1 and xmldebugger plugin v1.6.0 for my server side. The plugin will print raw XML as it was received and sent by the server as well as interpreted XML (i.e. parsed XML). By default the plugin will only print raw XML.
My problem is, the XML debugger plugin prints only raw XML traffic to stdout even thought the debugger plugin is configured with plugin.debugger.interpretedAllowed - true to print XML packets after they were parsed by the server. Don't know what I've missed. Added screen shot for reference.

XML debugger plugin prints only raw XML traffic to stdout.
This issue has been fixed In latest debugger plugin v1.7.0. The source code for the plugin can be obtained from git Openfire master branch. Check the source for code changes. The following are the fixes they made.
Debugger plugin will not print encrypted or compressed data.
Debugger plugin will display remote address.
Don't try the plugin source from any latest openfire source because the xml debugger plugin source has not be updated to latest v1.7.0.

Related

Unity webgl: Unable to parse Build/vectorunknown builds.framework.js.gz! enable "Content-Encoding: gzip" in response headers in github pages

I have a unity webgl project and I pushed the webgl build to my git branch as shown below.
I deployed this branch to my github page as shown below.
The build is working on my local with the help of servez. However, on github pages (and my local without servez) it gives the following error:
Unable to parse Build/vectorunknown builds.framework.js.gz! This can
happen if build compression was enabled but web server hosting the
content was misconfigured to not serve the file with HTTP Response
Header "Content-Encoding: gzip" present. Check browser Console and
Devtools Network tab to debug.
How do I deploy to github page with "Content-Encoding: gzip" response header included? How do I make it work? Do I need to make webgl with different options in Unity instead? Kindly help!
I went to Edit > Project Settings > Player > Publishing settings and disabled the compression. it worked after that. However, the colors look weird after that. i wish there was another better way.
I had the same error message. When I inspected network traffic using browser developer tools, I could see no "Content-Encoding: gzip" response header. I added the mime types required by Unity to the server configuration, but still couldn't get the needed Content-Encoding response header to appear.
However, I found that enabling Player Settings > Publishing Settings > Decompression fallback solved the problem for me. According to these docs, "The decompression fallback option enables Unity to automatically embed a JavaScript decompressor into your build. This decompressor corresponds to your selected compression method, and decompresses your content if the browser fails to do so."
Presumably there's a somewhat slower startup because of having to download the JavaScript decompressor.

Is there a REST API for Jenkins plugins?

I'm trying to write a script that quickly checks if our Jenkins plugins are up to date. I know that this is a built in feature in Jenkins, but for security reasons, our Jenkins instance doesn't have internet access.
I know that I can get a lot of information about a plugin, including version, from:
https://plugins.jenkins.io/<name-of-plugin>
However, I can't get it to return anything other than HTML. I could scrape the HTML for the version number, but if there is a stable API that returns JSON or similar, that would be preferred. I'm pretty sure Jenkins isn't scraping HTML to check for updates, so the API must exist. Does anyone know where it is?
There seem to be two solutions available. I ended up scraping:
https://updates.jenkins.io/download/plugins/<name-of-plugin>
The latest version is always in the second column of the second row, so scraping is trivial. It works well most of the time, but sometimes the connection is refused, which I assume might be due to of the volume of requests sent by the script.
Another option that I found is to download the following JSON file:
https://updates.jenkins.io/current/update-center.actual.json
It is currently 1.7MB and contains information about the latest version of all Jenkins plugins. It also contains meta data like dependencies, which allows your script to validate that all dependencies are satisfied.
Unfortunately I haven't found a way to download JSON for individual plugins, so you either have to scrape HTML for individual plugins or download a massive JSON for all plugins.
Update: I found the API:
https://plugins.jenkins.io/api/plugin/<name-of-plugin>
And I also found the source code and the documentation:
https://github.com/jenkins-infra/plugin-site-api

Eclipse Browser has problems with rest api call

I have a problem with my eclipse browser.
If i call the url of my sonarqube server (https://sonar) everthing works fine and eclipse shows me the page. But if i try to call the api (https://sonar/api/system/status) it returns with an error window which says that the page could not be opened. The same url worked for me in normal browsers.
Question
Does eclipse browser has problems with calling rest apis in general? Or is there something i could do to make it work?
System:
Windows 10 Pro (10.0.15063 Build 15063)
Eclipse Oxygen.1a Release (4.7.1a)
Ok, the problem seems to be in IE (which is used by eclipse in default). If i call the url in IE it wants to download the json answer. I changed some values in registry so IE just show me the json in browser directly. After that also eclipse could show me hte result without error.
Here is my ie_json.reg file i executed to change values in registry:
Windows Registry Editor Version 5.00;
; Tell IE 7,8,9,10 to open JSON documents in the browser on Windows XP and later.
; 25336920-03F9-11cf-8FD0-00AA00686F13 is the CLSID for the "Browse in place" .
;
[HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/json]
"CLSID"="{25336920-03F9-11cf-8FD0-00AA00686F13}"
"Encoding"=hex:08,00,00,00
I found this solution at http://developers.de/blogs/holger_vetter/archive/2013/12/13/view-json-in-internet-explorer-7-11.aspx

Enable preset plugins in Ckeditor 4.5.8

I am using CKeditor via cdn //cdn.ckeditor.com/4.5.8/full/ckeditor.js.
I wish to enable a preset plugin and do not know how to go about it. i need clear code example.
I have seen this tutorial on using the cdn but it talks about local plugins.
Code snippet is one of the plugins I want to enable.
Working locally with CKeditor in laravel 5.2 is a lot of headache. I keep have this error SyntaxError: illegal character when I inmport my javascript files. My laravel view uses blade template engine. I do not have this issues with CDN imports.
I resolved the issue after many days. all the javascript(not only Ckeditor or Tinymce) files I imported in laravel always gave the syntaxError: illegal character like this
I notices that in every response a header information was automatically pasted as well as a funny character. I solved this using two major steps.
I opened all the javascript files using notepad++ and deleted the first line (usually comments) using backspace and type it back manually, then saved the files.
I realized the header info HTTP/1.1 200 OK was some how related to the server configuration. I switched form using the in-built server php artisan serve to virtual host on xampp. And everything works well.
NB: This problem has nothing to do with Laravel 5.x. I personally think that this problems arise due to the copying and pasting, and downloading of files from the server.
To benefit from the advanced features of a full flesh server, I decided to use virtual host in xampp for development.
I am very happy. Hope it helps!

Incorrect Content Length When Running Perl Dancer On Apache

I am just getting started with setting up an app using Perl Dancer on Apache. I used the provided dancer script to setup my initial directory structure, and was able to get things setup to the point of seeing the initial "Perl is Dancing" page. Unfortunately, I noticed that the very end of the HTML markup is not included when I do a view source. Further investigation with Fiddler revealed the following error:
Content-Length mismatch: Response Header indicated 3,168 bytes, but server sent 3,364 bytes.
After seeing this, I did some additional experimentation, running the Dancer app directly via invoking app.pl from the command line. When I access that server, I get the full HTML markup and not content-length issues are reported by Fiddler.
Does anyone have any ideas why I may be seeing this incorrect content length issue when running through Apache? I should also mention that I am running through the generated CGI script that invokes app.pl via Plack::Runner. Please let me know if I need to provide additional details.
Dancer version is 1.3030 and Plack version is 0.9976.
It turns out that there was an issue with Plack. The revision history mentions "Fixed a CGI/FastCGI handler to ensure newlines are not mangled on Win32 platforms" for version 0.9977 (I failed to mention previously that I am running on Win32). I updated Plack to the latest version (currently 0.9978), and the problem went away.