Author Topic: [1.5.3+1.6-beta] search ignores tags on newly uploaded files  (Read 1994 times)

manishjhawar

  • Newbie
  • *
  • Posts: 4
    • View Profile
[1.5.3+1.6-beta] search ignores tags on newly uploaded files
« on: October 28, 2009, 07:39:32 am »
Hi,

First of all, le me thank you guys for a wonderful piece of work. We are in the process of evaluating OpenGoo for use within our organization and have come across what seems to be a bug as detailed below.

Description: When we search by a tag that we applied to a newly uploaded file, we do not see the file in the search results. Now, after we select the 'update file' link for the file and just click 'save changes' without making any changes, then search starts to show the file in the results.
Reproducibility: Always
OpenGoo Versions: 1.5.3 and 1.6-beta
Server OS: Linux (Debian)
Kernel: Linux XXXX 2.6.24-24-server #1 SMP Tue Aug 18 16:51:43 UTC 2009 x86_64 GNU/Linux
PHP version: PHP 5.2.4-2ubuntu5.7 with Suhosin-Patch 0.9.6.2 (cli) (built: Aug 21 2009 22:17:39)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
    with Xdebug v2.0.2, Copyright (c) 2002-2007, by Derick Rethans
    with Suhosin v0.9.22, Copyright (c) 2007, by SektionEins GmbH
MySQL version: Server version: 5.0.51a-3ubuntu5.4-log (Ubuntu)
Debug info: no debug info collected into cache/log.php during bug reproduction after turning debug on

Thats it I guess. Let me know if I can assist you with more debugging/testing in order to get this closed.

Thanks in advance,

Manish Jhawar

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: [1.5.3+1.6-beta] search ignores tags on newly uploaded files
« Reply #1 on: October 28, 2009, 11:09:14 am »
Thanks for the detailed report. We'll look into it.

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: [1.5.3+1.6-beta] search ignores tags on newly uploaded files
« Reply #2 on: October 28, 2009, 12:17:30 pm »
Hi Manish,

This should correct the problem. It'll be available on next release.

Change lines 630-632 of file 'application/models/ProjectDataObject.class.php' from:
Code: [Select]
if ($this->isSearchable())
$this->addTagsToSearchableObject();
$this->tags = null; // Initializes tags cache

to:
Code: [Select]
$this->tags = null; // Initializes tags cache
if ($this->isSearchable())
$this->addTagsToSearchableObject();

manishjhawar

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: [1.5.3+1.6-beta] search ignores tags on newly uploaded files
« Reply #3 on: October 30, 2009, 01:41:41 am »
Hi Ignacio,

That did the trick! Confirmed on 1.6-beta. Could not check on 1.5.3.

Thanks again,

Manish