Bug 314225

Summary: Encoding problem editing apache config files
Product: [Applications] kate Reporter: aungsan <mike.aungsan>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: grave Keywords: triaged
Priority: NOR    
Version First Reported In: 3.8.90   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: file to test

Description aungsan 2013-02-01 00:33:57 UTC
Open /etc/apache2/sites-enabled/000-default, Insert Tab or remove on existing lines and then save. Check apache configuration file by typing "apache2ctl configtest". You will see the error. If I do with gedit, it work. 

Reproducible: Always

Steps to Reproduce:
1.Open /etc/apache2/sites-enabled/000-default
2.Insert Tab or remove on existing lines and then save.
3.apache2ctl configtest
Actual Results:  
/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)
apache2: Syntax error on line 237 of /etc/apache2/apache2.conf: Syntax error on line 49 of /etc/apache2/sites-enabled/000-default: </VirtualHost> without matching <VirtualHost> section
Action 'configtest' failed.
The Apache error log may have more information.


Expected Results:  
Should not be any error at all.  If file is edited with gedit or vi or nano, it work.
Comment 1 Dominik Haumann 2013-02-01 08:53:41 UTC
Please attach the file that works, and the one that does not work, otherwise we can't say what's going wrong: Is it the file content? Is it file permissions?
Comment 2 Christoph Feck 2013-02-07 23:47:32 UTC
If you can provide the information requested in comment #1, please add it.
Comment 3 aungsan 2013-02-07 23:58:59 UTC
Created attachment 76995 [details]
file to test

Yes it is the file content. 
I attach the file. apache need to install sudo apt-get install apache. 
Please follow step 1. 2. 3.
There is not working file and non-working file. When file is edited with kate, apache can no longer understand its configuration file.
Comment 4 Dominik Haumann 2013-02-08 09:47:36 UTC
If I edit the file as you describe (insert or remove a <tab>), the content equals except on the line I changed (using vimdiff or kompare). So to me it looks like the content is not broken.

Possible problems:
1. make sure the file permissions are correct
2. make sure the document encoding is correct
Comment 5 aungsan 2013-02-08 17:12:23 UTC
That is true. Nothing seem wrong. But when I restart Apache service it
could not restart it.
It is encoding problem.


On Fri, Feb 8, 2013 at 1:47 AM, Dominik Haumann <dhaumann@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=314225
>
> --- Comment #4 from Dominik Haumann <dhaumann@kde.org> ---
> If I edit the file as you describe (insert or remove a <tab>), the content
> equals except on the line I changed (using vimdiff or kompare). So to me it
> looks like the content is not broken.
>
> Possible problems:
> 1. make sure the file permissions are correct
> 2. make sure the document encoding is correct
>
> --
> You are receiving this mail because:
> You reported the bug.
>
Comment 6 Dominik Haumann 2013-02-11 13:41:34 UTC
@aungsan: so if it is an encoding problem, this report can be closed right?
The encoding detection works as good as possible, so I fear we cannot do anything about it.
Comment 7 Andrew Crouthamel 2018-09-24 02:23:18 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Andrew Crouthamel 2018-10-27 04:08:56 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!