Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Etherpad widget creation breaks if the pad name is too long #73

Closed
jaywink opened this issue Aug 2, 2019 · 10 comments
Closed

Etherpad widget creation breaks if the pad name is too long #73

jaywink opened this issue Aug 2, 2019 · 10 comments

Comments

@jaywink
Copy link
Member

jaywink commented Aug 2, 2019

Reported at https://github.com/vector-im/riot-web/issues/6039#issuecomment-517270591 by @florianjacob

I experience similar behaviour when when I use etherpad names that are too long: ABCDEFGHIJKLMNOPQRS as pad name, i.e. 20 chars long works just fine, but ABCDEFGHIJKLMNOPQRST, i.e. 21 chars long, break. I do get a 502 bad gateway and the not embeddable banana like in element-hq/element-web#9098, though, not such a padname is forbidden.

@Half-Shot
Copy link
Member

Half-Shot commented Sep 16, 2020

The pad name is based upon the room_id so e.g. padName=!JKJFaFaqxqvnchMjfF:half-shot.uk_lalalala. If you are using matrix.org or half-shot.uk you are probably okay. If you are using vector.modular.im or wibblefibbledibble.ems.host, you're probably screwed.

@jaller94
Copy link

I suggest hashing the room id to get strings of a consistent length.

@Half-Shot
Copy link
Member

The limit is imposed over at https://github.com/ether/etherpad-lite/blob/develop/src/node/db/PadManager.js#L195-L198, should we want to fix it there.

@jaywink
Copy link
Member Author

jaywink commented Oct 1, 2020

Still an issue with etherpad 1.8.6

@fooness
Copy link

fooness commented Oct 24, 2020

As it’s probably impossible to somehow work around this, because there’s no way to access the code of the scalar integration manager, this should please urgently be fixed. It’s a somewhat critical (usability-wise) bug and it’s open for more than a year.

On a side note, defining our own URL per widget manager would even be greater (like it is possible for BigBlueButton).

@emorrp1
Copy link

emorrp1 commented Aug 4, 2021

To flesh this out a little, I created an Etherpad named "Minutes" which gave the below URL. "Widget saved" was shown in green.

https://scalar.vector.im/etherpad/p/!qLhNfILESSCaasbRWB:freedombox.emorrp1.name_Minutes

image

Until you actually go to view that widget in the sidebar, at which point "Sorry, this content is not embeddable in Matrix" is shown with no way to figure out why. Visiting the URL directly says "Such a padname is forbidden" again without saying it's the custom name that's too long.

image

So apparently any rooms first created on my homeserver are forevermore limited to Etherpad names of 6 characters or fewer.

@sim6
Copy link

sim6 commented Dec 14, 2021

What about limit the form input length?

@t3chguy
Copy link
Member

t3chguy commented Dec 14, 2021

Given the ID includes the room ID, a pad name of 0 character could even be too long

@rcastelo
Copy link

Please, I'd appreciate if this bug with Etherpad name length limit is fixed somehow.

@t3chguy t3chguy transferred this issue from element-hq/element-web Jun 13, 2022
@t3chguy t3chguy transferred this issue from element-hq/element-meta Apr 11, 2023
@justinbot
Copy link

Pad names are now UUIDs instead of the room name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants