Issue 836 - Error when entering issues as non-privileged user (indefero)

9 views
Skip to first unread message

no-r...@ceondo.com

unread,
Feb 26, 2013, 6:41:19 AM2/26/13
to indefero...@googlegroups.com
Hello,

A new issue has been created and assigned
to you:

836 - Error when entering issues as non-privileged user
Project: Indefero
Status: New
Reported by: Michael B.
Labels:
Type:Defect
Priority:Medium

Description:

I do have another problem with my indefero installation. A normal user gets an error when entering new issues (see attachment).

I am starting to wonder if my whole installation is borked. I now have three tickets open with pretty obvious bugs (this, #827 and #828), but nobody seems to bother.

I have checked again: I am using pluf branch master (8b4b7ef3a4d286d41e24a35ac7d4c9f47a85373c) and indefero branch develop (02613203c92bbc4b37acf7cceb490fb51de95ee6).

Am I doing something completely wrong here or is indefero indeed so buggy?

Attachments:
- PlufErrorHandlerException_making_POST_request_to__p_ikoas_issues_create_.html - 371.67 kB
http://projects.ceondo.com/p/indefero/issues/view/attachment/328/PlufErrorHandlerException_making_POST_request_to__p_ikoas_issues_create_.html

--
Issue: http://projects.ceondo.com/p/indefero/issues/836/


no-r...@ceondo.com

unread,
Feb 26, 2013, 8:19:15 AM2/26/13
to indefero...@googlegroups.com
Hello,

The following issue has been updated:

836 - Error when entering issues as non-privileged user
Project: Indefero
Status: New
Reported by: Michael B.
URL: http://projects.ceondo.com/p/indefero/issues/836/
Labels:
Type:Defect
Priority:Medium

Comments (last first):

# By Michael B., Feb 26, 2013:

I made a temporary fix, which seems to work.

Not sure whether this is the right way to do, but better than nothing, I guess.

diff --git a/src/IDF/Form/IssueCreate.php b/src/IDF/Form/IssueCreate.php
index d8f3244..fdaf623 100644
--- a/src/IDF/Form/IssueCreate.php
+++ b/src/IDF/Form/IssueCreate.php
@@ -374,6 +374,7 @@ class IDF_Form_IssueCreate extends Pluf_Form
$issue->status = new IDF_Tag($_t[0]); // first one is the default
$issue->owner = null;
}
+ if ( ! array_key_exists('due_dtime', $this->cleaned_data)) $this->cleaned_data['due_dtime'] = NULL;
$issue->due_dtime = $this->cleaned_data['due_dtime'];
$issue->summary = trim($this->cleaned_data['summary']);
$issue->create();

# By Michael B., Feb 26, 2013:

no-r...@ceondo.com

unread,
May 14, 2013, 3:04:33 PM5/14/13
to indefero...@googlegroups.com
Hello,

The following issue has been updated:

836 - Error when entering issues as non-privileged user
Project: Indefero
Status: New
Reported by: Michael B.
URL: http://projects.ceondo.com/p/indefero/issues/836/
Labels:
Type:Defect
Priority:Medium

Comments (last first):

# By Nicola Fontana, May 14, 2013:

This is a quite serious issue: it is triggered only when it is too late.

Some more details: the error is triggered when the user sending the report does not have the "Due date" field on its form, hence an administrator will never see it.

I solved with an approach equivalent the the one proposed by Michael:

if (isset($this->cleaned_data['due_dtime']))
$issue->due_dtime = $this->cleaned_data['due_dtime'];

# By Michael B., Feb 26, 2013:

I made a temporary fix, which seems to work.

Not sure whether this is the right way to do, but better than nothing, I guess.

diff --git a/src/IDF/Form/IssueCreate.php b/src/IDF/Form/IssueCreate.php
index d8f3244..fdaf623 100644
--- a/src/IDF/Form/IssueCreate.php
+++ b/src/IDF/Form/IssueCreate.php
@@ -374,6 +374,7 @@ class IDF_Form_IssueCreate extends Pluf_Form
$issue->status = new IDF_Tag($_t[0]); // first one is the default
$issue->owner = null;
}
+ if ( ! array_key_exists('due_dtime', $this->cleaned_data)) $this->cleaned_data['due_dtime'] = NULL;
$issue->due_dtime = $this->cleaned_data['due_dtime'];
$issue->summary = trim($this->cleaned_data['summary']);
$issue->create();

# By Michael B., Feb 26, 2013:

Reply all
Reply to author
Forward
0 new messages