← Back to team overview

mahara-contributors team mailing list archive

[Bug 1412950] Re: Problem displaying page when two or more pages have the same clean url

 

There seems to already be checks in the mahara code to stop one having a
duplicate urlid

I suspect the only way to get the duplication is via adding data to the
database directly - possibly via some migration script.

Until someone can make a test case of how to get this to happen via the
front end I'll make this low priority.

If someone can prove it happening via front end please bump up to high

** Changed in: mahara/15.10
   Importance: Medium => Low

** Changed in: mahara/1.10
   Importance: Medium => Low

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1412950

Title:
  Problem displaying page when two or more pages have the same clean url

Status in Mahara ePortfolio:
  Confirmed
Status in Mahara 1.10 series:
  Confirmed
Status in Mahara 1.9 series:
  Confirmed
Status in Mahara 15.04 series:
  Confirmed
Status in Mahara 15.10 series:
  Confirmed

Bug description:
  This occurred for a site using clean urls

  A user had two pages containing the same cleanurl so that neither
  could be displayed.

  Got this error:
  [WAR] c9 (lib/errors.php:747) get_record_sql found more than one row. If you meant to retrieve more than one record, use get_records_*, otherwise check your code or database for inconsistencies

  I've been unable to replicate this problem via the system (only editing the db directly).
  I've tried:
  - copying a page
  - copying a page from a collection
  - exporting and then importing pages
  - editing page 'title & description'

  But none of these allow me to end up with a duplicate.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1412950/+subscriptions


References