Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

[dev.icinga.com #4965] falsche Zeichen bei der Auslieferung von Java-Script #1230

Closed
icinga-migration opened this issue Oct 28, 2013 · 1 comment

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/4965

Created by Alex76 on 2013-10-28 18:26:32 +00:00

Assignee: (none)
Status: Rejected (closed on 2013-10-28 19:13:00 +00:00)
Target Version: 1.10.1
Last Update: 2013-10-28 19:13:00 +00:00 (in Redmine)

Icinga Version: 1.9.3
Icinga Web Version: 1.10.0
IDO Version: 1.9.3
OS Version: Debian 7.2
DB Type: MySQL
DB Version: 5.5
Browser Version: alle

as Problem dürfte beim Ausliefern entstehen. Der Apache Server liefert den Java-Script Code mit dem:

Content-Type: text/javascript;charset=UTF-8

aus.

Somit werden die Zeichen als falsch anerkannt. Hierbei müsste man den Quellcode von Icinga-Web anpassen, damit dies keinen Fehler mehr wirft. Entweder beim erzeugen des Caches oder gleich im Subversion/Git oder was Ihr da verwendet.

Das Problem liegt darin, dass die Zeichen C2 und 92 ein  sind in UTF-8. Warum das überhaupt im Javascript drinnen ist, kann ich nicht nachvollziehen. Muss sich wohl mal durch einen eigenartigen Editor eingeschlichen haben.

siehe: http://www.monitoring-portal.org/wbb/index.php?page=Thread&threadID=29665

Changesets

2014-02-18 12:29:42 +00:00 by mfrosch 2aabafa

Fix non-breaking space UTF-8 character throughout the code

This is a char inserted on a Mac by using ALT+Space.

Char: U+00A0 --> " "

Fixes #4965 #4966

Relations:

@icinga-migration
Copy link
Author

Updated by jmosshammer on 2013-10-28 19:13:00 +00:00

  • Status changed from New to Rejected

Sorry, I'll have reject this bug as it's not in english (we're an international project).

The problem happens when you're programming on a mac and hit alt-space (don't ask me why) - that was my fault.
See #4966.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant