<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>120674</bug_id>
          
          <creation_ts>2006-01-23 23:15:35 +0000</creation_ts>
          <short_desc>using &quot;save as&quot; with the same name destroys the file</short_desc>
          <delta_ts>2006-01-25 01:02:33 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kpdf</product>
          <component>general</component>
          <version>0.5</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>VHI</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Georg Brunmayr">georg.brunmayr</reporter>
          <assigned_to name="Albert Astals Cid">aacid</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>408462</commentid>
    <comment_count>0</comment_count>
    <who name="Georg Brunmayr">georg.brunmayr</who>
    <bug_when>2006-01-23 23:15:35 +0000</bug_when>
    <thetext>Version:           0.5 (using KDE KDE 3.5.0)
Installed from:    Ubuntu Packages
OS:                Linux

A Friend of mine used my box to read a pdf via kpdf, then klicked &quot;save as&quot; with the same output file as the active one and this destroys the file. This isn&apos;t a common action but it shoud not happen, also if it makes no sense to do so.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>408469</commentid>
    <comment_count>1</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2006-01-24 00:00:01 +0000</bug_when>
    <thetext>Sorry for destroying your data :-(
I have no time for fixing that right now, but will try as soon as possible (probably can find some time tomorrow).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>408474</commentid>
    <comment_count>2</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2006-01-24 00:17:29 +0000</bug_when>
    <thetext>Well, lost 15 minutes of sleep and fixed it the easy way, you are not allowed to save a document over itself as anyway it has no sense to do that.

http://websvn.kde.org/branches/KDE/3.5/kdegraphics/kpdf/part.cpp?rev=501814&amp;r1=499855&amp;r2=501814</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>408773</commentid>
    <comment_count>3</comment_count>
    <who name="Kurt Pfeifle">pfeifle</who>
    <bug_when>2006-01-25 01:02:33 +0000</bug_when>
    <thetext>&lt;i&gt;&quot;you are not allowed to save a document over itself as anyway it has no sense to do that.&quot;&lt;/i&gt;

I agree. :) 

Do I really? Well, at least it is better to block this action instead of letting it lead to data loss.

But what if I want to use a future version of oKular or kpdf which add annotation support? It should be allowed to use &quot;Save as...&quot; then, no? (Even if standard &quot;Save&quot; would still be used in 99% of cases, and if the standard &quot;Save&quot; should probably warn the user &quot;This PDF has been modified by you. You&apos;ll loose the original version if you use continue to save and stick to the same file name.&quot;)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>