fanglingsu / vimb

Vimb - the vim like browser is a webkit based web browser that behaves like the vimperator plugin for the firefox and usage paradigms from the great editor vim. The goal of vimb is to build a completely keyboard-driven, efficient and pleasurable browsing-experience.
https://fanglingsu.github.io/vimb/
GNU General Public License v3.0
1.34k stars 100 forks source link

Can not upload picture/video to websites i.e twitter /linkedin et al #643

Open unixbhaskar opened 3 years ago

unixbhaskar commented 3 years ago
bhaskar@ArchLinux_07:15:35_Mon Nov 02:~>vimb --bug-info
Version:         3.6.0-23-ga6149298483a
WebKit compile:  2.28.4
WebKit run:      2.30.2
GTK compile:     3.24.22
GTK run:         3.24.23
libsoup compile: 2.70.0
libsoup run:     2.72.0
Extension dir:   /home/bhaskar/lib/vimb

Steps to reproduce

Go to any site i.e twitter and linkedin and try to upload any picture and it fails to upload.

Expected behaviour

Should be able to upload the picture /videos to any sites.

Actual behaviour

Not sure bout that.

iamleot commented 3 years ago

Bhaskar Chowdhury writes:

[...]

Steps to reproduce

Go to any site i.e twitter and linkedin and try to upload any picture and it fails to upload.

Expected behaviour

Should be able to upload the picture /videos to any sites.

Actual behaviour

Not sure bout that. [...]

Do you know any website that possibly doesn't need an account in order to be reproduced? (in that's way that easier to possibly retry it)

Have you tried also with other WebKitGTK web browsers?

unixbhaskar commented 3 years ago

Have you tried also with other WebKitGTK web browsers?

Tried other browsers and it worked perfectly fine with them. Wondering what is causing that to prohibit to upload picture/videos to those sites.

I have tried several times on those mentioned sites...but not worked ...kinda bemused ...wondering....

iamleot commented 3 years ago

Which other browsers exactly? Were there WebKitGTK based ones?

(Sorry to be picky but one of the easiest way to possibly bisect if a problem is specific to vimb or general to WebKitGTK is just to test other WebKitGTK browsers, and that could also possibly help to figure out a possible option accidentally enabled or disabled in vimb.)

unixbhaskar commented 3 years ago

Which other browsers exactly? Were there WebKitGTK based ones?

(Sorry to be picky but one of the easiest way to possibly bisect if a problem is specific to vimb or general to WebKitGTK is just to test other WebKitGTK browsers, and that could also possibly help to figure out a possible option accidentally enabled or disabled in vimb.)

Well, thanks for being picky, and I won't mind if you care something ...you should be.

Anyway , I have tried one more time and it seems working on Gentoo ....

Look like the Slackware stuff is broken or I messed it up with my naivetee ...but clean build and install on Slackware is necessary and I was bringing all sort of the packages to satisfy things... my install probably broken too.

Anyway, I tried it on twitter and it's working...so that behavior is distro specific and speicific to my install.

My apology if my throwback create unnecessary noise....

..also , I have common place (think of it like local nfs) , where I want to install it , becasue I do use 5 specifc distros and want this stuff to be up and running ...which I did for other stuff...

Wild expectation..curse me for that...but that is ...can we fuse a "specific version" of webkit bundled with vimb to operate on??

I know ..I know it sounds insane and lots of overhead will be there to maintain it. Two differnet base ...to maintain ...so many other thing ...but this is my utopian view ...becasue I seem to started to liking vimb ...

unixbhaskar commented 3 years ago

Well, I am still stuck at : "Just can not upload any file to the web" ....any clue??? I have read through the man pages , two thing happens ...either it skips my understanding to translate information about this specific problem and that is not there .

Whatever the case ...kindly let me know ...how to solve this stuff ??

iamleot commented 3 years ago

That's probably a WebKitGTK issue and if you are using the one packaged with your favourite package system it's probably a good idea to ask for possible help there.

Also, can you please try that with other WebKitGTK browsers (not vimb) to further check that? (in your previous comment you haven't shared which browsers you have tried) At least WebKitGTK has MiniBrowser that's probably available as /usr/libexec/webkit2gtk-4.0/MiniBrowser or similar.

Hope this help!

unixbhaskar commented 3 years ago

That's probably a WebKitGTK issue and if you are using the one packaged with your favourite package system it's probably a good idea to ask for possible help there.

Also, can you please try that with other WebKitGTK browsers (not vimb) to further check that? (in your previous comment you haven't shared which browsers you have tried) At least WebKitGTK has MiniBrowser that's probably available as /usr/libexec/webkit2gtk-4.0/MiniBrowser or similar.

Hope this help!

I have tried on suckless's surf and it works!

iamleot commented 3 years ago

Bhaskar Chowdhury writes:

I have tried on suckless's surf and it works!

Cool, then it's a vimb problem and not a WebKitGTK general one.

How vimb was built and installed?

unixbhaskar commented 3 years ago

Bhaskar Chowdhury writes: I have tried on suckless's surf and it works! Cool, then it's a vimb problem and not a WebKitGTK general one. How vimb was built and installed?

Built out of git repo.

iamleot commented 3 years ago

Sorry, I meant, which exact make invocations? (one thing that could go wrong is that lib/vimb/webext_main.so isn't/couldn't picked up, I'm not sure if the symptoms you are seeing can be related (I recall not being able to use hjkl navigation in such cases))

unixbhaskar commented 3 years ago

Sorry, I meant, which exact make invocations? (one thing that could go wrong is that lib/vimb/webext_main.so isn't/couldn't picked up, I'm not sure if the symptoms you are seeing can be related (I recall not being able to use hjkl navigation in such cases))

I have 2 copies(which I intetionally made, once I figured out this problem) ,one in $HOME/lib/ the second one in .local/lib64/vimb

Wondering what is prohibiting that file upload to those sites!! and it is happening persistently ...

how to capture the specific log...any clue???? there is debug flag , but those are something else ...

fanglingsu commented 3 years ago

@unixbhaskar There is no debug flag that would help you to dig into the issue. I can upload files to https://viljamis.com/filetest/. Maybe you could open the webinspector by gf, select the "network" tab and check the "Preserve log" and upload the file. You should see a POST request with the mime data. You could also try to run vimb from the cli so you would see if there are warnings written to stdout or stderr. Maybe vimb is not allowed to access the file you want to upload or something else.

unixbhaskar commented 3 years ago

You could also try to run vimb from the cli so you would see if there are warnings written to stdout or stderr. Maybe vimb is not allowed to access the file you want to upload or something else.

That was an instinctive reaction when I first encounter this hindrance. Alas! nothing shows up.

Hunting down other method to go around ....but will give it a shot at the first option you mentioned ....well , trying the first option on another tab ..shows the box turns green but nothing happening other than that...means once pushed the "upload" button on that page after attaching a file ....in fact serveral files one by one from different location from the file system....bwildered!! and bemused ....

unixbhaskar commented 3 years ago

First method shows me these:

` tipjar test script version 1.2 REMOTE_HOST translates to 0.0.0.0.unregistered

this is the environment:

SCRIPT_NAME is /cgi-bin/test SERVER_NAME is www.tipjar.com SERVER_ADMIN is catnip-admin@davidnicol.com HTTP_ACCEPT_ENCODING is gzip, deflate HTTP_CONNECTION is Keep-Alive REQUEST_METHOD is POST CONTENT_LENGTH is 95342 HTTP_ACCEPT is text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 SCRIPT_FILENAME is /vhosts/www.tipjar.com/cgi-bin/test HTTP_ORIGIN is https://viljamis.com SERVER_SOFTWARE is Apache/2.2.11 (Unix) QUERY_STRING is REMOTE_PORT is 46754 HTTP_USER_AGENT is Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.0 Safari/605.1.15 vimb/3.6.0-23-ga6149298483a SERVER_PORT is 80 SERVER_SIGNATURE is HTTP_UPGRADE_INSECURE_REQUESTS is 1 HTTP_ACCEPT_LANGUAGE is en-US REMOTE_ADDR is 138.199.10.68 CONTENT_TYPE is multipart/form-data; boundary=----WebKitFormBoundaryZfdL40YduGjp0Wcm SERVER_PROTOCOL is HTTP/1.1 PATH is protected by TipJar.com security REQUEST_URI is /cgi-bin/test GATEWAY_INTERFACE is CGI/1.1 SERVER_ADDR is 64.62.228.52 DOCUMENT_ROOT is protected by TipJar.com security HTTP_HOST is www.tipjar.com UNIQUE_ID is X7h93kA@5DQAABgwVO0AAAAD

this is the standard input:

------WebKitFormBoundaryZfdL40YduGjp0Wcm Content-Disposition: form-data; name="image"; filename="babbage.png" Content-Type: image/png �PNG  IHDR����̀PLTE  !!!"""###$$$%%%&&&'''((()))**+++,,,---...///000111222333444555666777888999:::;;;<<<===>>>???@@@AAABBBCCCDDDEEEFFFGGGHHHIIIJJJKKKLLLMMMNNNOOOPPPQQQRRRSSSTTTUUUVVVWWWXXXYYYZZZ[[[\]]]^^^___```aaabbbcccdddeeefffggghhhiiijjjkkklllmmmnnnooopppqqqrrrssstttuuuvvvwwwxxxyyyzzz{{{|||}}}~~~�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������]} IDATx�Խ�[�6���^߹�٣"t���9G�T�9��1�(� &%+ "J�9H� �M�9���=IG�����k�]�Y�^O(������r}�)�����˷H�����%L�l� �r.g>���z�}�a5��a)�*6�J��I�PQ���'VI8�<��D����1�����֌h>�Ue�����a{ynnT;�#����|���Y�j4V�pCC��=�����[NwkL�uu |YbD����?�~�ŧ$6uN~Ԯ�����κ�����pX,ڡ��� u���:�;�����aժ5%

`

That geberish continues for few pages , which I didn't copy here ...but wait...I am seeing something inside the gebberish ...do you?? It saying something about WebKit....take a close look ... @fanglingsu @iamleot

I am blindingly assuming so many things...which chances are bloody off beat and simply not related ...please throw some light.

Sorry about the noise ...

fanglingsu commented 3 years ago

@unixbhaskar This looks pretty normal to me. The ------WebKitFormBoundaryZfdL40YduGjp0Wcm is only a pseudo random marker to divide multiple files from another in the POST.

unixbhaskar commented 3 years ago

@unixbhaskar This looks pretty normal to me. The ------WebKitFormBoundaryZfdL40YduGjp0Wcm is only a pseudo random marker to divide multiple files from another in the POST.

@fanglingsu Okay, how do we fix this Daniel??? I have hover on the source file ...it seems exact declaration for doing that kind of stuff missed me. Probably due to my lack of my understanding.

Mind nailing it down???

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had activity within the last 60 days.