JP5943991B2 - Web server with file accidental deletion prevention program and file accidental deletion prevention function - Google Patents
Web server with file accidental deletion prevention program and file accidental deletion prevention function Download PDFInfo
- Publication number
- JP5943991B2 JP5943991B2 JP2014259529A JP2014259529A JP5943991B2 JP 5943991 B2 JP5943991 B2 JP 5943991B2 JP 2014259529 A JP2014259529 A JP 2014259529A JP 2014259529 A JP2014259529 A JP 2014259529A JP 5943991 B2 JP5943991 B2 JP 5943991B2
- Authority
- JP
- Japan
- Prior art keywords
- file
- markup document
- called
- upload
- storage unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
本発明は、HTMLファイル等のマークアップ文書を削除する際に、他のマークアップ文書からも呼び出される関連ファイルが誤って削除されることを防止するファイル誤削除防止プログラム及びファイル誤削除防止機能を備えたWebサーバに関するものである。 The present invention provides an erroneous file deletion prevention program and an erroneous file deletion prevention function for preventing a related file called from another markup document from being accidentally deleted when deleting a markup document such as an HTML file. The present invention relates to a provided web server.
インターネット上で様々な情報を提供するWebサーバには、Webページを表示する際に用いられるHTMLやXMLなどのマークアップ言語で記述されたファイルであるマークアップ文書と、マークアップ文書に指定されてWebページを表示する際に呼び出される、画像を表示するイメージファイル、JavaScript(登録商標)等のインクルードファイルなどの関連ファイルが格納されている。ユーザがパーソナルコンピュータやスマートフォンなどのネットワーク端末を操作してWebブラウザを起動し、Webサーバからマークアップ文書を呼び出すと、マークアップ文書に指定された関連ファイルもあわせて呼び出され、これらのファイルによってWebページがネットワーク端末に表示される。 A Web server that provides various information on the Internet is designated as a markup document, which is a file described in a markup language such as HTML or XML, used when displaying a Web page, and a markup document. Stored are related files such as an image file for displaying an image and an include file such as JavaScript (registered trademark), which are called when a Web page is displayed. When a user operates a network terminal such as a personal computer or a smartphone to start a Web browser and calls a markup document from a Web server, the related files specified in the markup document are also called, and these files are used for Web The page is displayed on the network terminal.
マークアップ文書によって呼び出される関連ファイルには、様々なWebページに用いられる汎用的なものが含まれることもあるが、こうした関連ファイルは、各々のWebページに対応するマークアップ文書毎にWebサーバに保存されるのではなく、複数のマークアップ文書で共有されているケースがある。 The related file called by the markup document may include general-purpose files used for various Web pages. Such a related file is stored in the Web server for each markup document corresponding to each Web page. There are cases in which multiple markup documents are shared rather than stored.
こうしたケースでは、一のマークアップ文書を削除する際に、そのマークアップ文書によって呼び出される関連ファイルが同時に削除されることが多く、削除された関連ファイルの中に他のマークアップ文書でも使用されている関連ファイルが含まれている場合には、他のマークアップ文書が呼び出された際に削除された関連ファイルを呼び出すことができず、Webページを適切に表示できなくなる事態が生じ得るという問題がある。 In such cases, when deleting one markup document, the related file called by the markup document is often deleted at the same time, and the deleted related file is also used by other markup documents. If a related file is included, the related file deleted when another markup document is called cannot be called, and there is a problem that a Web page cannot be displayed properly. is there.
あるファイルとそれに付随する付随ファイルの更新、削除等のアクションを適切に管理する技術として、ファイルを更新する際の付随ファイルに対するアクションをファイルに対応して予め設定し、ファイルを更新する際に予め設定されたアクションを付随ファイルに対して自動実行する発明が開示されている(特許文献1参照)。 As a technique for appropriately managing actions such as update and deletion of a file and accompanying files accompanying the file, actions for the accompanying file when updating the file are set in advance corresponding to the file, and when the file is updated An invention that automatically executes a set action on an accompanying file is disclosed (see Patent Document 1).
前述のマークアップ文書を削除する際に他のマークアップ文書でも使用している関連ファイルが削除されてしまう問題に対処するために、特許文献1記載の発明のように、マークアップ文書を削除する際の関連ファイルに対する削除等のアクションをマークアップ文書と関連ファイル毎に設定しておくことも考えられるが、そのように対応しようとすると、全てのマークアップ文書と関連ファイル毎について個別にアクションを設定することが必要になることに加えて、新たなマークアップ文書が保存されたり、他のマークアップ文書が削除されたりした際には、他のマークアップ文書との関連ファイルの共有関係を見直し、必要に応じて再設定を行わなければならず、ファイル管理が非効率となることが想定される。 In order to deal with the problem that related files used in other markup documents are deleted when the markup document is deleted, the markup document is deleted as in the invention described in Patent Document 1. It may be possible to set actions such as deletion of related files for each markup document and related files, but if you try to do so, you will need to perform actions individually for all markup documents and each related file. In addition to being required to set, when new markup documents are saved or other markup documents are deleted, the sharing relationship of related files with other markup documents is reviewed. If necessary, resetting must be performed, and file management is assumed to be inefficient.
本発明は、このような課題に対応するためになされたものであり、HTMLファイル等のマークアップ文書を削除する際に、他のマークアップ文書からも呼び出される関連ファイルが誤って削除されることを効率的に防止することができる、ファイル誤削除防止プログラム及びファイル誤削除防止機能を備えたWebサーバを提供することを目的とするものである。 The present invention has been made to cope with such problems. When a markup document such as an HTML file is deleted, a related file called from another markup document is erroneously deleted. It is an object of the present invention to provide a web server provided with an erroneous file deletion prevention program and an erroneous file deletion prevention function.
このような課題を解決する本発明は、Webページを表示するためのマークアップ文書と前記マークアップ文書から呼び出す関連ファイルを格納するファイル格納部と、前記ファイル格納部に格納された各々のマークアップ文書から呼び出す関連ファイルに関する情報を記憶したファイル情報記憶部を備えるWebサーバにおいて、マークアップ文書を削除する際に、他のマークアップ文書からも呼び出される関連ファイルが誤って削除されることを防止するファイル誤削除防止プログラムであって、前記Webサーバに、マークアップ文書の削除要求を受け付ける削除要求受付ステップと、前記削除要求受付ステップで削除要求を受け付けたマークアップ文書から呼び出す関連ファイルについて、前記ファイル情報記憶部を検索して、他のマークアップ文書からも呼び出される関連ファイルを特定するファイル特定ステップと、前記削除要求受付ステップで削除要求を受け付けたマークアップ文書と、前記ファイル特定ステップで特定された関連ファイルを除く前記マークアップ文書から呼び出す関連ファイルを、前記ファイル格納部から削除するファイル削除ステップと、を実行させることを特徴とするファイル誤削除防止プログラムである。 The present invention for solving such a problem includes a markup document for displaying a Web page, a file storage unit for storing a related file called from the markup document, and each markup stored in the file storage unit. When deleting a markup document in a Web server having a file information storage unit that stores information related to a related file called from a document, the related file called from another markup document is prevented from being deleted by mistake. An erroneous file deletion prevention program, wherein a deletion request reception step for receiving a deletion request for a markup document to the Web server, and a related file called from the markup document for which the deletion request has been received in the deletion request reception step Search the information storage unit and find other A file identification step that identifies a related file that is also called from a backup document, a markup document that has received a deletion request in the deletion request reception step, and a call from the markup document excluding the related file that is identified in the file identification step And a file deletion step of deleting a related file from the file storage unit.
本発明では、各々のマークアップ文書によって呼び出される関連ファイルに関する情報をファイル情報記憶部に記憶し、一のマークアップ文書を削除する際には、ファイル情報記憶部を参照して、他のマークアップ文書でも使用している関連ファイルを削除対象から除外するよう構成することによって、関連ファイルの誤削除防止を効率的に実現する。尚、本発明におけるマークアップ文書には、HTMLやXMLなどのマークアップ言語で記述されたWebページを表示するためのファイルが該当する。 In the present invention, information related to the related file called by each markup document is stored in the file information storage unit, and when deleting one markup document, another markup document is referred to by referring to the file information storage unit. By configuring the related files used in the document to be excluded from the deletion target, it is possible to efficiently prevent the erroneous deletion of the related files. The markup document according to the present invention corresponds to a file for displaying a Web page described in a markup language such as HTML or XML.
また、本発明は、前記Webサーバに、前記ファイル削除ステップで前記ファイル格納部から削除されたマークアップ文書と関連ファイルの全部又は一部を、アーカイブ化してファイル保存部に保存するファイル保存ステップを実行させることを特徴とすることもできる。 Further, the present invention includes a file storage step of archiving all or part of the markup document and related files deleted from the file storage unit in the file deletion step in the Web server and storing them in a file storage unit. It can also be made to perform.
本発明によると、関連ファイルの誤削除を効率的に防止することができるが、さらにこの態様によると、削除したマークアップ文書や関連ファイルがアーカイブ化されるため、マークアップ文書自体を誤って削除してしまった場合にも、必要な関連ファイルを含めて復元することが可能になる。 According to the present invention, it is possible to efficiently prevent erroneous deletion of related files. However, according to this aspect, since the deleted markup document and related files are archived, the markup document itself is erroneously deleted. If you do, you can restore it including the necessary related files.
さらに、本発明は、前記Webサーバに、新たなマークアップ文書と前記マークアップ文書から呼び出す関連ファイルのアップロードを受け付けるアップロード受付ステップと、前記アップロード受付ステップでアップロードを受け付けたマークアップ文書から呼び出されるものの、前記アップロード受付ステップでアップロードを受け付けた関連ファイルに含まれていない関連ファイルがある場合は、他のマークアップ文書から呼び出される関連ファイルに含まれていないか前記ファイル情報記憶部を検索して、他のマークアップ文書から呼び出される関連ファイルにも含まれていない場合は、前記アップロード受付ステップでアップロードを受け付けた関連ファイルに含まれていない関連ファイルのアップロードを要求するアップロード要求ステップと、を実行させることを特徴としてもよい。 Further, the present invention is a method of accepting an upload of a new markup document and a related file to be called from the markup document to the Web server, and being called from the markup document that has been uploaded in the upload acceptance step. , If there is a related file that is not included in the related file accepted for upload in the upload reception step, search the file information storage unit for whether it is included in the related file called from another markup document, If it is not included in the related file called from other markup documents, the upload requesting the upload of the related file not included in the related file received in the upload receiving step. And determined step may be characterized in that for the execution.
この態様では、新たなマークアップ文書と関連ファイルを同時にアップロードする際に、ファイル情報記憶部を参照して、必要な関連ファイルが含まれておらず、かつその関連ファイルが他のマークアップ文書でも使用されていない場合には、その関連ファイルのアップロードを促して、関連ファイルが存在しないことによってWebページが適切に表示されなくなることを防止している。 In this aspect, when simultaneously uploading a new markup document and a related file, the file information storage unit is referred to, the necessary related file is not included, and the related file may be another markup document. When not used, the user is prompted to upload the related file to prevent the Web page from being appropriately displayed due to the absence of the related file.
さらに、本発明は、前記Webサーバに、新たなマークアップ文書と前記マークアップ文書から呼び出す関連ファイルのアップロードを受け付けるアップロード受付ステップと、前記アップロード受付ステップでアップロードを受け付けたマークアップ文書から呼び出される関連ファイルについて、他のマークアップ文書から呼び出される関連ファイルに含まれていないか前記ファイル情報記憶部を検索して、他のマークアップ文書から呼び出される関連ファイルに含まれている関連ファイルを特定する第2のファイル特定ステップと、前記アップロード受付ステップでアップロードを受け付けたマークアップ文書と、前記アップロード受付ステップでアップロードを受け付けた関連ファイルのうち、前記第2のファイル特定ステップで特定された他のマークアップ文書から呼び出される関連ファイルを除く関連ファイルを、前記ファイル格納部に格納するファイル格納ステップと、を実行させることを特徴としてもよい。 Further, the present invention provides the Web server with an upload reception step for receiving a new markup document and an upload of a related file called from the markup document, and a relationship called from the markup document for which the upload has been received at the upload reception step. The file information storage unit is searched for whether the file is included in a related file called from another markup document, and the related file included in the related file called from another markup document is specified. 2 of the file identification step, the markup document accepted for upload in the upload acceptance step, and the related file accepted for upload in the upload acceptance step, identified in the second file identification step Related files except the relevant file was called from another markup document, and file storage step of storing in the file storage unit may be characterized in that for the execution.
この態様によると、新たなマークアップ文書と関連ファイルを同時にアップロードする際に、ファイル情報記憶部を参照して、他のマークアップ文書でも使用されている関連ファイルが含まれている場合には、重複する関連ファイルを保存しない構成となるので、Webサーバのリソースの有効利用を促進することができる。 According to this aspect, when simultaneously uploading a new markup document and a related file, with reference to the file information storage unit, if a related file that is also used in other markup documents is included, Since the configuration does not store duplicate related files, effective use of resources of the Web server can be promoted.
さらに、本発明は、前記Webサーバに、新たなマークアップ文書のアップロードを受け付けるアップロード受付ステップと、前記アップロード受付ステップでアップロードを受け付けたマークアップ文書から呼び出される関連ファイルについて、他のマークアップ文書から呼び出される関連ファイルに含まれていないか前記ファイル情報記憶部を検索して、他のマークアップ文書から呼び出される関連ファイルに含まれていない関連ファイルのアップロードを要求するアップロード要求ステップと、を実行させることを特徴としてもよい。 Furthermore, the present invention relates to an upload reception step for accepting upload of a new markup document to the Web server, and a related file called from the markup document accepted for upload in the upload acceptance step from other markup documents. An upload requesting step is executed to search the file information storage unit for whether it is not included in the related file to be called and to request uploading of the related file not included in the related file called from another markup document. This may be a feature.
この態様によると、新たなマークアップ文書のみをアップロードすると、ファイル情報記憶部を参照して、必要な関連ファイルのうち他のマークアップ文書でも使用されていない関連ファイルのアップロードを促す構成となるので、Webページを適切に表示するのに必要な関連ファイルを効率的にアップロードすることを可能にしている。 According to this aspect, when only a new markup document is uploaded, the file information storage unit is referred to prompt the upload of the related file that is not used in other markup documents among the necessary related files. , It is possible to efficiently upload related files necessary for properly displaying a Web page.
また、本発明は、本発明に係るファイル誤削除防止プログラムによって実行されるファイル誤削除の防止方法として特定することもできる。 The present invention can also be specified as a method for preventing erroneous file deletion executed by the erroneous file deletion prevention program according to the present invention.
本発明に係るファイル誤削除の防止方法は、Webページを表示するためのマークアップ文書と前記マークアップ文書から呼び出す関連ファイルを格納するファイル格納部と、前記ファイル格納部に格納された各々のマークアップ文書によって呼び出される関連ファイルに関する情報を記憶したファイル情報記憶部を備えるWebサーバにおいて、マークアップ文書を削除する際に他のマークアップ文書からも呼び出される関連ファイルが誤って削除されることを防止するファイル誤削除の防止方法であって、前記Webサーバが、マークアップ文書の削除要求を受け付ける削除要求受付ステップと、前記Webサーバが、前記削除要求受付ステップで削除要求を受け付けたマークアップ文書から呼び出される関連ファイルについて、前記ファイル情報記憶部を検索して、他のマークアップ文書からも呼び出される関連ファイルを特定するファイル特定ステップと、前記Webサーバが、前記削除要求受付ステップで削除要求を受け付けたマークアップ文書と、前記ファイル特定ステップで特定された関連ファイルを除く前記マークアップ文書から呼び出される関連ファイルを、前記ファイル格納部から削除するファイル削除ステップと、を有することを特徴とするファイル誤削除の防止方法である。 The method for preventing erroneous file deletion according to the present invention includes a markup document for displaying a Web page, a file storage unit for storing a related file to be called from the markup document, and each mark stored in the file storage unit. Prevents accidental deletion of related files called from other markup documents when a markup document is deleted in a Web server having a file information storage unit that stores information related to related files called by the uploaded document And a deletion request reception step in which the Web server receives a deletion request for a markup document, and a markup document in which the Web server has received a deletion request in the deletion request reception step. For the related file to be called, A file specifying step of searching a file information storage unit to specify a related file called from another markup document, the markup document that the Web server has received a deletion request in the deletion request receiving step, And a file deletion step of deleting a related file called from the markup document excluding the related file specified in the file specifying step from the file storage unit.
また、本発明に係るファイル誤削除の防止方法は、先に説明した本発明に係るファイル誤削除防止プログラムの各々の態様に対応するファイル誤削除の防止方法として特定することもできる。 The method for preventing erroneous file deletion according to the present invention can also be specified as a method for preventing erroneous file deletion corresponding to each aspect of the file erroneous deletion prevention program according to the present invention described above.
また、本発明は、本発明に係るファイル誤削除防止プログラムによるファイル誤削除防止機能を備えたWebサーバとして特定することもできる。 The present invention can also be specified as a Web server having a function for preventing erroneous file deletion by the program for preventing erroneous file deletion according to the present invention.
本発明に係るファイル誤削除防止機能を備えたWebサーバは、マークアップ文書を削除する際に他のマークアップ文書からも呼び出される関連ファイルが誤って削除されることを防止するファイル誤削除防止機能を備えたWebサーバであって、Webページを表示するためのマークアップ文書と前記マークアップ文書から呼び出す関連ファイルを格納するファイル格納手段と、前記ファイル格納手段に格納された各々のマークアップ文書から呼び出す関連ファイルに関する情報を記憶したファイル情報記憶手段と、マークアップ文書の削除要求を受け付ける削除要求受付手段と、前記削除要求受付手段が削除要求を受け付けたマークアップ文書から呼び出す関連ファイルについて、前記ファイル情報記憶手段を検索して、他のマークアップ文書からも呼び出される関連ファイルを特定するファイル特定手段と、前記削除要求受付手段が削除要求を受け付けたマークアップ文書と、前記ファイル特定手段が特定した関連ファイルを除く前記マークアップ文書から呼び出す関連ファイルを、前記ファイル格納部から削除するファイル削除手段と、を備えることを特徴とするファイル誤削除防止機能を備えたWebサーバである。 A Web server having an erroneous file deletion prevention function according to the present invention prevents an erroneous file deletion prevention function that prevents a related file called from another markup document from being deleted by mistake when deleting a markup document. A markup document for displaying a Web page, a file storage unit for storing a related file called from the markup document, and a markup document stored in the file storage unit. File information storage means for storing information relating to the related file to be called; a deletion request receiving means for receiving a deletion request for the markup document; and the related file to be called from the markup document for which the deletion request receiving means has received the deletion request. Search the information storage means to find other markup A file specifying unit for specifying a related file called from a document; a markup document for which the deletion request receiving unit has received a deletion request; and a related file to be called from the markup document excluding the related file specified by the file specifying unit. And a file deletion unit that deletes the file from the file storage unit.
また、本発明に係るファイル誤削除防止機能を備えたWebサーバは、先に説明した本発明に係るファイル誤削除防止プログラムの各々の態様に対応するファイル誤削除防止機能を備えたWebサーバとして特定することもできる。 Further, the Web server provided with the erroneous file deletion prevention function according to the present invention is specified as the Web server provided with the erroneous file deletion prevention function corresponding to each aspect of the file erroneous deletion prevention program according to the present invention described above. You can also
本発明によると、HTMLファイル等のマークアップ文書を削除する際に、他のマークアップ文書からも呼び出される関連ファイルが誤って削除されることを効率的に防止することが可能になる。また、新たなマークアップ文書をアップロードする際には、必要な関連ファイルが存在しないためにWebページが適切に表示されなくなることの防止や、Webサーバのリソースの有効利用の促進にも効果的である。 According to the present invention, when a markup document such as an HTML file is deleted, it is possible to efficiently prevent a related file called from another markup document from being erroneously deleted. Also, when uploading a new markup document, it is effective in preventing Web pages from being displayed properly because there is no necessary related file, and promoting effective use of Web server resources. is there.
本発明を実施するための形態について、図面を用いて以下に詳細に説明する。尚、以下の説明は本発明の実施形態の一例を示したものであって、マークアップ文書で用いられる言語や関連ファイルの種別、ファイル情報記憶部のデータ形式等の実施形態は、以下に示した実施例に限定されるものではない。 Embodiments for carrying out the present invention will be described below in detail with reference to the drawings. The following description shows an example of an embodiment of the present invention. Embodiments such as a language used in a markup document, a type of a related file, and a data format of a file information storage unit are shown below. However, the present invention is not limited to the examples.
図1は、本発明の実施形態の一例を示したものである。パーソナルコンピュータ、スマートフォン、タブレット型コンピュータなどのインターネットに接続可能なネットワーク端末であるユーザ端末を操作するユーザは、ユーザ端末のWebブラウザを起動してインターネットに接続し、WebサーバにアクセスしてWebページを閲覧することによって、様々な情報を取得することができる。 FIG. 1 shows an example of an embodiment of the present invention. A user who operates a user terminal that is a network terminal that can be connected to the Internet, such as a personal computer, a smartphone, or a tablet computer, starts a Web browser on the user terminal, connects to the Internet, accesses a Web server, and displays a Web page. Various information can be acquired by browsing.
Webサーバから呼び出されるWebページは、HTMLやXMLなどのマークアップ言語で記述されたファイルであるマークアップ文書と、マークアップ文書に指定されてWebページを表示する際に呼び出される、画像を表示するイメージファイルや、JavaScript(登録商標)等のインクルードファイルなどの関連ファイルによって表示され、これらのWebページを表示するためのファイルがWebサーバに格納されている。Webサーバが、ユーザ端末からURLを指定したリクエストを受信すると、対応するマークアップ文書(以下の例ではHTMLファイルとする)と関連ファイルが、ユーザ端末に呼び出される。 A Web page called from a Web server displays a markup document that is a file described in a markup language such as HTML or XML, and an image that is called when a Web page is specified by the markup document and displayed. Displayed by image files and related files such as include files such as JavaScript (registered trademark), and files for displaying these Web pages are stored in the Web server. When the Web server receives a request specifying a URL from the user terminal, a corresponding markup document (in the following example, an HTML file) and a related file are called up by the user terminal.
本発明では、こうしたHTMLファイルと各々のHTMLファイルによって呼び出される関連ファイルに関する情報をファイル管理データベースで管理して、必要な関連ファイルが誤って削除されることを防止する。具体的には、HTMLファイルが削除される際に、削除されるHTMLファイルによって呼び出される関連ファイルが他のHTMLファイルでも使用している関連ファイルでないかをファイル管理データベースで確認して、他のHTMLファイルでも使用している関連ファイルがあれば、削除対象から除外する。 In the present invention, information related to such HTML files and related files called by the respective HTML files is managed in the file management database, and necessary related files are prevented from being accidentally deleted. Specifically, when an HTML file is deleted, the file management database confirms whether the related file called by the deleted HTML file is a related file that is also used in another HTML file, and the other HTML If there is a related file that is also used in the file, exclude it from the deletion target.
また、新たなHTMLファイルがアップロードされる際には、他のHTMLファイルで使用している関連ファイルも含めて必要な関連ファイルが存在しているかを確認し、存在しない関連ファイルが確認された場合は、ユーザ端末にアップロードを要求する。さらに、アップロードされた関連ファイルが他のHTMLファイルでも使用されている場合は、アップロードされた関連ファイルを保存対象から除外することによって、Webサーバのリソースの有効利用を促進する。 In addition, when a new HTML file is uploaded, it is checked whether necessary related files including related files used in other HTML files exist, and related files that do not exist are confirmed. Requests upload to the user terminal. Further, when the uploaded related file is also used in another HTML file, the uploaded related file is excluded from the storage target, thereby promoting effective use of the resources of the Web server.
図2は、本発明に係るファイル誤削除防止プログラムを備えたWebサーバの構成の一例を示している。本発明に係るファイル誤削除防止プログラムは、Webサーバ10に備えられることになるが、Webサーバ10を構成するコンピュータの物理的な構成は特に限定されるものではなく、一のコンピュータの全部又は一部の機能として構成されてもよいし、複数のコンピュータによって構成されるものであってもよい。 FIG. 2 shows an example of the configuration of a Web server provided with a file erroneous deletion prevention program according to the present invention. The file erroneous deletion prevention program according to the present invention is provided in the Web server 10, but the physical configuration of the computer constituting the Web server 10 is not particularly limited. It may be configured as a function of a unit, or may be configured by a plurality of computers.
Webサーバ10は、CPU、メインメモリ、HDD等の補助記憶装置を備え、インターネットに接続されたコンピュータによって構成され、所定の機能を実現するために、HDD等の補助記憶装置に格納された各々の機能に対応するアプリケーションプログラムをメインメモリ等に読み出し、メインメモリ等をワーキングエリアとしてCPUで演算処理を実行する。 The Web server 10 includes an auxiliary storage device such as a CPU, a main memory, and an HDD, and is configured by a computer connected to the Internet. In order to realize a predetermined function, each Web server 10 is stored in an auxiliary storage device such as an HDD. An application program corresponding to the function is read into the main memory or the like, and the CPU executes arithmetic processing using the main memory or the like as a working area.
Webサーバ10には、Webページ出力部14、ファイル管理部15が備えられるが、これらの各部はいずれも機能的に特定されるものであって、各々の機能は、HDD等の補助記憶装置に格納された各々の機能に対応するアプリケーションプログラムをメインメモリ等に読み出し、メインメモリ等をワーキングエリアとしてCPUで演算処理を実行することによって実現されるものである。 The Web server 10 includes a Web page output unit 14 and a file management unit 15, all of which are functionally specified, and each function is stored in an auxiliary storage device such as an HDD. It is realized by reading an application program corresponding to each stored function into a main memory or the like and executing arithmetic processing by the CPU using the main memory or the like as a working area.
また、Webサーバ10には、HTMLファイル格納部11、関連ファイル格納部12、ファイル情報記憶部13、ファイル保存部16が設けられ、これらの各部には、HDD等の補助記憶装置の所定の記憶領域が割り当てられる。 In addition, the Web server 10 is provided with an HTML file storage unit 11, a related file storage unit 12, a file information storage unit 13, and a file storage unit 16, each of which is a predetermined storage of an auxiliary storage device such as an HDD. Space is allocated.
管理者端末20は、Webサーバ10に格納されたファイルの削除や、Webサーバ10へのファイルのアップロードが可能な、Webサーバ10と接続されたコンピュータであるが、その構成は特に限定されるものではない。管理者端末20とWebサーバ10は、インターネットを介して接続されることとしてもよい。 The administrator terminal 20 is a computer connected to the Web server 10 that can delete a file stored in the Web server 10 and upload a file to the Web server 10, but its configuration is particularly limited. is not. The administrator terminal 20 and the Web server 10 may be connected via the Internet.
ユーザ端末30には、インターネットに接続可能なパーソナルコンピュータ、スマートフォン、タブレット型コンピュータなどのWebブラウザを備えたネットワーク端末を用いることとすればよい。 The user terminal 30 may be a network terminal equipped with a web browser such as a personal computer, a smartphone, or a tablet computer that can be connected to the Internet.
Webページを閲覧したいユーザが、ユーザ端末30でWebブラウザを起動してWebサーバ10に接続して、閲覧したいWebページのURLをリクエストすると、Webサーバ10ではWebページ出力部14が起動され、HTMLファイル格納部11からURLで指定されたWebページのHTMLファイルを呼び出すとともに、このHTMLファイルに指定されたイメージファイルやインクルードファイルなどの関連ファイルを関連ファイル格納部12から呼び出し、これらのファイルをユーザ端末30に返信する。ユーザ端末30では、Webブラウザがこれらのファイルを読み込んで、リクエストしたURLに対応するWebページを表示する。 When a user who wants to browse a web page starts up a web browser on the user terminal 30 and connects to the web server 10 to request the URL of the web page he wants to browse, the web server 10 starts up the web page output unit 14 and HTML. The HTML file of the Web page specified by the URL is called from the file storage unit 11 and the related file such as the image file or the include file specified in the HTML file is called from the related file storage unit 12, and these files are called the user terminal. Reply to 30. In the user terminal 30, the web browser reads these files and displays a web page corresponding to the requested URL.
Webページの管理者は、HTMLファイルの削除や、新たなHTMLファイルのアップロードを行いたい場合には、管理者端末20からWebサーバ10に、削除したいファイルの指定や、アップロードしたいファイルの送信を行う。Webサーバ10ではファイル管理部15が起動され、ファイル情報記憶部14に記憶された情報を確認して(ファイル管理部15とファイル情報記憶部14が図1のファイル管理データベースに該当するが、物理的な構成は特に限定されるものではない)、HTMLファイルと併せて削除してはいけない関連ファイル、アップロード時に不足する関連ファイル、重複するので保存する必要がない関連ファイルなどの特定を行い、HTMLファイル格納部11と関連ファイル格納部12に格納されたファイルの削除や、HTMLファイル格納部11と関連ファイル格納部12へのファイルのアップロードなどの処理を実行する。 When the administrator of the Web page wants to delete an HTML file or upload a new HTML file, the administrator terminal 20 designates the file to be deleted or transmits the file to be uploaded from the administrator terminal 20 to the Web server 10. . In the Web server 10, the file management unit 15 is activated to check the information stored in the file information storage unit 14 (the file management unit 15 and the file information storage unit 14 correspond to the file management database in FIG. The specific configuration is not particularly limited), specify related files that should not be deleted together with HTML files, related files that are missing at the time of uploading, related files that do not need to be saved because they overlap, and HTML Processing such as deleting files stored in the file storage unit 11 and the related file storage unit 12 and uploading files to the HTML file storage unit 11 and the related file storage unit 12 is executed.
図3は、ファイル情報記憶部13に記憶される情報の一例を示したものであるが、HTMLファイル格納部11に格納された各々のHTMLファイルについて、HTMLファイルから呼び出す関連ファイル格納部12に格納された関連ファイルを特定するための情報が記憶されている。 FIG. 3 shows an example of information stored in the file information storage unit 13, and each HTML file stored in the HTML file storage unit 11 is stored in the related file storage unit 12 called from the HTML file. Information for specifying the related file is stored.
図3の例では、「1」のフラグはその関連ファイルを使用すること、「0」のフラグは使用しないことを示していて、「A.html」のHTMLファイルからは「A.gif」「A.js」「A.css」の関連ファイルが、「B.html」のHTMLファイルからは「B.gif」「A.js」「B.css」の関連ファイルがそれぞれ呼び出されて、対応するWebページが表示される。これらの関連ファイルのうち、「A.js」については双方のHTMLファイルで共有されていることが確認できる。 In the example of FIG. 3, the flag “1” indicates that the related file is used, and the flag “0” is not used. From the HTML file “A.html”, “A.gif” “ The related files of “A.js” and “A.css” are called from the “B.html” HTML file, and the related files of “B.gif”, “A.js”, and “B.css” are respectively called A web page is displayed. Among these related files, “A.js” can be confirmed to be shared by both HTML files.
以上の構成を前提にして、本発明に係るファイル誤削除防止プログラムのHTMLファイル削除時における処理フローと、HTMLファイルのアップロード時における処理フローについて、以下に説明する。 Based on the above configuration, the processing flow when deleting an HTML file and the processing flow when uploading an HTML file of the erroneous file deletion prevention program according to the present invention will be described below.
図4のフローチャートは、本発明に係るファイル誤削除防止プログラムのHTMLファイル削除時における処理フローを、図5は、ファイル削除時における関連ファイルの処理方法の一例を、図6は、ファイル削除時におけるファイル情報記憶部に記憶された情報の更新方法の2つの例をそれぞれ示したものであるが、これらを用いてHTMLファイル削除時における処理フローについて説明する。 The flowchart of FIG. 4 shows a processing flow at the time of HTML file deletion of the erroneous file deletion prevention program according to the present invention, FIG. 5 shows an example of a related file processing method at the time of file deletion, and FIG. Two examples of the method of updating the information stored in the file information storage unit are shown. The processing flow when deleting an HTML file will be described using these examples.
Webサーバ10が管理者端末20から、HTMLファイル格納部11に格納されたHTMLファイルの削除要求を受け付けると(S01)、ファイル管理部15が起動され、削除要求を受け付けたHTMLファイルから呼び出す関連ファイルを特定する(S02)。関連ファイルの特定は、図3の例に示したファイル情報記憶部13に記憶された情報から特定してもよいし、HTMLファイル格納部11から削除対象となるHTMLファイルを呼び出して、HTMLファイルから読み取ることとしてもよい。 When the Web server 10 receives a request for deleting an HTML file stored in the HTML file storage unit 11 from the administrator terminal 20 (S01), the file management unit 15 is activated and the related file called from the HTML file that has received the deletion request Is specified (S02). The related file may be specified from the information stored in the file information storage unit 13 shown in the example of FIG. 3, or the HTML file to be deleted is called from the HTML file storage unit 11 and the HTML file is read out. It may be read.
次に、削除対象となるHTMLファイルから呼び出さす各々の関連ファイルについて、ファイル情報記憶部13の情報を検索して(S03)、他のHTMLファイルと共有されている関連ファイル、すなわち、他のHTMLファイルからも呼び出される関連ファイルがないかを確認する(S04)。 Next, the information in the file information storage unit 13 is searched for each related file called from the HTML file to be deleted (S03), and the related file shared with the other HTML file, that is, another HTML file. It is confirmed whether there is a related file called from the file (S04).
他のHTMLファイルからも呼び出される関連ファイルがある場合は、削除対象となるHTMLファイルをHTMLファイル格納部11から、削除対象となるHTMLファイルから呼び出す関連ファイルのうち、他のHTMLファイルからも呼び出される関連ファイルを除く関連ファイルを関連ファイル格納部12から、それぞれ削除する。尚、HTMLファイルを誤って削除してしまった場合に関連ファイルも含めて復元が可能になるように、ここで削除するHTMLファイルと関連ファイルの全部又は一部を、アーカイブ化してファイル保存部16に保存するよう構成することが望ましい(S05)。 When there is a related file called from another HTML file, the HTML file to be deleted is called from the HTML file storage unit 11 and from other HTML files among the related files called from the HTML file to be deleted. The related files excluding the related files are deleted from the related file storage unit 12 respectively. It should be noted that the HTML file to be deleted and all or part of the related file are archived so that it can be restored including the related file when the HTML file is accidentally deleted, and the file storage unit 16 (S05).
図5は、こうしたケースの一例を示したものであるが、図3の例に示した関連ファイルを使用する「A.html」と「B.html」のHTMLファイルがHTMLファイル格納部11に格納されていて、このうち「A.html」のHTMLファイルの削除要求を受け付けたとする。 FIG. 5 shows an example of such a case. HTML files “A.html” and “B.html” using the related files shown in the example of FIG. 3 are stored in the HTML file storage unit 11. Assume that a request to delete the HTML file “A.html” is received.
ファイル情報記憶部13を検索すると、「A.gif」「A.js」「A.css」の関連ファイルのうち、「A.js」が「B.html」のHTMLファイルと共有されている関連ファイル、すなわち、「B.html」のHTMLファイルからも呼び出される関連ファイルであると特定できるため、「A.js」を削除対象から除外することによって、「B.html」のHTMLファイルが呼び出された際に、「A.js」が削除されてしまっていてWebページが表示されないという事態を回避することが可能になる。 When the file information storage unit 13 is searched, among the related files of “A.gif”, “A.js”, and “A.css”, “A.js” is related to the HTML file of “B.html”. Since the file, that is, the related file called from the HTML file of “B.html” can be specified, the HTML file of “B.html” is called by excluding “A.js” from the deletion target. In this case, it is possible to avoid a situation in which “A.js” has been deleted and the Web page is not displayed.
図5の例のようにHTMLファイルと関連ファイルを削除すると、ファイル情報記憶部13に記憶された情報は、図6の例に示したように更新される。図6の左下は、削除したHTMLファイルと関連ファイルをアーカイブ化するケースの一例で、削除した関連ファイルのレコードは削除されず、削除されたことを示す「9」のフラグが立てられる。削除したHTMLファイルと関連ファイルをアーカイブ化しないケースでは、図6の右下に示した例のように、削除した関連ファイルのレコードを削除することとしてもよい。 When the HTML file and the related file are deleted as in the example of FIG. 5, the information stored in the file information storage unit 13 is updated as shown in the example of FIG. The lower left of FIG. 6 shows an example of archiving the deleted HTML file and related files. The record of the deleted related file is not deleted, and a flag “9” indicating that it has been deleted is set. In the case where the deleted HTML file and the related file are not archived, the record of the deleted related file may be deleted as in the example shown in the lower right of FIG.
図4のフローチャートに戻ると、他のHTMLファイルからも呼び出される関連ファイルがない場合は、削除対象となるHTMLファイルをHTMLファイル格納部11から削除するとともに、削除対象となるHTMLファイルから呼び出す全ての関連ファイルを関連ファイル格納部12から削除する。この場合においても、削除するHTMLファイルと関連ファイルの全部又は一部を、アーカイブ化してファイル保存部16に保存するよう構成することが望ましい(S06) Returning to the flowchart of FIG. 4, when there is no related file called from another HTML file, the HTML file to be deleted is deleted from the HTML file storage unit 11 and all the files to be called from the HTML file to be deleted are deleted. The related file is deleted from the related file storage unit 12. Even in this case, it is desirable that all or a part of the HTML file to be deleted and the related file are archived and stored in the file storage unit 16 (S06).
図7と図8のフローチャートは、本発明に係るファイル誤削除防止プログラムの新たなHTMLファイルのアップロード時における処理フローの2つのパターンを、図9と図10は、新たなHTMLファイルのアップロード時における関連ファイルの処理方法の2つの例を、それぞれ示したものであるが、これらを用いて新たなHTMLファイルのアップロード時における処理フローについて説明する。 The flowcharts of FIGS. 7 and 8 show two patterns of processing flow at the time of uploading a new HTML file of the erroneous file deletion prevention program according to the present invention, and FIGS. 9 and 10 are diagrams at the time of uploading a new HTML file. Two examples of the related file processing method are respectively shown. The processing flow at the time of uploading a new HTML file will be described using these examples.
図7の処理フローでは、管理者端末20から、新たなHTMLファイルと関連ファイルを同時にアップロードすることが前提になる。HTMLファイル格納部11と関連ファイル格納部12に格納する新たなHTMLファイルと関連ファイルのアップロードを受け付けると(S11)、HTMLファイルの記述から使用する関連ファイルを特定する(S12)。 In the processing flow of FIG. 7, it is assumed that a new HTML file and a related file are simultaneously uploaded from the administrator terminal 20. When uploading of a new HTML file and a related file stored in the HTML file storage unit 11 and the related file storage unit 12 is received (S11), the related file to be used is specified from the description of the HTML file (S12).
次に、特定した関連ファイルについて、ファイル情報記憶部13の情報を検索して(S13)、他のHTMLファイルから呼び出される関連ファイルとの重複がないか、すなわち、他のHTMLファイルから呼び出される関連ファイルに、同一の関連ファイルが存在しないかを確認する(S14)。同一の関連ファイルが存在していれば、共有可能な関連ファイルと特定する(S15)。 Next, the information in the file information storage unit 13 is searched for the identified related file (S13), and there is no overlap with the related file called from another HTML file, that is, the related called from another HTML file. It is confirmed whether the same related file exists in the file (S14). If the same related file exists, it is identified as a sharable related file (S15).
さらに、特定した関連ファイルについて、存在しない関連ファイル、すなわち、他のHTMLファイルと共有可能な関連ファイルに該当せず、かつ、管理者端末20からのアップロードも受け付けていない関連ファイルがないかを確認する(S16)。存在しない関連ファイルがあれば、存在しない関連ファイルのアップロードを管理者端末20に要求して(S17)、要求した関連ファイルを受け付けたかを確認する(S18)。 Furthermore, for the specified related file, it is confirmed whether there is a related file that does not exist, that is, does not correspond to a related file that can be shared with other HTML files, and does not accept uploading from the administrator terminal 20 (S16). If there is a related file that does not exist, the administrator terminal 20 is requested to upload a related file that does not exist (S17), and it is confirmed whether the requested related file has been accepted (S18).
存在しない関連ファイルがない場合、又は、存在しない関連ファイルのアップロードを要求して、それらの関連ファイルのアップロードを受け付けた後には、アップロードを受け付けたHTMLファイルと、アップロードを受け付けた関連ファイルのうち、共有可能な関連ファイルに該当しない関連ファイルを、それぞれHTMLファイル格納部11と関連ファイル格納部12に格納して(S19)、格納したHTMLファイルから呼び出す関連ファイルに関する情報を、ファイル情報記憶部13に新たに登録する(S20)。この処理フローによると、アップロードを受け付けた関連ファイルのうち共有可能な関連ファイルについては、関連ファイル格納部12に格納されずに破棄され、ファイル情報記憶部13にその関連ファイルを使用する情報のみが登録されることになる。 If there is no related file that does not exist, or after requesting upload of a related file that does not exist and accepting upload of those related files, among the HTML file that received the upload and the related file that received the upload, Related files that do not correspond to the sharable related file are stored in the HTML file storage unit 11 and the related file storage unit 12 (S19), and information on the related file to be called from the stored HTML file is stored in the file information storage unit 13. New registration is performed (S20). According to this processing flow, a sharable related file among the related files whose upload has been accepted is discarded without being stored in the related file storage unit 12, and only information that uses the related file is stored in the file information storage unit 13. Will be registered.
図8の処理フローでは、管理者端末20から、新たなHTMLファイルのアップロードを先に受け付けて、その後に必要な関連ファイルをアップロードさせる流れになる。HTMLファイル格納部11に格納する新たなHTMLファイルのアップロードを受け付けると(S21)、HTMLファイルの記述から使用する関連ファイルを特定する(S22)。 In the processing flow of FIG. 8, the administrator terminal 20 first receives an upload of a new HTML file and then uploads a necessary related file. When an upload of a new HTML file stored in the HTML file storage unit 11 is accepted (S21), a related file to be used is specified from the description of the HTML file (S22).
次に、特定した関連ファイルについて、ファイル情報記憶部13の情報を検索して(S23)、存在しない関連ファイル、すなわち、他のHTMLファイルと共有可能な関連ファイルに該当しない関連ファイルがあるかを確認する(S24)。 Next, the information in the file information storage unit 13 is searched for the specified related file (S23), and whether there is a related file that does not exist, that is, a related file that does not correspond to a related file that can be shared with other HTML files. Confirm (S24).
存在しない関連ファイルがなければ、全ての関連ファイルが他のHTMLファイルと共有可能と判断されるので、アップロードを受け付けたHTMLファイルをHTMLファイル格納部11に格納して(S25)、格納したHTMLファイルから呼び出す関連ファイルに関する情報を、ファイル情報記憶部13に新たに登録する(S26)。格納したHTMLファイルから呼び出す全ての関連ファイルは、他のHTMLファイルと共有されることになる。 If there is no related file that does not exist, it is determined that all the related files can be shared with other HTML files. Is newly registered in the file information storage unit 13 (S26). All the related files called from the stored HTML file are shared with other HTML files.
存在しない関連ファイルがあれば、管理者端末20に存在しない関連ファイルのアップロードを要求して(S27)、要求した関連ファイルを受け付けたかを確認する(S28)。全ての存在しない関連ファイルのアップローを受け付けると、アップロードを受け付けたHTMLファイルと関連ファイルを、それぞれHTMLファイル格納部11と関連ファイル格納部12に格納して(S29)、格納したHTMLファイルから呼び出す関連ファイルに関する情報を、ファイル情報記憶部13に新たに登録する(S26)。この場合、格納したHTMLファイルから呼び出す関連ファイルの全部又は一部が、他のHTMLファイルとは共有されない状態となる。 If there is a related file that does not exist, the administrator terminal 20 is requested to upload a related file that does not exist (S27), and it is confirmed whether the requested related file has been received (S28). When uploading of all the related files that have not been received is received, the HTML file and the related file that have been uploaded are stored in the HTML file storage unit 11 and the related file storage unit 12 (S29), and are called from the stored HTML file. Information related to the related file is newly registered in the file information storage unit 13 (S26). In this case, all or part of the related file called from the stored HTML file is not shared with other HTML files.
図9は、図7、図8のフローチャートに示したいずれの処理フローでも生じ得るケースであるが、図5に示した例のように、「A.html」のHTMLファイルが削除され、「A.html」のHTMLファイルから呼び出す関連ファイルの「A.gif」と「A.css」も削除された状態で、「A.gif」「C.js」「A.css」の関連ファイルを呼び出す「C.html」のHTMLファイルが新たにアップロードされた状態を示している。 FIG. 9 is a case that can occur in any of the processing flows shown in the flowcharts of FIGS. 7 and 8, but as in the example shown in FIG. 5, the HTML file “A.html” is deleted and “A “A.gif”, “C.js”, and “A.css” are called up in a state where “A.gif” and “A.css” are also deleted from the HTML file of “.html”. The HTML file “C. html” is newly uploaded.
この場合、アップロードされた「C.html」から呼び出す関連ファイルのうち、「A.gif」と「A.css」が削除されて存在しないことが、ファイル情報記憶部13に記憶された情報から確認できるので、「A.gif」と「A.css」が「C.html」とあわせてアップロードされていなければ、管理者端末20にこれらの関連ファイルのアップロードを促すことが必要になる。 In this case, it is confirmed from the information stored in the file information storage unit 13 that “A.gif” and “A.css” are deleted and do not exist among the related files called from the uploaded “C.html”. Since “A.gif” and “A.css” are not uploaded together with “C.html”, it is necessary to prompt the administrator terminal 20 to upload these related files.
図10は、図7のフローチャートに示した処理フローで生じ得るケースであるが、図5に示した例のように、「B.html」のHTMLファイルがHTMLファイル格納部11に、「B.html」から呼び出す「B.gif」「A.js」「B.css」の関連ファイルが関連ファイル格納部12に格納されているところに、「D.gif」「A.js」「D.css」の関連ファイルを呼び出す「D.html」のHTMLファイルが新たにアップロードされた状態を示している。 FIG. 10 is a case that may occur in the processing flow shown in the flowchart of FIG. 7, but as in the example shown in FIG. 5, the HTML file “B. html” is stored in the HTML file storage unit 11 as “B. The related files of “B.gif”, “A.js”, and “B.css” called from “html” are stored in the related file storage unit 12, and “D.gif”, “A.js”, “D.css” are stored. The HTML file “D. html” that calls the related file “” is newly uploaded.
この場合、アップロードされた「D.html」から呼び出す関連ファイルのうち、「A.js」は既に関連ファイル格納部12に格納されていて共有可能であることが、ファイル情報記憶部13に記憶された情報から確認できるので、アップロードされた「A.js」は関連ファイル格納部12に格納せずに廃棄し、ファイル情報記憶部13に「D.html」から呼び出す関連ファイルとして「A.js」を使用することを登録しておくことによって、「A.js」が関連ファイル格納部12に重複して格納され、Webサーバ10のリソースが無駄に使用されることを回避することが可能となっている。 In this case, among the related files called from the uploaded “D.html”, it is stored in the file information storage unit 13 that “A.js” is already stored in the related file storage unit 12 and can be shared. Therefore, the uploaded “A.js” is discarded without being stored in the related file storage unit 12, and “A.js” is called as a related file to be called from the “D.html” in the file information storage unit 13. By registering the use of “A.js”, it is possible to avoid that “A.js” is stored redundantly in the related file storage unit 12 and the resources of the Web server 10 are wasted. ing.
10 Webサーバ
11 HTMLファイル格納部
12 関連ファイル格納部
13 ファイル情報記憶部
14 Webページ出力部
15 ファイル管理部
16 ファイル保存部
20 管理者端末
30 ユーザ端末
DESCRIPTION OF SYMBOLS 10 Web server 11 HTML file storage part 12 Related file storage part 13 File information storage part 14 Web page output part 15 File management part 16 File storage part 20 Administrator terminal 30 User terminal
Claims (6)
マークアップ文書の削除要求を受け付ける削除要求受付ステップと、
前記削除要求受付ステップで削除要求を受け付けたマークアップ文書から呼び出す関連ファイルについて、前記ファイル情報記憶部を検索して、他のマークアップ文書からも呼び出される関連ファイルを特定するファイル特定ステップと、
前記削除要求受付ステップで削除要求を受け付けたマークアップ文書と、前記ファイル特定ステップで特定された関連ファイルを除く前記マークアップ文書から呼び出す関連ファイルを、前記ファイル格納部から削除するファイル削除ステップと、
を実行させるとともに、
新たなマークアップ文書と前記マークアップ文書から呼び出す関連ファイルのアップロードを受け付けるアップロード受付ステップと、
前記アップロード受付ステップでアップロードを受け付けたマークアップ文書から呼び出されるものの、前記アップロード受付ステップでアップロードを受け付けた関連ファイルに含まれていない関連ファイルがある場合は、他のマークアップ文書から呼び出される関連ファイルに含まれていないか前記ファイル情報記憶部を検索して、他のマークアップ文書から呼び出される関連ファイルにも含まれていない場合は、前記アップロード受付ステップでアップロードを受け付けた関連ファイルに含まれていない関連ファイルのアップロードを要求するアップロード要求ステップと、
を実行させることを特徴とするファイル誤削除防止プログラム。 A file storage unit for storing a markup document for displaying a Web page, a related file called from the markup document, and a file storing information about the related file called from each markup document stored in the file storage unit In a Web server provided with an information storage unit, when deleting a markup document, a file erroneous deletion prevention program for preventing a related file called from another markup document from being deleted by mistake, the Web On the server,
A deletion request reception step for receiving a markup document deletion request;
A file specifying step of searching the file information storage unit for a related file to be called from a markup document that has received a deletion request in the deletion request receiving step, and specifying a related file to be called from another markup document;
A file deletion step of deleting a markup document that has received a deletion request in the deletion request reception step, and a related file to be called from the markup document excluding the related file specified in the file specification step, from the file storage unit;
As well as
An upload reception step for receiving a new markup document and an associated file to be called from the markup document;
If there is a related file that is called from the markup document that was accepted for upload in the upload acceptance step but is not included in the related file that was accepted for upload in the upload acceptance step, the related file is called from another markup document If it is not included in the related file called from another markup document by searching the file information storage unit, it is included in the related file that has been uploaded in the upload receiving step. An upload request step that requests upload of the associated file, and
A program for preventing accidental deletion of files.
マークアップ文書の削除要求を受け付ける削除要求受付ステップと、
前記削除要求受付ステップで削除要求を受け付けたマークアップ文書から呼び出す関連ファイルについて、前記ファイル情報記憶部を検索して、他のマークアップ文書からも呼び出される関連ファイルを特定するファイル特定ステップと、
前記削除要求受付ステップで削除要求を受け付けたマークアップ文書と、前記ファイル特定ステップで特定された関連ファイルを除く前記マークアップ文書から呼び出す関連ファイルを、前記ファイル格納部から削除するファイル削除ステップと、
を実行させるとともに、
新たなマークアップ文書と前記マークアップ文書から呼び出す関連ファイルのアップロードを受け付けるアップロード受付ステップと、
前記アップロード受付ステップでアップロードを受け付けたマークアップ文書から呼び出される関連ファイルについて、他のマークアップ文書から呼び出される関連ファイルに含まれていないか前記ファイル情報記憶部を検索して、他のマークアップ文書から呼び出される関連ファイルに含まれている関連ファイルを特定する第2のファイル特定ステップと、
前記アップロード受付ステップでアップロードを受け付けたマークアップ文書と、前記アップロード受付ステップでアップロードを受け付けた関連ファイルのうち、前記第2のファイル特定ステップで特定された他のマークアップ文書から呼び出される関連ファイルを除く関連ファイルを、前記ファイル格納部に格納する新規ファイル格納ステップと、
を実行させることを特徴とするファイル誤削除防止プログラム。 A file storage unit for storing a markup document for displaying a Web page, a related file called from the markup document, and a file storing information about the related file called from each markup document stored in the file storage unit In a Web server provided with an information storage unit, when deleting a markup document, a file erroneous deletion prevention program for preventing a related file called from another markup document from being deleted by mistake, the Web On the server,
A deletion request reception step for receiving a markup document deletion request;
A file specifying step of searching the file information storage unit for a related file to be called from a markup document that has received a deletion request in the deletion request receiving step, and specifying a related file to be called from another markup document;
A file deletion step of deleting a markup document that has received a deletion request in the deletion request reception step, and a related file to be called from the markup document excluding the related file specified in the file specification step, from the file storage unit;
As well as
An upload reception step for receiving a new markup document and an associated file to be called from the markup document;
For the related file called from the markup document accepted for upload in the upload accepting step, the file information storage unit is searched for whether it is included in the related file called from another markup document. A second file specifying step of specifying a related file included in the related file called from:
Of the markup document accepted in the upload acceptance step and the related file accepted in the upload acceptance step, the related file called from the other markup document identified in the second file identification step A new file storage step of storing the related files to be excluded in the file storage unit;
A program for preventing accidental deletion of files.
マークアップ文書の削除要求を受け付ける削除要求受付ステップと、
前記削除要求受付ステップで削除要求を受け付けたマークアップ文書から呼び出す関連ファイルについて、前記ファイル情報記憶部を検索して、他のマークアップ文書からも呼び出される関連ファイルを特定するファイル特定ステップと、
前記削除要求受付ステップで削除要求を受け付けたマークアップ文書と、前記ファイル特定ステップで特定された関連ファイルを除く前記マークアップ文書から呼び出す関連ファイルを、前記ファイル格納部から削除するファイル削除ステップと、
を実行させるとともに、
新たなマークアップ文書のアップロードを受け付けるアップロード受付ステップと、
前記アップロード受付ステップでアップロードを受け付けたマークアップ文書から呼び出される関連ファイルについて、他のマークアップ文書から呼び出される関連ファイルに含まれていないか前記ファイル情報記憶部を検索して、他のマークアップ文書から呼び出される関連ファイルに含まれていない関連ファイルのアップロードを要求するアップロード要求ステップと、
を実行させることを特徴とするファイル誤削除防止プログラム。 A file storage unit for storing a markup document for displaying a Web page, a related file called from the markup document, and a file storing information about the related file called from each markup document stored in the file storage unit In a Web server provided with an information storage unit, when deleting a markup document, a file erroneous deletion prevention program for preventing a related file called from another markup document from being deleted by mistake, the Web On the server,
A deletion request reception step for receiving a markup document deletion request;
A file specifying step of searching the file information storage unit for a related file to be called from a markup document that has received a deletion request in the deletion request receiving step, and specifying a related file to be called from another markup document;
A file deletion step of deleting a markup document that has received a deletion request in the deletion request reception step, and a related file to be called from the markup document excluding the related file specified in the file specification step, from the file storage unit;
As well as
An upload acceptance step for accepting upload of a new markup document;
For the related file called from the markup document accepted for upload in the upload accepting step, the file information storage unit is searched for whether it is included in the related file called from another markup document. An upload request step for requesting an upload of a related file that is not included in the related file called by
A program for preventing accidental deletion of files.
Webページを表示するためのマークアップ文書と前記マークアップ文書から呼び出す関連ファイルを格納するファイル格納手段と、
前記ファイル格納手段に格納された各々のマークアップ文書から呼び出す関連ファイルに関する情報を記憶したファイル情報記憶手段と、
マークアップ文書の削除要求を受け付ける削除要求受付手段と、
前記削除要求受付手段が削除要求を受け付けたマークアップ文書から呼び出す関連ファイルについて、前記ファイル情報記憶手段を検索して、他のマークアップ文書からも呼び出される関連ファイルを特定するファイル特定手段と、
前記削除要求受付手段が削除要求を受け付けたマークアップ文書と、前記ファイル特定手段が特定した関連ファイルを除く前記マークアップ文書から呼び出す関連ファイルを、前記ファイル格納手段から削除するファイル削除手段と、
新たなマークアップ文書と前記マークアップ文書から呼び出す関連ファイルのアップロードを受け付けるアップロード受付手段と、
前記アップロード受付手段がアップロードを受け付けたマークアップ文書から呼び出されるものの、前記アップロード受付手段がアップロードを受け付けた関連ファイルに含まれていない関連ファイルがある場合は、他のマークアップ文書から呼び出される関連ファイルに含まれていないか前記ファイル情報記憶手段を検索して、他のマークアップ文書から呼び出される関連ファイルにも含まれていない場合は、前記アップロード受付手段がアップロードを受け付けた関連ファイルに含まれていない関連ファイルのアップロードを要求するアップロード要求手段と、
を備えることを特徴とするファイル誤削除防止機能を備えたWebサーバ。 A web server having a file erroneous deletion prevention function that prevents a related file called from another markup document from being deleted by mistake when deleting a markup document,
A file storage means for storing a markup document for displaying a web page and a related file called from the markup document;
File information storage means for storing information about related files to be called from each markup document stored in the file storage means;
A deletion request receiving means for receiving a markup document deletion request;
A file specifying unit that searches the file information storage unit for a related file to be called from a markup document for which the deletion request receiving unit has received a deletion request, and specifies a related file to be called from another markup document;
A markup document for which the delete request receiving means has received a delete request, and a file delete means for deleting from the file storage means a related file called from the markup document excluding the related file specified by the file specifying means;
An upload reception means for receiving a new markup document and an associated file to be called from the markup document;
If there is a related file that is not included in the related file that has been uploaded by the upload receiving means but is received from the markup document that has received the upload, the related file that is called from another markup document If it is not included in the related file called from other markup documents by searching the file information storage means, it is included in the related file accepted by the upload receiving means. An upload request means for requesting upload of a related file that is not
A Web server provided with a function for preventing erroneous file deletion.
Webページを表示するためのマークアップ文書と前記マークアップ文書から呼び出す関連ファイルを格納するファイル格納手段と、
前記ファイル格納手段に格納された各々のマークアップ文書から呼び出す関連ファイルに関する情報を記憶したファイル情報記憶手段と、
マークアップ文書の削除要求を受け付ける削除要求受付手段と、
前記削除要求受付手段が削除要求を受け付けたマークアップ文書から呼び出す関連ファイルについて、前記ファイル情報記憶手段を検索して、他のマークアップ文書からも呼び出される関連ファイルを特定するファイル特定手段と、
前記削除要求受付手段が削除要求を受け付けたマークアップ文書と、前記ファイル特定手段が特定した関連ファイルを除く前記マークアップ文書から呼び出す関連ファイルを、前記ファイル格納手段から削除するファイル削除手段と、
新たなマークアップ文書と前記マークアップ文書から呼び出す関連ファイルのアップロードを受け付けるアップロード受付手段と、
前記アップロード受付手段がアップロードを受け付けたマークアップ文書から呼び出される関連ファイルについて、他のマークアップ文書から呼び出される関連ファイルに含まれていないか前記ファイル情報記憶手段を検索して、他のマークアップ文書から呼び出される関連ファイルに含まれている関連ファイルを特定する第2のファイル特定手段と、
前記アップロード受付手段がアップロードを受け付けたマークアップ文書と、前記アップロード受付手段がアップロードを受け付けた関連ファイルのうち、前記第2のファイル特定手段により特定された他のマークアップ文書から呼び出される関連ファイルを除く関連ファイルを、前記ファイル格納手段に格納する新規ファイル格納手段と、
を備えることを特徴とするファイル誤削除防止機能を備えたWebサーバ。 A web server having a file erroneous deletion prevention function that prevents a related file called from another markup document from being deleted by mistake when deleting a markup document,
A file storage means for storing a markup document for displaying a web page and a related file called from the markup document;
File information storage means for storing information about related files to be called from each markup document stored in the file storage means;
A deletion request receiving means for receiving a markup document deletion request;
A file specifying unit that searches the file information storage unit for a related file to be called from a markup document for which the deletion request receiving unit has received a deletion request, and specifies a related file to be called from another markup document;
A markup document for which the delete request receiving means has received a delete request, and a file delete means for deleting from the file storage means a related file called from the markup document excluding the related file specified by the file specifying means;
An upload reception means for receiving a new markup document and an associated file to be called from the markup document;
The related information called from the markup document accepted by the upload accepting unit is not included in the related file called from another markup document, and the file information storage unit is searched to find another markup document. A second file specifying means for specifying a related file included in the related file called from:
Of the markup document accepted by the upload accepting unit and the related file accepted by the upload accepting unit, a related file called from another markup document identified by the second file identifying unit New file storage means for storing related files to be excluded in the file storage means;
A Web server provided with a function for preventing erroneous file deletion.
Webページを表示するためのマークアップ文書と前記マークアップ文書から呼び出す関連ファイルを格納するファイル格納手段と、
前記ファイル格納手段に格納された各々のマークアップ文書から呼び出す関連ファイルに関する情報を記憶したファイル情報記憶手段と、
マークアップ文書の削除要求を受け付ける削除要求受付手段と、
前記削除要求受付手段が削除要求を受け付けたマークアップ文書から呼び出す関連ファイルについて、前記ファイル情報記憶手段を検索して、他のマークアップ文書からも呼び出される関連ファイルを特定するファイル特定手段と、
前記削除要求受付手段が削除要求を受け付けたマークアップ文書と、前記ファイル特定手段が特定した関連ファイルを除く前記マークアップ文書から呼び出す関連ファイルを、前記ファイル格納手段から削除するファイル削除手段と、
新たなマークアップ文書のアップロードを受け付けるアップロード受付手段と、
前記アップロード受付手段がアップロードを受け付けたマークアップ文書から呼び出される関連ファイルについて、他のマークアップ文書から呼び出される関連ファイルに含まれていないか前記ファイル情報記憶手段を検索して、他のマークアップ文書から呼び出される関連ファイルに含まれていない関連ファイルのアップロードを要求するアップロード要求手段と、
を備えることを特徴とするファイル誤削除防止機能を備えたWebサーバ。 A web server having a file erroneous deletion prevention function that prevents a related file called from another markup document from being deleted by mistake when deleting a markup document,
A file storage means for storing a markup document for displaying a web page and a related file called from the markup document;
File information storage means for storing information about related files to be called from each markup document stored in the file storage means;
A deletion request receiving means for receiving a markup document deletion request;
A file specifying unit that searches the file information storage unit for a related file to be called from a markup document for which the deletion request receiving unit has received a deletion request, and specifies a related file to be called from another markup document;
A markup document for which the delete request receiving means has received a delete request, and a file delete means for deleting from the file storage means a related file called from the markup document excluding the related file specified by the file specifying means;
An upload acceptance means for accepting upload of a new markup document;
The related information called from the markup document accepted by the upload accepting unit is not included in the related file called from another markup document, and the file information storage unit is searched to find another markup document. An upload request means for requesting upload of a related file that is not included in the related file called from,
A Web server provided with a function for preventing erroneous file deletion.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2014259529A JP5943991B2 (en) | 2014-12-22 | 2014-12-22 | Web server with file accidental deletion prevention program and file accidental deletion prevention function |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2014259529A JP5943991B2 (en) | 2014-12-22 | 2014-12-22 | Web server with file accidental deletion prevention program and file accidental deletion prevention function |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2016119011A JP2016119011A (en) | 2016-06-30 |
| JP5943991B2 true JP5943991B2 (en) | 2016-07-05 |
Family
ID=56244298
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2014259529A Active JP5943991B2 (en) | 2014-12-22 | 2014-12-22 | Web server with file accidental deletion prevention program and file accidental deletion prevention function |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5943991B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR102600834B1 (en) * | 2023-08-17 | 2023-11-10 | 주식회사 이든엠 | Website Integrated Management System |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH11259508A (en) * | 1998-03-12 | 1999-09-24 | Fujitsu Ltd | Material management control system |
| JP2001084247A (en) * | 1999-09-13 | 2001-03-30 | Toshiba Corp | Link information management system |
-
2014
- 2014-12-22 JP JP2014259529A patent/JP5943991B2/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| JP2016119011A (en) | 2016-06-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9864736B2 (en) | Information processing apparatus, control method, and recording medium | |
| US9916390B2 (en) | Managing web browser cache for offline browsing | |
| US8655943B2 (en) | Web server providing access to documents having multiple versions | |
| US9251150B2 (en) | Information processing device, information management method, and information processing system | |
| JP6140145B2 (en) | Tenant data recovery across tenant migration | |
| US9875269B1 (en) | Collaborative editing in self-contained single page applications | |
| US20090182739A1 (en) | Using metadata to route documents | |
| US20200125903A1 (en) | Document generation system, method of controlling the same, and non-transitory computer readable medium | |
| US8752168B2 (en) | Non-transitory computer readable medium storing access rights update program, access rights management system, and access rights update method | |
| US20170270031A1 (en) | Information processing apparatus, test execution method, and computer-readable recording medium | |
| KR101659147B1 (en) | Information processing apparatus, and control method therefor | |
| JP2015197810A (en) | Server apparatus, information processing method, and program | |
| JP5943991B2 (en) | Web server with file accidental deletion prevention program and file accidental deletion prevention function | |
| US9898463B2 (en) | Document management server, document management method, and non-transitory storage medium storing program | |
| JP6015546B2 (en) | Information processing apparatus, information processing method, and program | |
| US20130326324A1 (en) | Document management server, document management method, and storage medium | |
| JP6131647B2 (en) | Information processing apparatus, program, and file management system | |
| US20160259810A1 (en) | Global file index | |
| JP6828277B2 (en) | Client devices, information information systems and programs | |
| JP6398368B2 (en) | Information processing apparatus, information processing system, and program | |
| JP5783010B2 (en) | Index management program, index management device, and search system | |
| CN114170044A (en) | Automatic declaring method, device, storage medium and electronic equipment | |
| JP4952119B2 (en) | Content management system, method and program using file server | |
| US20170046197A1 (en) | Enabling native application capabilities based on object capabilities | |
| US11010346B2 (en) | Methods and apparatus for managing access to file content |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20160426 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20160523 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20160524 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 5943991 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |