We have moved to Github. Please open tickets there.

Opened 2 years ago

Closed 2 years ago

#3160 closed Defect (fixed)

If ElggFile->getFilestore() is used on a non-entity it causes a query that joins all metadata with metastrings

Reported by: brettp Owned by: cash
Priority: critical Milestone: Elgg 1.8 Beta
Component: Core Version: Github Master
Severity: blocker Keywords:
Cc: brett@… Difficulty:

Description

...and makes MySQL extremely upset.

Problem is in the horrible way the filestore metadata name is found. Need to go offline but will fix it tonight.

Change History (6)

comment:1 Changed 2 years ago by brettp

  • Summary changed from If ElggFile is used on a non-entity it causes a query that joins all metadata with metastrings to If ElggFile->getFilestore() is used on a non-entity it causes a query that joins all metadata with metastrings

comment:2 Changed 2 years ago by brettp

  • Resolution set to fixed
  • Status changed from new to closed

(In [svn:8762]) Fixes #3160. ElggFile->getFilehandler() is less horrible.

comment:3 Changed 2 years ago by cash

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:4 Changed 2 years ago by cash

Refs #3205

comment:5 Changed 2 years ago by cash

  • Owner set to cash
  • Status changed from reopened to new

comment:6 Changed 2 years ago by cash

  • Resolution set to fixed
  • Status changed from new to closed

(In [svn:8822]) Fixes #3160 just needed a small variation off of [svn:8762] to handle getting filestore before metadata is set but after the guid is set

Note: See TracTickets for help on using tickets.