You are here: Foswiki>Tasks Web>Item10955 (06 Jan 2015, GeorgeClark)Edit Attach

Item10955: Meta data not found if it is the last line in the file AND the line does not have a EOL

pencil
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: patch
Applies To: Engine
Component: METASEARCH, SEARCH
Branches:
Reported By: GordUrq
Waiting For:
Last Change By: GeorgeClark
If you have some meta data that is on the last line of the file, and it does not have a EOL (0x0a) the data will not show up in any meta search, get etc. I was appending a "%META:FOO{name="foo" value="bar"}%" to a lot of files using sed. This resulted in the above situation. Easy to fix, hard to diagnose.

-- GordUrq - 08 Jul 2011

Although METASEARCH is deprecated, (I must admit I've never used it), I always assumed it mapped to a SEARCH{type="query", but I see now it's a regex search.

So, I guess this might be a more general bug with SEARCH{type="regex".

-- PaulHarvey - 09 Jul 2011

I can't recreate this on 1.2. Deleted the last EOL from a User form and was still able to find a topic based upon the formfield without the line ending,. Setting to No Action

-- GeorgeClark - 06 Jan 2015
 

ItemTemplate edit

Summary Meta data not found if it is the last line in the file AND the line does not have a EOL
ReportedBy GordUrq
Codebase 1.1.3 RC1
SVN Range
AppliesTo Engine
Component METASEARCH, SEARCH
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease patch
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r3 - 06 Jan 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy