Image processing apparatus, control method, and computer-readable recording medium
By introducing an adaptive control unit into the image processing device, the problem of not being able to automatically log in to the cloud server after the web browser version is upgraded, and the account information managed by the new version of the web browser continues to be used by the old version, improving convenience and user experience.
Patent Information
- Application Number
- CN202411566344.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-11-06
- Filing Date
- 2024-11-05
- Publication Date
- 2025-05-06
AI Technical Summary
After the web browser version of the image processing device is upgraded, the new version of the web browser cannot use the cookie information managed by the old version of the web browser, resulting in users having to manually enter account information, reducing convenience.
By introducing an adaptive control unit into the image processing device, the change in the version of the Web browser is detected, and the account information managed by the old version of the Web browser is transferred to the storage area accessible to the new version of the Web browser, or the processing method of the readout command is changed to ensure that the new version of the Web browser can continue to use the account information.
It has been realized that when the web browser version changes, the new version of the web browser can still automatically log in to the cloud server, avoiding the need for users to manually enter account information and improving the user experience.
Smart Images

Figure CN119946192A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an image processing device, a control method, and a computer-readable recording medium. Background Art
[0002] Cloud services such as Google Drive and OneDrive are becoming more and more popular. These cloud services store the necessary data of users on cloud servers. Therefore, users can use data anytime and anywhere by accessing the cloud servers that provide cloud services.
[0003] In recent years, applications that cooperate with cloud servers have also been installed in image processing devices such as MFPs (Multifunction Peripherals) installed in offices, etc. Therefore, the image processing device can save the required data in the cloud server or obtain the required data from the cloud server as the task is executed. For example, the image processing device can upload and save the image data of the document generated in the scanning task to the cloud server. In addition, the image processing device can also obtain the image data to be printed from the cloud server, execute the printing task and print out.
[0004] For example, a collaborative application that collaborates with a cloud server uses the function of a web browser installed in an image processing device to access the cloud server. For example, the web browser manages the account information used to log in to the cloud server as cookie information (for example, patent document 1). Therefore, when a user logs in to the cloud server for the first time, if the collaborative application accepts the user's input of account information, the web browser uses the account information to access the cloud server. If the cloud server can be logged in, the web browser saves the account information as cookie information. At this time, the web server associates the user information of the user who logs in to the image processing device with the account information used by the user to log in to the cloud server and saves it as cookie information. When accessing the cloud server, the collaborative application specifies the user information of the user who logs in to the image processing device to instruct the web browser to access the cloud server. As a result, the web browser can read the cookie information containing the account information associated with the specified user information and automatically log in to the cloud server. That is, single sign-on (SSO) authentication is implemented when the image processing device accesses the cloud server.
[0005] Patent Document 1: Japanese Patent Application Publication No. 2014-164376
[0006] However, the web browser installed in the image processing device is composed of open source software (OSS) such as Python (registered trademark) and Node.js (registered trademark). Regarding the web browser composed of open source software, anyone can freely remove errors to improve or modify it. Therefore, the web browser installed in the image processing device is sometimes upgraded through the improvement and modification of the source code.
[0007] However, with the version upgrade of the web browser installed in the image processing device, the storage area of the cookie information managed by the web browser and the reading process when the web browser reads the cookie information are sometimes changed. If the storage area of the cookie information and the reading process are changed, the new version of the web browser cannot use the cookie information used by the old version of the web browser. Therefore, the collaborative application cannot automatically log in to the cloud server. As a result, the user must manually enter the account information again, which reduces convenience. Summary of the invention
[0008] The present invention aims to solve the above-mentioned conventional problems and provides an image processing device, a control method, and a computer-readable recording medium that can continue to use account information managed by an old version of the web browser when the version of the web browser is changed.
[0009] In order to achieve the above-mentioned purpose, the invention of technical solution 1 provides an image processing device, characterized in that it comprises: a web browser, which manages account information used to log in to the cloud server; a data sending and receiving unit, which sends and receives data required for the execution of tasks between the above-mentioned cloud server when the above-mentioned web browser uses the above-mentioned account information to log in to the above-mentioned cloud server; and a web browser control unit, which controls the above-mentioned account information managed by the old version of the above-mentioned web browser to a state that can be used by the new version of the above-mentioned web browser when the version of the above-mentioned web browser changes.
[0010] The invention of claim 2 is an image processing device according to claim 1, characterized in that the account information is managed by the web browser as Cookie information.
[0011] The invention of Technical Solution 3 is based on the image processing device of Technical Solution 2, characterized in that the above-mentioned Web browser control unit saves the above-mentioned Cookie information stored in the first storage area by the above-mentioned old version of the above-mentioned Web browser in the second storage area accessed by the above-mentioned new version of the above-mentioned Web browser.
[0012] The invention of claim 4 is an image processing device according to claim 3, characterized in that the web browser control unit further stores the cookie information in an external storage device.
[0013] The invention of technical solution 5 is based on the image processing device of technical solution 2, and is characterized in that after the above-mentioned Web browser control unit outputs the read command of the above-mentioned Cookie information to the above-mentioned new version of the above-mentioned Web browser, if there is no response to the above-mentioned read command from the above-mentioned new version of the above-mentioned Web browser, the processing of outputting the above-mentioned read command is changed.
[0014] The invention of technical solution 6 is based on the image processing device of technical solution 5, and is characterized in that the above-mentioned web browser control unit saves the above-mentioned cookie information saved in the first storage area by the above-mentioned old version of the above-mentioned web browser in the second storage area accessed by the above-mentioned new version of the above-mentioned web browser when there is a response to the above-mentioned read command from the above-mentioned new version of the above-mentioned web browser and when the above-mentioned new version of the above-mentioned web browser cannot obtain the above-mentioned cookie information.
[0015] The invention of Technical Solution 7 is based on the image processing device of Technical Solution 2, and is characterized in that the above-mentioned Web browser control unit changes the encryption processing and decryption processing of the above-mentioned Cookie information when the above-mentioned new version of the above-mentioned Web browser is able to obtain the above-mentioned Cookie information and when the login to the above-mentioned cloud server fails.
[0016] The invention of technical solution 8 provides a control method, which is a control method performed in an image processing device, wherein the image processing device has a web browser that manages account information for logging into a cloud server, and when the web browser logs into the cloud server using the account information, the data required for executing a task is sent and received between the cloud server and the cloud server. The control method is characterized in that it comprises: a detection step for detecting a change in the version of the web browser; and a control step for controlling the account information managed by the old version of the web browser to be usable by the new version of the web browser when a change in the version of the web browser is detected.
[0017] The invention of technical solution 9 provides a computer-readable recording medium having a program recorded thereon, wherein the program is executed in an image processing device, wherein the image processing device has a web browser that manages account information for logging into a cloud server, and when the web browser logs into the cloud server using the account information, the image processing device sends and receives data required for the execution of a task between the cloud server and the computer-readable recording medium. The computer-readable recording medium is characterized in that the program causes the image processing device to execute: a detection step for detecting a change in the version of the web browser; and a control step for controlling the account information managed by the old version of the web browser to be usable by the new version of the web browser when a change in the version of the web browser is detected.
[0018] According to the present invention, in an image processing apparatus, when the version of a web browser is changed, even if a new version of the web browser is used, account information managed by an old version of the web browser can continue to be used. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 This is a diagram showing a conceptual configuration example of a network system including an image processing device.
[0020] Figure 2 This is a block diagram showing an example of the hardware configuration of the image processing device.
[0021] Figure 3 This is a block diagram showing an example of the functional configuration of the control unit.
[0022] Figure 4 This is a block diagram showing an example of the functional configuration of a control unit when a web browser is upgraded to a new version.
[0023] Figure 5 It is a diagram showing an example of control by the adaptive control unit.
[0024] Figure 6 This is a flowchart showing an example of a main processing procedure performed in the image processing device.
[0025] Figure 7 This is a flowchart showing the detailed processing procedure of the automatic login processing.
[0026] Explanation of the figure markings: 1…image processing device; 9…Cookie information (account information); 10…control unit; 16…storage unit; 16a…first storage area; 16b…second storage area; 17…program; 19…browser program; 30…application; 31…Web browser; 32…task control unit; 34…data sending and receiving unit; 35…Web browser control unit; 36…adaptive control unit; 38…Cookie management unit; 40…cloud server. DETAILED DESCRIPTION
[0027] Hereinafter, preferred embodiments related to the present invention will be described in detail with reference to the accompanying drawings. In the embodiments described below, the same reference numerals are given to common elements, and their repeated descriptions are omitted.
[0028] Figure 1 1 is a diagram showing a conceptual configuration example of a network system including an image processing device 1 according to an embodiment of the present invention. The network system includes an image processing device 1, a network 2, and a cloud server 40. The network 2 is a communication network including a local area network such as a LAN (Local Area Network) and a wide area network such as the Internet. The cloud server 40 is provided on a cloud such as the Internet and provides various cloud services. For example, the cloud server 40 provides a storage service for storing data necessary for a user on the cloud.
[0029] The image processing device 1 is configured as an MFP, for example. The image processing device 1 has a plurality of functions such as a scanning function, a printing function, a copying function, and a FAX function, and executes a task specified by a user. The image processing device 1 is provided with a scanner unit 21 at the upper part of the device body. The scanner unit 21 optically reads a manuscript set by a user and generates image data. In addition, the image processing device 1 is provided with a printer unit 22 at the lower part of the device body. The printer unit 22 forms an image on a paper such as printing paper based on the image data to be printed and outputs the image.
[0030] In addition, the image processing device 1 has an operation panel 13 that functions as a user interface on the front surface side of the device body. The operation panel 13 displays various operation screens that can be operated by the user and accepts the user's input operation. For example, if authentication information such as a user ID and a password is input to the operation panel 13, the image processing device 1 performs user authentication. If the user can be identified in the user authentication, the image processing device 1 transfers the operation state from the logout state to the login state. By transferring to the login state, the image processing device 1 becomes a state in which the logged-in user can accept the setting operation and execution instruction of the task. Based on the instruction operation of the logged-in user, the image processing device 1 executes tasks such as scanning tasks, printing tasks, and copying tasks.
[0031] Figure 21 is a block diagram showing an example of the hardware configuration of the image processing apparatus 1. The image processing apparatus 1 includes a control unit 10, an operation panel 13, a storage unit 16, a communication interface 20, a scanner unit 21, a printer unit 22, and a FAX unit 23 as a hardware configuration.
[0032] The control unit 10 controls the operation of the image processing apparatus 1. The control unit 10 includes a hardware processor 11 and a memory 12. The hardware processor 11 reads and executes various programs stored in the storage unit 16. The memory 12 is a volatile storage device that stores temporary data generated when the hardware processor 11 executes a program.
[0033] The operation panel 13 includes a display unit 14 and an operation unit 15. The display unit 14 is composed of, for example, a color liquid crystal display, and displays various operation screens that can be operated by the user. The operation unit 15 is composed of, for example, a touch panel key arranged on the screen of the display unit 14, and receives user operations.
[0034] The storage unit 16 is a non-volatile storage device composed of a hard disk drive (HDD), a solid state drive (SSD), etc. The storage unit 16 stores a program 17 and a browser program 19. The browser program 19 is a program that enables the web browser to function. The program 17 is a program that enables the operation panel 13 to cooperate with the web browser and enables the application program 30 for executing the task specified by the user to function. The program 17 includes a program module 18 composed of JavaScript, etc. The program module 18 outputs various commands to the web browser.
[0035] The communication interface 20 connects the image processing apparatus 1 to the network 2 . The communication interface 20 is an interface for the image processing apparatus 1 to communicate via the network 2 .
[0036] The scanner unit 21 includes an image reading unit 24. The image reading unit 24 generates image data by irradiating an image reading surface of a document with light and reading light reflected from the document for each pixel.
[0037] The printer unit 22 includes an image forming unit 25. The image forming unit 25 forms an image on a sheet of paper using, for example, an electrophotographic method and outputs the image. However, the image forming method of the image forming unit 25 is not limited to the electrophotographic method. For example, the image forming unit 25 may also form an image using an inkjet method.
[0038] The FAX unit 23 is a means for transmitting and receiving FAX data via a public telephone network (not shown).
[0039] Figure 31 is a block diagram showing an example of the functional configuration of the control unit 10. The control unit 10 functions as an application program 30, a web browser 31, and a task control unit 32 by having the hardware processor 11 execute various programs.
[0040] The application 30 cooperates with the operation panel 13 to perform processing based on the user's instruction operation. If the user instructs the execution of a task, the application 30 causes the task control unit 32 to operate to instruct the execution of the task specified by the user. In addition, the application 30 can also cause the Web browser 31 to cooperate with the task control unit 32 to operate. For example, in the case where it is specified that the image data generated by the scanning task is uploaded to the cloud server 40, the application 30 causes the task control unit 32 to execute the scanning task. In addition, the application 30 obtains the image data output from the task control unit 32 and uploads it to the cloud server 40 via the Web browser 31. In addition, for example, in the case where it is specified to download the image data stored in the cloud server 40 and execute the printing task, the application 30 downloads the image data from the cloud server 40 via the Web browser 31. In addition, the application 30 outputs the image data obtained from the cloud server 40 to the task control unit 32 and causes it to execute the printing task.
[0041] The application 30 includes a user authentication unit 33 , a data transmission and reception unit 34 , and a web browser control unit 35 .
[0042] The user authentication unit 33 performs user authentication based on the authentication information input by the user. If the user authentication succeeds and the user can be identified, the application 30 changes the operation state of the image processing device 1 to the logged-in state. If the image processing device 1 changes to the logged-in state, the user authentication unit 33 stores user information related to the logged-in user.
[0043] The data transmission and reception unit 34 transmits and receives data to and from the cloud server 40 via the web browser 31 .
[0044] In addition, the web browser control unit 35 controls the web browser 31. The web browser control unit 35 starts the web browser 31. Furthermore, the web browser control unit 35 causes the web browser 31 to access the cloud server 40. When the logged-in user first accesses the cloud server 40, the web browser 31 obtains a login screen to the cloud server 40. The web browser control unit 35 displays the login screen obtained by the web browser 31 on the display unit 14 of the operation panel 13. Furthermore, the web browser control unit 35 accepts input of account information by the logged-in user. The account information is authentication information for the logged-in user to log in to the cloud server 40, for example, information including a user ID, a password, etc. If the account information is input by the logged-in user, the web browser control unit 35 outputs the account information to the web browser 31. Thus, the web browser 31 logs in to the cloud server 40 using the account information input by the logged-in user. As a result, the application 30 becomes in a state where data required for the execution of a task can be sent and received between the web browser 31 and the cloud server 40.
[0045] If the login to the cloud server 40 is successful, the web browser control unit 35 causes the web browser 31 to manage the cookie information 9 including the account information. The web browser 31 includes a cookie management unit 38. The cookie management unit 38 saves the account information used when logging in to the cloud server 40 as the cookie information 9 and manages it. For example, the cookie management unit 38 saves the cookie information 9 in the first storage area 16a of the storage unit 16 and manages it. In addition, the cookie management unit 38 saves the cookie information 9 in a state of being associated with the user information related to the logged-in user. Therefore, if the cookie management unit 38 determines the logged-in user using the image processing device 1, it can automatically read the cookie information 9 used by the user to access the cloud server 40.
[0046] When the same login user logs in to the cloud server 40 for the second time or later, the web browser control unit 35 uses the cookie information 9 managed by the web browser 31. That is, the web browser control unit 35 instructs the web browser 31 to log in to the cloud server 40 using the cookie information 9. As a result, the web browser 31 reads the cookie information 9 associated with the login user from the storage unit 16, accesses and automatically logs in to the cloud server 40. At this time, the login user does not need to manually input account information such as the user ID and password again. That is, if the image processing device 1 can identify the user in user authentication, it can automatically log in to the cloud server 40 using the cookie information 9. Therefore, single sign-on authentication is implemented in the image processing device 1, reducing the user's operational burden.
[0047] The browser program 19 that enables the web browser 31 to function in the image processing device 1 is composed of, for example, open source software (OSS). Therefore, the browser program 19 is sometimes upgraded by improving or correcting the source code. The image processing device 1 regularly or irregularly monitors whether the version of the browser program 19 stored in the storage unit 16 is updated. In the case of a version update, the image processing device 1 automatically obtains the latest version of the browser program 19 and automatically updates the browser program 19 in the storage unit 16. Therefore, the version of the web browser 31 started in the image processing device 1 is updated.
[0048] When the version of the web browser 31 is updated, the new version of the web browser 31 may not be able to use the cookie information 9 used by the old version of the web browser 31 .
[0049] Figure 4 1 is a block diagram showing an example of the functional configuration of the control unit 10 when the web browser 31 is changed to a new version. Figure 4 In the example shown, the storage area accessed by the new version of the web browser 31 to save or read the cookie information 9 is changed to the second storage area 16b of the storage unit 16. In this case, even if the web browser control unit 35 instructs the web browser 31 to log in to the cloud server 40 using the cookie information 9, the new version of the web browser 31 does not read the cookie information 9. Therefore, the new version of the web browser 31 cannot automatically log in to the cloud server 40.
[0050] In addition, even if the storage area for storing or reading the cookie information 9 is not changed from the old version, the new version of the web browser 31 may not be able to automatically log in to the cloud server 40. For example, the application programming interface (API) for the new version of the web browser 31 to read the cookie information 9 may be changed from the old version of the web browser 31. In this case, the web browser control unit 35 outputs the read command of the cookie information 9 in the same form as the old version. However, since the API is changed, the new version of the web browser 31 cannot interpret the command from the web browser control unit 35 and does not read the cookie information 9. As a result, the new version of the web browser 31 cannot automatically log in to the cloud server 40.
[0051] In addition, the library used by the new version of the web browser 31 to encrypt or decrypt the account information included in the cookie information 9 may be changed. In this case, even if the new version of the web browser 31 decrypts the encrypted account information included in the cookie information 9, it cannot accurately restore the account information. As a result, the new version of the web browser 31 cannot automatically log in to the cloud server 40.
[0052] Therefore, the web browser control unit 35 includes an adaptive control unit 36. The adaptive control unit 36 functions when the web browser 31 is changed from an old version to a new version. The adaptive control unit 36 controls so that the new version of the web browser 31 can automatically log in to the cloud server 40 using the account information included in the cookie information 9 managed by the old version of the web browser 31.
[0053] Figure 5 is a diagram showing an example of control by the adaptive control unit 36. Figure 5 , a case is exemplified in which the storage area accessed by the new version of the web browser 31 for storing or reading the cookie information 9 is changed from the old version. In this case, the adaptive control unit 36 reads the cookie information 9 from the first storage area 16a accessed by the old version of the web browser 31, and stores the cookie information 9 in the second storage area 16b accessed by the new version of the web browser 31. At this time, it is preferred that the adaptive control unit 36 deletes the cookie information 9 stored in the first storage area 16a. The adaptive control unit 36 transfers the cookie information 9 to the second storage area 16b, so that the new version of the web browser 31 can normally read and obtain the cookie information 9 from the second storage area 16b. Therefore, the new version of the web browser 31 can automatically log in to the cloud server 40 using the cookie information 9 used by the old version of the web browser 31.
[0054] In addition, when the API for reading out the cookie information 9 in the new version of the web browser 31 is changed from the old version, the adaptive control unit 36 performs control in accordance therewith. That is, the adaptive control unit 36 changes the processing of the read command of outputting the cookie information 9 so that the command adapted to the changed API can be output. Specifically, the adaptive control unit 36 changes the processing of outputting the read command by rewriting the program module 18 used when outputting the read command of the cookie information 9, or changing it to another program module 18. For example, by changing the API, sometimes an independent variable required for the command when calling the API for making the web browser 31 read out the cookie information 9 is added. In such a case, the adaptive control unit 36 can add the independent variable contained in the read command of the cookie information 9 by changing the processing of the read command of outputting the cookie information 9. As a result, the web browser control unit 35 can output a command that the new version of the web browser 31 can interpret. As a result, the new version of the web browser 31 can automatically log in to the cloud server 40 using the cookie information 9 used by the old version of the web browser 31 based on the command from the web browser control unit 35.
[0055] Furthermore, when the library used when encrypting or decrypting the account information included in the cookie information 9 is changed in the new version of the web browser 31, the adaptive control unit 36 performs control in accordance therewith. That is, the adaptive control unit 36 rewrites the library used by the new version of the web browser 31 when encrypting or decrypting, and changes the encryption process or the decryption process. If the encryption process or the decryption process is changed by the adaptive control unit 36, the new version of the web browser 31 uses the library rewritten by the adaptive control unit 36 to encrypt or decrypt the account information. As a result, the new version of the web browser 31 can accurately restore the encrypted account information included in the cookie information 9, and can automatically log in to the cloud server 40 using the account information.
[0056] Next, the operation of the image processing device 1 will be described. Figure 6 1 is a flowchart showing an example of a process performed in the image processing device 1. The process is performed by executing the program 17 by the hardware processor 11. More specifically, based on Figure 6 The processing in the flowchart shown is mainly performed by the application program 30 of the control unit 10 .
[0057] When the application 30 starts the process, the user authentication unit 33 is first made to function. The user authentication unit 33 waits until the authentication information input by the user is received (step S10). If the user inputs the authentication information (yes in step S10), the user authentication unit 33 performs user authentication (step S11) and determines whether the authentication is successful (step S12). In the case of user authentication failure (no in step S12), the process of the image processing device 1 ends. In contrast, in the case of user authentication success (yes in step S12), the user authentication unit 33 transfers the action state to the login state (step S13). At this time, the user authentication unit 33 determines the login user based on the result of the user authentication.
[0058] Next, the application 30 receives a connection instruction from the logged-in user to the cloud server 40 (step S14 ). Upon receiving the connection instruction to the cloud server 40 , the application 30 causes the web browser control unit 35 to function.
[0059] The web browser control unit 35 activates the web browser 31 in the control unit 10 (step S15 ). The web browser control unit 35 determines whether the access to the cloud server 40 by the logged-in user is the first access (step S16 ).
[0060] In the case of the first access (yes in step S16), the web browser control unit 35 accepts the input operation of the logged-in user for the account information and logs in to the cloud server 40 via the web browser 31 (step S17). If the login to the cloud server 40 is successful, the web browser control unit 35 causes the web browser 31 to save the cookie information 9 containing the account information (step S18). At this time, the web browser control unit 35 notifies the web browser 31 of the user information related to the logged-in user. Therefore, the web browser 31 saves the cookie information 9 in the first storage area 16a in association with the logged-in user. As a result, the account information of each user used to log in to the cloud server 40 is managed by the web browser 31 as the cookie information 9. If the login to the cloud server 40 is successful, the application 30 becomes capable of sending and receiving data between the cloud server 40 via the web browser 31.
[0061] On the other hand, if the login user is not accessing the cloud server 40 for the first time (No in step S16), the web browser control unit 35 performs automatic login processing (step S20). That is, the web browser control unit 35 performs processing for automatically logging into the cloud server 40 using the account information included in the cookie information 9 managed by the web browser 31.
[0062] Figure 71 is a flowchart showing the detailed processing procedure of the automatic login process (step S20). When the web browser control unit 35 starts the automatic login process, it first checks the version of the web browser 31 (step S21). The web browser control unit 35 determines whether the version of the web browser 31 has changed from the version at the last startup (step S22).
[0063] When the version of the web browser 31 is changed (Yes in step S22), the web browser control unit 35 outputs a command to read the cookie information 9 in the same format as the command output to the old version of the web browser 31 (step S23). That is, the same command as that in the old version is output to the new version of the web browser 31. At this time, the web browser control unit 35 instructs to read the cookie information 9 associated with the logged-in user.
[0064] Then, the web browser control unit 35 determines whether there is a response to the read command from the new version web browser 31 (step S24). If there is a response from the new version web browser 31 (yes in step S24), the new version web browser 31 can interpret the read command. On the other hand, if there is no response from the new version web browser 31 (no in step S24), the web browser 31 cannot interpret the read command.
[0065] If there is no response from the web browser 31 (No in step S24), the web browser control unit 35 causes the adaptive control unit 36 to function. The adaptive control unit 36 changes the process of outputting the read command of the cookie information 9 (step S25). As a result, the web browser control unit 35 can output the read command that the new version of the web browser 31 can interpret. If the process of outputting the read command is changed by the adaptive control unit 36, the web browser control unit 35 performs the process of step S23 again. At this time, the new version of the web browser 31 can normally interpret the read command from the web browser control unit 35, so a response is output to the web browser control unit 35, and the process of reading the cookie information 9 is performed.
[0066] When there is a response from the web browser 31 (YES in step S24 ), the web browser control unit 35 determines whether the web browser 31 can read the cookie information 9 normally (step S26 ).
[0067] When the new version of the Web browser 31 cannot read the Cookie information 9 (No in step S26), the Cookie information 9 is not stored in the storage area accessed by the Web browser 31. In this case, the Web browser control unit 35 causes the adaptive control unit 36 to function. The adaptive control unit 36 determines the first storage area 16a where the old version of the Web browser 31 stores the Cookie information 9 and the second storage area 16b accessed by the new version of the Web browser 31 (step S27). If the first storage area 16a and the second storage area 16b are determined, the adaptive control unit 36 copies or moves the Cookie information 9 stored in the first storage area 16a to the second storage area 16b (step S28). If the Cookie information 9 is stored in the second storage area 16b by the adaptive control unit 36, the Web browser control unit 35 executes the processing after step S23 again. At this time, the new version of the Web browser 31 can normally read the Cookie information 9 from the second storage area 16b. Furthermore, the new version of the Web browser 31 executes processing for logging into the cloud server 40 using the account information included in the Cookie information 9 read out from the second storage area 16 b .
[0068] When the new version of the web browser 31 can read the cookie information 9 normally (YES in step S26 ), the web browser control unit 35 determines whether the login to the cloud server 40 is successful (step S29 ).
[0069] In the case where the login to the cloud server 40 fails (No in step S29), the web browser control unit 35 determines that the encryption or decryption of the account information included in the cookie information 9 has failed. In this case, the web browser control unit 35 causes the adaptive control unit 36 to function. The adaptive control unit 36 changes the encryption process or decryption process used by the newer version of the web browser 31 when encrypting or decrypting the account information included in the cookie information 9. For example, the adaptive control unit 36 rewrites the library used by the new version of the web browser 31 when encrypting or decrypting, and changes the encryption process or decryption process. If the encryption process or decryption process is changed by the adaptive control unit 36, the new version of the web browser 31 uses the library rewritten by the adaptive control unit 36 to encrypt or decrypt the account information. Therefore, the new version of the web browser 31 can accurately restore the encrypted account information included in the cookie information 9.
[0070] If the encryption process or the decryption process is changed by the adaptive control unit 36, the web browser control unit 35 executes the process after step S23 again. At this time, the new version of the web browser 31 decrypts the account information included in the cookie information 9 with the changed decryption process. In addition, the new version of the web browser 31 executes a process for logging in to the cloud server 40 using the decrypted account information. In this case, since the account information is normally decrypted, the new version of the web browser 31 can automatically log in to the cloud server 40 using the account information used by the old version of the web browser 31 (Yes in step S29).
[0071] On the other hand, if the version of the web browser 31 has not changed from the version at the last startup (No in step S22), the web browser control unit 35 outputs a command to read the cookie information 9 to the web browser 31 as before (step S31). At this time, the web browser control unit 35 instructs the reading of the cookie information 9 associated with the logged-in user. If the version of the web browser 31 has not changed, the web browser 31 can read the cookie information 9 normally. Therefore, the web browser 31 can automatically log in to the cloud server 40 using the account information included in the cookie information 9. The above is the end of the automatic login process.
[0072] When the automatic login to the cloud server 40 is successful through the automatic login process (step S20 ), the application 30 becomes capable of transmitting and receiving data with the cloud server 40 via the web browser 31 .
[0073] Then, the application 30 enables the data transmission and reception unit 34 to function. The data transmission and reception unit 34 transmits and receives data required for the execution of the task between the web browser 31 and the cloud server 40. For example, when image data to be printed is obtained from the cloud server 40, the data transmission and reception unit 34 outputs the image data to the task control unit 32. Thus, the image processing device 1 executes the print task based on the image data obtained from the cloud server 40. In addition, when image data generated by a scan task is obtained from the task control unit 32, the data transmission and reception unit 34 transmits and uploads the image data to the cloud server 40. Thus, as a series of actions in the scan task, the image processing device 1 can automatically upload the image data to the cloud server 40.
[0074] As described above, the image processing device 1 of the present embodiment includes a web browser 31, a data transmission and reception unit 34, and a web browser control unit 35. The web browser 31 manages account information for logging into the cloud server 40. In addition, when the web browser 31 uses the account information to log into the cloud server 40, the data transmission and reception unit 34 transmits and receives data required for the execution of a task between the cloud server 40. When the version of the web browser 31 changes, the web browser control unit 35 controls the account information managed by the old version of the web browser 31 to be usable by the new version of the web browser 31. Therefore, when the version of the web browser 31 changes, the image processing device 1 of the present embodiment can continue to use the account information managed by the old version of the web browser 31 by the new version of the web browser 31. Therefore, even when the version of the web browser 31 changes, the user does not need to manually input the account information for logging into the cloud server 40 again.
[0075] The preferred embodiments of the present invention have been described above. However, the present invention is not limited to the contents described in the above embodiments. That is, the present invention can apply various modifications to the above embodiments.
[0076] For example, the above-mentioned web browser control unit 35 may also save the cookie information 9 managed by the web browser 31 as a backup in an external storage device. In this case, the external storage device is, for example, a storage device provided in a local area network such as a LAN to which the image processing device 1 is connected. In addition, the external storage device may also be a cloud storage provided in the cloud. In this case, when the version of the web browser 31 changes, the web browser control unit 35 can obtain the cookie information 9 from the external storage device and save the cookie information 9 in a storage area accessed by the new version of the web browser 31. For example, when the version of the web browser 31 is upgraded, the cookie information 9 is sometimes deleted from the first storage area 16a managed by the old version of the web browser 31. Even when the cookie information 9 is deleted from the first storage area 16a when the version is upgraded, the web browser control unit 35 can restore the cookie information 9 from the external storage device. Therefore, the new version of the web browser 31 can continue to use the previous cookie information 9.
[0077] For example, when the web browser control unit 35 copies or moves the cookie information 9 stored in the first storage area 16a to the second storage area 16b, the cookie information 9 is stored in an external storage device as a backup. Thus, the web browser control unit 35 can restore the cookie information 9 from the external storage device when the version is upgraded later.
[0078] In the above embodiment, the image processing device 1 is configured as an MFP and is an apparatus having multiple functions such as a scanning function, a printing function, a copying function, and a FAX function. However, the image processing device 1 is not limited to being configured as an MFP. That is, the image processing device 1 can be any device as long as it is equipped with a web browser 31.
[0079] In addition, the example in which the program 17 described in the above embodiment is pre-stored in the image processing device 1 is illustrated. However, the program 17 is not limited to being pre-stored in the image processing device 1. For example, the program 17 may be processed by itself. In this case, the program 17 may be provided in a manner that can be downloaded to the image processing device 1 via the network 2 such as the Internet. In addition, the program 17 may be provided in a state recorded in a computer-readable recording medium such as a CD-ROM or a USB memory.
Claims
1. An image processing device, characterized in that: have: Web browser, to manage account information used to log in to the cloud server; a data sending and receiving unit, which sends and receives data required for executing a task between the cloud server and the web browser when the web browser logs in to the cloud server using the account information; as well as When the version of the web browser is changed, the web browser control unit controls the account information managed by the old version of the web browser so that the account information can be used by the new version of the web browser.
2. The image processing device according to claim 1, characterized in that The account information is managed by the web browser as Cookie information.
3. The image processing device according to claim 2, characterized in that: The web browser control unit stores the cookie information stored in the first storage area by the old version of the web browser in the second storage area accessed by the new version of the web browser.
4. The image processing device according to claim 3, characterized in that: The web browser control unit also stores the cookie information in an external storage device.
5. The image processing device according to claim 2, characterized in that: After outputting the read command of the cookie information to the new version of the web browser, the web browser control unit changes a process of outputting the read command if there is no response to the read command from the new version of the web browser.
6. The image processing device according to claim 5, characterized in that: When there is a response to the read command from the new version of the Web browser and the new version of the Web browser cannot obtain the Cookie information, the Web browser control unit saves the Cookie information stored in the first storage area by the old version of the Web browser in a second storage area accessed by the new version of the Web browser.
7. The image processing device according to claim 2, characterized in that: The web browser control unit changes encryption processing and decryption processing of the cookie information when the new version of the web browser can acquire the cookie information and when login to the cloud server fails.
8. A control method, performed in an image processing device, the image processing device having a web browser for managing account information for logging into a cloud server, and sending and receiving data required for executing a task between the cloud server and the web browser when the web browser logs into the cloud server using the account information, wherein the control method comprises: A detection step, detecting whether the version of the Web browser has changed; and The control step controls the account information managed by the old version of the Web browser to be usable by the new version of the Web browser when a version change of the Web browser is detected.
9. The control method according to claim 8, characterized in that: The account information is managed by the web browser as Cookie information.
10. The control method according to claim 9, characterized in that: In the control step, the Cookie information stored in the first storage area by the old version of the Web browser is stored in the second storage area accessed by the new version of the Web browser.
11. The control method according to claim 10, characterized in that: In the control step, the Cookie information is also stored in an external storage device.
12. The control method according to claim 9, characterized in that: In the control step, after a command to read out the cookie information is output to the new version of the Web browser, if there is no response to the read out command from the new version of the Web browser, a process of outputting the read out command is changed.
13. The control method according to claim 12, characterized in that: In the control step, when there is a response to the read command from the new version of the Web browser and the new version of the Web browser cannot obtain the Cookie information, the Cookie information saved in the first storage area by the old version of the Web browser is saved in the second storage area accessed by the new version of the Web browser.
14. The control method according to claim 9, characterized in that: In the control step, when the new version of the Web browser can acquire the cookie information and when the login to the cloud server fails, the encryption process and the decryption process of the cookie information are changed.
15. A computer-readable recording medium having a program recorded thereon, the program being executed in an image processing device, the image processing device having a web browser for managing account information for logging into a cloud server, and sending and receiving data required for executing a task to and from the cloud server when the web browser logs into the cloud server using the account information, the computer-readable recording medium being characterized in that: The program causes the image processing device to execute: A detection step, detecting whether the version of the Web browser has changed; and The control step controls the account information managed by the old version of the Web browser to be usable by the new version of the Web browser when a version change of the Web browser is detected.
16. The computer-readable recording medium according to claim 15, wherein: The account information is managed by the web browser as Cookie information.
17. The computer-readable recording medium according to claim 16, wherein: In the control step, the Cookie information stored in the first storage area by the old version of the Web browser is stored in the second storage area accessed by the new version of the Web browser.
18. The computer-readable recording medium according to claim 17, wherein: In the control step, the Cookie information is also stored in an external storage device.
19. The computer-readable recording medium according to claim 16, wherein: In the control step, after a command to read out the cookie information is output to the new version of the Web browser, if there is no response to the read out command from the new version of the Web browser, a process of outputting the read out command is changed.
20. The computer-readable recording medium according to claim 19, wherein: In the control step, when there is a response to the read command from the new version of the Web browser and the new version of the Web browser cannot obtain the Cookie information, the Cookie information saved in the first storage area by the old version of the Web browser is saved in the second storage area accessed by the new version of the Web browser.
21. The computer-readable recording medium according to claim 16, wherein: In the control step, when the new version of the Web browser can acquire the cookie information and when the login to the cloud server fails, the encryption process and the decryption process of the cookie information are changed.
Citation Information
Patent Citations
Image forming apparatus, control method of the same, and program
JP2014164376A