[TYPO3-dam-devel] RFC Bugfix: 6639: SQL errors when using List module to create new item

Michiel Roos michiel at netcreators.com
Tue Feb 12 09:53:56 CET 2008


Dear dudes and dudettes,

First off; "Big up" to all of you for putting time and attention into  
this project! We're moving in the right direction, one step at a time.

Now, let me try to explain slowly . . .

Imagine . . .

- Users use a certain product X version 1.0

- Users find a bug in that version and report it

- Users may not be able to fix that bug by themselves, but we can

- Users will be happy to be able to get a patch or download the latest  
svn versio of version 1.0 without their bugs



I hope you all can follow me upto this point.

The 1-0 branch is good for . . . . bugfixing! Giving current users the  
posibility to download code from svn (nightly snap or whatever) with  
less bugs.

Currently users can choose between a trunk snapshot or a 1-0 snapshot.  
The trunk version has the nastiest bugs at the moment. So a lot of  
companies that actually use the dam in production are better of with a  
1-0 snapshot.

You are right that the trunk is what will be in the upcoming release.  
And that that release will probably be installed instead of what users  
are currently running.

So please also check the 1-0 branch when testing for bugs. Don't just  
say: "Cannot reproduce" and then close an existing bug, it's rude! In  
the end this will work against you because users will feel 'ignored'.  
And rightly so.

If you insist in putting all your attention into the trunk, and can in  
no way muster the strength to check against 1-0, then please just  
comment in the bug saying: "Unable to reproduce in trunk, might be  
present in 1-0, but I didn't check". Don't call for bug closure on  
that base alone.

Our mission is: "fix dam bugs"!

Kindest regards,

Michiel Roos

Netcreators BV :: creation and innovation
www.netcreators.com

Interesse in werken bij Netcreators?
http://www.netcreators.com/bedrijf/vacatures/

On Feb 11, 2008, at 11:47 PM, Peter Kühn wrote:

>> Can any one clarify your motivation?
>
> well, at least i can try by asking: what is the 1-0 branch good for?
> re-releasing the existing version for historical reasons?
>
> i still cant see your point.
>
> from my point of view: whats in the trunk is what will be in the
> upcoming release. the upcoming release will replace the bug with a
> working solution.
> this is the mission as i understand it: to be able to tell the people
> "version 1.0 had bugs. those are fixed in 1.1 - please update"
>
> am i wrong? then please explain slowly - im blonde.
>
>
>
> Michiel Roos schrieb:
>> Please please good people,
>>
>> We don't close a bug when it in fact does exist.
>>
>> I can go as far as:
>> "We ignore the bug for now and focus on the trunk"
>> - Even though a fix is supplied we will ignore this bug.
>> - When we have finished fixing all the bugs in the trunk we will get
>> back to you.
>>
>> My worry is now that after all the bugs have been fixed . . . this  
>> bug
>> will still be ignored because all of us are eager to work on new  
>> features.
>>
>> Can any one clarify your motivation?
>>
>> Kind regards,
>>
>> Michiel Roos
>>
>> Netcreators BV :: creation and innovation
>> www.netcreators.com
>>
>> Interesse in werken bij Netcreators?
>> http://www.netcreators.com/bedrijf/vacatures/
>>
>> On Feb 7, 2008, at 8:09 PM, Peter Kühn wrote:
>>
>>> I totally agree w/ ben.
>>>
>>> Request: close the ticket marked "resolved".
>>>
>>> pls ack.
>>>
>>> ben van 't ende [netcreators] schrieb:
>>>> Andreas Balzer wrote:
>>>>> Hi :)
>>>>> I asked nearly the same some days ago. As it seems like: yes :)  
>>>>> Feel
>>>>> free to download the "old" version from TER ;)
>>>>>
>>>>> Although I would just tell the people to update to the newest
>>>>> version as
>>>>> soon as it is released..
>>>>
>>>> Hi,
>>>>
>>>> We should focus in the new release.
>>>>
>>>> gRTz
>>>>
>>>> ben
>>>>
>>>>
>>>>> Andreas
>>>>>
>>>>> On Dec 29, 2007 1:10 PM, Peter Kühn <peter.kuehn at wmdb.de
>>>>> <mailto:peter.kuehn at wmdb.de>> wrote:
>>>>>
>>>>>   Ola!
>>>>>
>>>>>   did i get this right? the reason why i tried to reproduce the  
>>>>> bug
>>>>> for
>>>>>   about half an hour without success is, that it only exists in
>>>>> version
>>>>>   1-0 - the one we want to release asap with the version we´re  
>>>>> working
>>>>>   on? ;)
>>>>>   do i really have to setup a historical version to prove a fix  
>>>>> for a
>>>>>   historical bug?
>>>>>
>>>>>   You're not serious, are you?
>>>>>
>>>>>   pekue
>>>>>
>>>>>   Michiel Roos schrieb:
>>>>>> Hi,
>>>>>>
>>>>>> This is a svn patch request.
>>>>>>
>>>>>> Type: bugfix
>>>>>>
>>>>>> Problem: SQL errors are thrown when creating a new media record  
>>>>>> from
>>>>>> list mode.
>>>>>>
>>>>>> Cause:
>>>>>> tx_dam_fileUsage calls getMediaUsageReferences with a uid like:
>>>>>> 'NEW9834759453987'. This confuses getMediaUsageReferences in a  
>>>>>> bad
>>>>>   way.
>>>>>> It tries to control its own sanity by cleaning the passed in
>>>>>   uidlist using:
>>>>>> $GLOBALS['TYPO3_DB']->cleanIntList($uidList)
>>>>>>
>>>>>> That comes out '0' (zero).
>>>>>>
>>>>>> No other parameters are passed in, so the resulting $where ends  
>>>>>> up
>>>>>   empty
>>>>>> and the query fails.
>>>>>>
>>>>>> Responsibility lies with tx_dam_fileUsage which should not try  
>>>>>> to get
>>>>>> 'media usage references' for a non exising record.
>>>>>>
>>>>>> The attached patch checks if we are dealing with a new record  
>>>>>> using:
>>>>>>  if (strstr('NEW', $PA['row']['uid']) != '') {
>>>>>>     // get the media file ref
>>>>>>  }
>>>>>>
>>>>>> Branches:
>>>>>> 1-0
>>>>>> Not present in trunk.
>>>>>>
>>>>>> Kind regards,
>>>>>>
>>>>>>
>>>>>> Michiel Ros
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>>
>>>>>>
>>>>>> --- lib/class.tx_dam_tcefunc.php      2007-12-25
>>>>>   04:06:06.000000000 -0500
>>>>>> +++ lib/class.tx_dam_tcefunc.fix.php  2007-12-25
>>>>>   04:06:22.000000000 -0500
>>>>>> @@ -837,7 +837,9 @@
>>>>>>             $itemOut = '';
>>>>>>
>>>>>>             $itemOut .=
>>>>>
>>>>> '<h4>'.$LANG->sl('LLL:EXT:dam/lib/ 
>>>>> locallang.xml:fileReference').'</h4>';
>>>>>
>>>>>> -             $rows =
>>>>>   tx_dam_db::getMediaUsageReferences($PA['row']['uid'], '');
>>>>>> +             if (strstr('NEW', $PA['row']['uid']) != '') {
>>>>>> +                     $rows =
>>>>>   tx_dam_db::getMediaUsageReferences($PA['row']['uid'], '');
>>>>>> +             }
>>>>>>
>>>>>>             for ($index = 0; $index < 2; $index++) {
>>>>>>
>>>>>   _______________________________________________
>>>>>   TYPO3-team-dam mailing list
>>>>>   TYPO3-team-dam at lists.netfielders.de
>>>>>   <mailto:TYPO3-team-dam at lists.netfielders.de>
>>>>>   http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-dam
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> TYPO3-team-dam mailing list
>>>>> TYPO3-team-dam at lists.netfielders.de
>>>>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team- 
>>>>> dam
>>>>
>>>>
>>> _______________________________________________
>>> TYPO3-team-dam mailing list
>>> TYPO3-team-dam at lists.netfielders.de
>>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-dam
>>
> _______________________________________________
> TYPO3-team-dam mailing list
> TYPO3-team-dam at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-dam



More information about the TYPO3-team-dam mailing list