Bug 11470 - Can't create a new article with an already existing "Title"
: Can't create a new article with an already existing "Title"
Status: NEW
Product: maemo.org Website
News
: unspecified
: All Maemo
: Medium major (vote)
: ---
Assigned To: Ferenc Szekely
: news@maemo.org
: http://maemo.org/news/jobs/create/def...
:
:
:
  Show dependency tree
 
Reported: 2010-10-27 15:01 UTC by Ferenc Szekely
Modified: 2010-12-31 09:54 UTC (History)
1 user (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description Ferenc Szekely (reporter) maemo.org 2010-10-27 15:01:32 UTC
EXACT STEPS LEADING TO PROBLEM: 
1. Go to the URL above
2. Fill in the form. Use "software_engineer" for "Title"
3. Click Save

EXPECTED OUTCOME:
New article is saved.

ACTUAL OUTCOME:

Server Error

Failed to save the data to disk: Object already exist. Check the debug level
log for more information.

REPRODUCIBILITY:
always

OTHER COMMENTS:
There is an upstream bug report: http://trac.midgard-project.org/ticket/809
marked as fixed. Maybe we should open that again.

There are of course other titles that can lead to the same problem. The reason
is that there can not be two Midgard articles with the same "name" field. The
user can not know which string was already used and which was not. I was not
able to patch the component to append the "name" field if it was already taken
by an other article. Beside that I don't think it is a good solution to patch a
component that way. The problem should be solved somewhere in the datamanager
or dbobject classes.
Comment 1 Henri Bergius 2010-10-28 14:12:21 UTC
Jobs article definition had wrong config for URL name handling. Fix committed
but needs to be deployed
Comment 2 Ferenc Szekely (reporter) maemo.org 2010-10-28 19:41:18 UTC
I deployed the changed schema, but the problem still exists.
Comment 3 Ferenc Szekely (reporter) maemo.org 2010-12-31 04:16:26 UTC
It is very easy to reproduce, but needs more time to analyze the root cause.

Aslan, would you have time to check it?
Comment 4 Ferenc Szekely (reporter) maemo.org 2010-12-31 04:20:20 UTC
Degrading the importance and severity since I provided a workaround tip for the
original submitter. Here it come for reference:

Append the job title with a random string (e.g. current date, or internal job
ad ID). By doing so the system will accept the ad and the post will appear on
the site.
Comment 5 Aslan Venejoki maemo.org 2010-12-31 09:54:03 UTC
(In reply to comment #3)
> It is very easy to reproduce, but needs more time to analyze the root cause.
> 
> Aslan, would you have time to check it?

I can check this out, no problem.