Closed Bug 9570 Opened 26 years ago Closed 25 years ago

[DOGFOOD]Editor cannot save on top of original file

Categories

(Core :: DOM: Editor, defect, P1)

All
Linux
defect

Tracking

()

VERIFIED DUPLICATE of bug 17102

People

(Reporter: mcafee, Assigned: sfraser_bugs)

References

Details

(Whiteboard: [PDT+] (waiting on 17102))

Linux. Edit foo.html, try to save over original file, file does not get saved.
Assignee: akkana → sfraser
Simon said he was rewriting the save code ...
Summary: Editor cannot save on top of original file → [PP]Editor cannot save on top of original file
Status: NEW → ASSIGNED
Sujay, can you test this on all 3 platforms? Thanks.
sorry late in getting back to this bug.. Win, Linux, all work for me using recent builds (8/27). But Mac doesn't work..It still brings in the original file. I simply created foo.html and then re-edited it changing the content. Then I re-opened foo.html and saw the changes... let me know if you needed me to test something different.
OS: Linux → Mac System 8.0
Target Milestone: M13
seems like a simple Mac cleanup task. M13.
Wait, on Mac you still lose (don't save) your data? If so, this seems like a huge problem to me, who cares if it's an easy cleanup task.
Target Milestone: M13 → M12
Blocks: 12658
OS: Mac System 8.0 → All
Hardware: PC → All
Summary: [PP]Editor cannot save on top of original file → [DOGFOOD]Editor cannot save on top of original file
On Linux, after Opening a file in the editor and making some changes, clicking Save or selecting it from the menu brings up a Save As dialog, instead of trying to save to the original file name. Then if I navigate through the file selection dialog back to the original file name and double-click the filename, I get a dialog that says "Saving file failed!" and indeed, it didn't write the changes to the file. There are two bugs here: (1) it should remember the original filename and not make me re-select it again each time, and (2) it can't save over an existing file. Both issues are dogfood, so I'm adding a dependency to the editor dogfood bug and setting platform to all (since it sounds like it has problems on both Linux and Mac).
Whiteboard: [PDT+]
Putting on [PDT]+ radar.
Priority: P3 → P1
Blocks: 17907
Assignee: sfraser → pavlov
Status: ASSIGNED → NEW
This is a file picker issue, not a composer issue. On Mac (and probably windows, though I don't have a build to check on), the native UI puts up the dialog that gets the user to confirm that they want to save over an existing file. That UI needs to be implemenented on linux. The actual file replacement does not happen until later, and that's covered in bug 17102.
Assignee: pavlov → sfraser
Ignore that last comment; it was meant for bug 17102
Akkana: your first issue above (it should remember which file you opened) is covered by bug 7929. This bug is that it can't save over an existing file. I just checked this, and it worked OK on Mac, so I wonder if the only remaining problem here is the file picker 'replace' UI (bug 17102)? I'll check windows.
Status: NEW → ASSIGNED
Depends on: 17102
OS: All → Linux
Yeah, this works on windows too, and the replace UI is there too. Moving OS to linux, marking dep on the linux Replace UI Bug 17102. When that's done, this might just work.
No longer depends on: 17102
I'm confused as to why it doesn't just save, if the Save As dialog is saying to save over the existing file and there is no confirmation dialog. I understand that the lack of the confirmation dialog is a bug, but that doesn't explain why we get an error message when we actually try to save.
For the replace to work, nsIFileWidget::PutFile() must return nsFileDlgResults_Replace. My guess is that it is not doing this on linux.
Whiteboard: [PDT+] → [PDT+] [by 11/19]
this one has not been investigated but, simon knows the problem and has a fix in mind. He may or may not require assistance from dougt
Depends on: 17102
Actually the fix will be in linux file widget code; pavlov has the bug that this depends on
Whiteboard: [PDT+] [by 11/19] → [PDT+] (waiting on 17102)
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Since this is entirely dependent on 17102, and no work remains here, closing this. Note: to verify this, you will have to wait until 17102 is fixed.
Status: RESOLVED → REOPENED
This bug is not fixed, reopening. Please leave this open so people don't file dups. Mark it MLater or a dup, but not fixed.
Status: REOPENED → RESOLVED
Closed: 25 years ago25 years ago
Resolution: FIXED → DUPLICATE
*** This bug has been marked as a duplicate of 17102 ***
Status: RESOLVED → VERIFIED
verified in 11/17 build.
No longer blocks: 17907
You need to log in before you can comment on or make changes to this bug.