Anjuta project wizard broken by quotes used in user description

Asked by Petr Cech

Anjuta project wizard is unable to create a project properly when system user's description contains quote symbol (").

Steps to reproduce:
1. Update description for ubuntu user who is currently logged in to: Petr "celestian" Cech
2. Run Anjuta
3. File -> New... -> 4. Project
4. Click on Next
5. Click on Next
6. Click on Finish

Actual results:
Project is not created (but Anjuta claims that is). Menu Project is missing.

Console output:

  celestian@Omega:~$ anjuta
  /bin/sh: /usr/bin/esd: not found
  (anjuta:5957): GLib-CRITICAL **: g_markup_parse_context_parse: assertion `context->state != STATE_ERROR' failed
  (anjuta:5957): GLib-CRITICAL **: g_markup_parse_context_end_parse: assertion `context->state != STATE_ERROR' failed
  ** (anjuta:5957): WARNING **: Error at row 1 char 1: Document must start with element (for example: <book>)
  (anjuta:5957): GLib-CRITICAL **: g_markup_parse_context_end_parse: assertion `context->state != STATE_ERROR' failed

Expected results:
Project is created without errors. Menu Project exists.

Note:
Quote contained in the user's description is probably causing the parse error and should be escaped.

Question information

Language:
English Edit question
Status:
Solved
For:
Anjuta Edit question
Assignee:
No assignee Edit question
Solved by:
Matthew Paul Thomas
Solved:
Last query:
Last reply:
Revision history for this message
Best Matthew Paul Thomas (mpt) said :
#1

This looks like an excellent bug report for the Anjuta project, whatever that is. It doesn't have anything to do with the Launchpad project. I suggest reporting it in Anjuta's bug tracker.

Revision history for this message
Petr Cech (celestian) said :
#2

Thanks Matthew Paul Thomas, that solved my question.

Revision history for this message
Quantium (quantium) said :
#3

I have the same bug. I can't create new projects in anjuta

Revision history for this message
Quantium (quantium) said :
#4

I've solved this. I don't know if my solutions works for all the cases.

I've noted in debug mode (anjuta -p) send this messages:

(anjuta:13963): GLib-CRITICAL **: g_markup_parse_context_parse: assertion `context->state != STATE_ERROR' failed

(anjuta:13963): GLib-CRITICAL **: g_markup_parse_context_parse: assertion `context->state != STATE_ERROR' failed

(anjuta:13963): GLib-CRITICAL **: g_markup_parse_context_parse: assertion `context->state != STATE_ERROR' failed

(anjuta:13963): GLib-CRITICAL **: g_markup_parse_context_end_parse: assertion `context->state != STATE_ERROR' failed

** (anjuta:13963): WARNING **: Error en la línea 15, carácter 99: Carácter impropio «"»,·se esperaba el carácter '='·después del nombre de atributo·«Quantium»·del elemento·«property»

(Is spanish of course)

In my anjuta preferences I has in Author 'Andres "Quantium" González Aragón

I've removed Quotes and now I can create a new project.

Efectively "Quote contained in the user's description is probably causing the parse error and should be escaped"

thanks Petr Čech