RickdeJager / cupshax

220 stars 55 forks source link

Windows ippserver looks have somethings wrong handle_postscript Method not implemented #1

Closed zhefox closed 1 month ago

zhefox commented 1 month ago

[+] Starting IPP server on 192.168.8.1:8631...

Exception occurred during processing of request from ('192.168.8.134', 54764) Traceback (most recent call last): File "C:\Users\ZHEFOX\AppData\Local\Programs\Python\Python310\lib\socketserver.py", line 683, in process_request_thread self.finish_request(request, client_address) File "C:\Users\ZHEFOX\AppData\Local\Programs\Python\Python310\lib\socketserver.py", line 360, in finish_request self.RequestHandlerClass(request, client_address, self) File "C:\Users\ZHEFOX\AppData\Local\Programs\Python\Python310\lib\socketserver.py", line 747, in init self.handle() File "C:\Users\ZHEFOX\AppData\Local\Programs\Python\Python310\lib\http\server.py", line 433, in handle self.handle_one_request() File "C:\Users\ZHEFOX\AppData\Local\Programs\Python\Python310\lib\http\server.py", line 421, in handle_one_request method() File "C:\Users\ZHEFOX\AppData\Local\Programs\Python\Python310\lib\site-packages\ippserver\server.py", line 101, in do_POST self.handle_ipp() File "C:\Users\ZHEFOX\AppData\Local\Programs\Python\Python310\lib\site-packages\ippserver\server.py", line 140, in handle_ipp ipp_response = self.server.behaviour.handle_ipp( File "C:\Users\ZHEFOX\AppData\Local\Programs\Python\Python310\lib\site-packages\ippserver\behaviour.py", line 71, in handle_ipp return command_function(ipp_request, postscript_file) File "C:\Users\ZHEFOX\AppData\Local\Programs\Python\Python310\lib\site-packages\ippserver\behaviour.py", line 163, in operation_print_job_response self.handle_postscript(req, psfile) File "C:\Users\ZHEFOX\AppData\Local\Programs\Python\Python310\lib\site-packages\ippserver\behaviour.py", line 410, in handle_postscript raise NotImplementedError NotImplementedError

RickdeJager commented 1 month ago

I added a dummy handle_postscript method, although I could not reliably reproduce the error on Windows.