Re: (Bug?) Problem in WC 4.02 on RH Linux with Append
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 41619
interpreted = N
texte = Well,Adding [url] didn't change anything. We have since restarted webcat with also no change.So basically using an [append] or [replace&append=t] messes up this database.I really can't see anything wrong in the code, especiaally since the code does save the proper new values.We have even stopped webcat, deleted the database, created a new file using vi and populated it with a couple of vallues (and could cat the file just fine). Then restarted webcat and ran the code again, and the line endings were messed up once more.This is really annoying. I beleive we have tried everything reasonable and then some.made sure all lince feeds were unixhave repeated deleted files and replaxced them mauallyhave proerly closed and/or committed databases before replacinghave restarted webcatstarted with empty database filewhat more can I do? Help!WebCat 4.0.2 on RH linux 7.2 running apacheDaleOn Mon, 15 Jul 2002 22:54:02 dale's stuff
wrote:> Hi Dale,> > On Monday, July 15, 2002, at 10:18 PM, Dale LaFountain > wrote:> > >Is the template saved with Mac linefeeds, by chance?> > I did check that :) I use BBEdit and since changing over to > OS X I have the prefs set (and also manually checked) to set > the line feeds to unix.> > >I'm not sure how webcat behaves if 999 records have unix > >line terminators > >and you append a record with a mac line terminator... > >Maybe... rewrite the > >whole file with mac linefeeds?> > That is what seems to be happening. I am not sure actually > how the linefeeds of the template could affect this anyway > as there are no line feeds between the beginning and ending > of the [append] context.> > I can look at the database after running the code and the > proper records are there (by downloading the file to my > local machine). However, as mentioned in an earlier email, > trying to do a cat or more of the file on the linux box > results in the lines overwriting one another - only after > using the [append].> > >Should be easy to test.> > I guess the only other way to 'test' this is to somehow save > the file on a unix only machine (e.g. not Mac OS X) and then > zip up the files to upload to the server and unzip.> > I didn't have this problem with other files when I moved > from a Mac server to linux just a few months ago. Most of my > existing templates had Mac line feeds and they worked just > fine with [replace] contexts.> > I am very confused (and tired!).> > > >-Dale> >> >>Here is the code that makes the database turn into mac line > >>feeds. If > >>someone can show me how this is wrong and somehow converting > >>the > >>linefeeds in the database I will rescind my post about > >>[append] having a > >>problem.> >>> >>Thanks> >>> >>--- begin ---> >>[closedatabase db=/databases/terms_related.db]> >>deleting forward links - termID = [termID]
> >>[DELETE > >>db=/databases/terms_related.db&eqfld_TermIDdata=[termID]]> >>deleting back links - termID = [termID]
> >>[DELETE > >>db=/databases/terms_related.db&eqfld_relatedIDdata=[termID]]> >>> >>[formvariables]> >>[showif [name]=link_to]> >> [hideif [value]=[termID]]> >>[append > >>db=/databases/terms_related.db]fld_termID=[Value]&fld_relatedID=> >>[termID][/append]> >> [/hideif]> >>[/showif]> >>> >>[showif [name]=add_link]> >> [hideif [value]=[termID]]> >>> >>[append > >>db=/databases/terms_related.db]fld_termID=[termID]&fld_relatedID=> >>[value][/append]> >> [/hideif]> >>[/showif]> >>> >>> >>[name] - [value]
> >>[/formvariables]> >>--- end ---> > > -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: > http://search.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Well,Adding [url] didn't change anything. We have since restarted webcat with also no change.So basically using an [append] or [replace&append=t] messes up this database.I really can't see anything wrong in the code, especiaally since the code does save the proper new values.We have even stopped webcat, deleted the database, created a new file using vi and populated it with a couple of vallues (and could cat the file just fine). Then restarted webcat and ran the code again, and the line endings were messed up once more.This is really annoying. I beleive we have tried everything reasonable and then some.made sure all lince feeds were unixhave repeated deleted files and replaxced them mauallyhave proerly closed and/or committed databases before replacinghave restarted webcatstarted with empty database filewhat more can I do? Help!WebCat 4.0.2 on RH linux 7.2 running apacheDaleOn Mon, 15 Jul 2002 22:54:02 dale's stuff wrote:> Hi Dale,> > On Monday, July 15, 2002, at 10:18 PM, Dale LaFountain > wrote:> > >Is the template saved with Mac linefeeds, by chance?> > I did check that :) I use BBEdit and since changing over to > OS X I have the prefs set (and also manually checked) to set > the line feeds to unix.> > >I'm not sure how webcat behaves if 999 records have unix > >line terminators > >and you append a record with a mac line terminator... > >Maybe... rewrite the > >whole file with mac linefeeds?> > That is what seems to be happening. I am not sure actually > how the linefeeds of the template could affect this anyway > as there are no line feeds between the beginning and ending > of the [append] context.> > I can look at the database after running the code and the > proper records are there (by downloading the file to my > local machine). However, as mentioned in an earlier email, > trying to do a cat or more of the file on the linux box > results in the lines overwriting one another - only after > using the [append].> > >Should be easy to test.> > I guess the only other way to 'test' this is to somehow save > the file on a unix only machine (e.g. not Mac OS X) and then > zip up the files to upload to the server and unzip.> > I didn't have this problem with other files when I moved > from a Mac server to linux just a few months ago. Most of my > existing templates had Mac line feeds and they worked just > fine with [replace] contexts.> > I am very confused (and tired!).> > > >-Dale> >> >>Here is the code that makes the database turn into mac line > >>feeds. If > >>someone can show me how this is wrong and somehow converting > >>the > >>linefeeds in the database I will rescind my post about > >>[append] having a > >>problem.> >>> >>Thanks> >>> >>--- begin ---> >>[closedatabase db=/databases/terms_related.db]> >>deleting forward links - termID = [termID]
> >>[DELETE > >>db=/databases/terms_related.db&eqfld_TermIDdata=[termID]]> >>deleting back links - termID = [termID]
> >>[DELETE > >>db=/databases/terms_related.db&eqfld_relatedIDdata=[termID]]> >>> >>[formvariables]> >>[showif [name]=link_to]> >> [hideif [value]=[termID]]> >>[append > >>db=/databases/terms_related.db]fld_termID=[Value]&fld_relatedID=> >>[termID][/append]> >> [/hideif]> >>[/showif]> >>> >>[showif [name]=add_link]> >> [hideif [value]=[termID]]> >>> >>[append > >>db=/databases/terms_related.db]fld_termID=[termID]&fld_relatedID=> >>[value][/append]> >> [/hideif]> >>[/showif]> >>> >>> >>[name] - [value]
> >>[/formvariables]> >>--- end ---> > > -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: > http://search.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
dale
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
dates and hex formatting (1997)
shipcost (1997)
shipping costs (1998)
WebCat2 Append problem (B14Macacgi) (1997)
WebCat b13 CGI -shownext- (1997)
Showif, Hideif reverse logic ? (1997)
Associative lookup style? (1997)
What am I missing (1997)
IIS4 (1998)
error -108 (1997)
[url] issue (2000)
Frames and WebCat (1997)
writing orders to a db (1997)
Nesting format tags (1997)
WebCatalog Use Question (1997)
Re:no [search] with NT (1997)
Email notification to one of multiple vendors ? (1997)
OT: Microsoft to buy Macromedia? was: [Ignore] Test (2002)
Text data with spaces in them... (1997)
Which WebCat is it? (2000)