Jump to content
Ketarin forum

Re-importing the apps breaks start/end search


Stalker
 Share

Recommended Posts

I have exported my db to XML to do some replacing en-masse. After re-importing it I have noticed that all entries which depended on anchored "Use selection as start"/"Use selection as end" searches were broken. I haven't had time to try and reproduce it yet though.

Link to comment
Share on other sites

I was replacing file download location. I've investigated a bit and noticed that mostly end anchor which consisted of whitespace or endline was corrupted. Here's an example entry.

 

After initial export:

 <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="993b6ac8-9a89-4c2b-a929-719aee024330">
   <DownloadBeta>Default</DownloadBeta>
   <DownloadDate xsi:nil="true" />
   <CheckForUpdatesOnly>false</CheckForUpdatesOnly>
   <VariableChangeIndicator />
   <CanBeShared>true</CanBeShared>
   <ShareApplication>true</ShareApplication>
   <ExclusiveDownload>false</ExclusiveDownload>
   <HttpReferer />
   <Variables>
     <item>
       <key>
         <string>version</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>StartEnd</VariableType>
           <Regex />
           <Url>http://www.processblocker.com/download.html</Url>
           <StartText>Current version: </StartText>
           <EndText>
</EndText>
           <Name>version</Name>
         </UrlVariable>
       </value>
     </item>
   </Variables>
   <ExecuteCommand />
   <ExecutePreCommand />
   <Category>Administration</Category>
   <SourceType>FixedUrl</SourceType>
   <PreviousLocation>\\Neuromancer\Software\Administration\Process Blocker_v0.6 beta.msi</PreviousLocation>
   <DeletePreviousFile>true</DeletePreviousFile>
   <Enabled>true</Enabled>
   <FileHippoId />
   <LastUpdated>2009-05-20T20:06:09.5</LastUpdated>
   <TargetPath>{DEST_DIR}\{category}\{appname:replace: :_}_v{version:replace: :_}.{url:ext}</TargetPath>
   <FixedDownloadUrl>http://www.processblocker.com/downloads/processblocker32.msi</FixedDownloadUrl>
   <Name>Process Blocker</Name>
 </ApplicationJob>

 

After re-import:

<ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="993b6ac8-9a89-4c2b-a929-719aee024330">
   <DownloadBeta>Default</DownloadBeta>
   <DownloadDate xsi:nil="true" />
   <CheckForUpdatesOnly>false</CheckForUpdatesOnly>
   <VariableChangeIndicator />
   <CanBeShared>true</CanBeShared>
   <ShareApplication>true</ShareApplication>
   <ExclusiveDownload>false</ExclusiveDownload>
   <HttpReferer />
   <Variables>
     <item>
       <key>
         <string>version</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>StartEnd</VariableType>
           <Regex />
           <Url>http://www.processblocker.com/download.html</Url>
           <StartText>Current version: </StartText>
           <EndText />
           <Name>version</Name>
         </UrlVariable>
       </value>
     </item>
   </Variables>
   <ExecuteCommand />
   <ExecutePreCommand />
   <Category>Administration</Category>
   <SourceType>FixedUrl</SourceType>
   <PreviousLocation>\\Neuromancer\Software\Administration\Process Blocker_v0.6 beta.msi</PreviousLocation>
   <DeletePreviousFile>true</DeletePreviousFile>
   <Enabled>true</Enabled>
   <FileHippoId />
   <LastUpdated>2009-05-20T20:06:09.5</LastUpdated>
   <TargetPath>{DEST_DIR}\{category}\{appname:replace: :_}_v{version:replace: :_}.{url:ext}</TargetPath>
   <FixedDownloadUrl>http://www.processblocker.com/downloads/processblocker32.msi</FixedDownloadUrl>
   <Name>Process Blocker</Name>
 </ApplicationJob>

 

Notice that <EndText> is empty.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.