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

Error preventing posting - related to domador <li>? #113

Open
jywarren opened this issue Oct 27, 2017 · 4 comments
Open

Error preventing posting - related to domador <li>? #113

jywarren opened this issue Oct 27, 2017 · 4 comments
Labels

Comments

@jywarren
Copy link
Member

jywarren commented Oct 27, 2017

When posting some bulleted content copied from this post, into a "new question" at https://publiclab.org/questions/new, I'm seeing this error on hitting "publish":

Uncaught RangeError: Invalid array length
    at many (PublicLab.Editor.js:4333)
    at padLeft (PublicLab.Editor.js:4337)
    at Domador.li (PublicLab.Editor.js:4453)

That's for this line, in Domador:

function many (text, times) {
  return new Array(times + 1).join(text);
}

To reproduce, try pasting the bullet points from the above-linked post and hitting publish; I was able to get it to happen again, but perhaps the exact circumstances are not simple.

@jywarren jywarren added the bug label Oct 27, 2017
@rexagod
Copy link
Member

rexagod commented Feb 1, 2019

@jywarren What exactly did you copy?

@SidharthBansal
Copy link
Member

PUBLISHED to GCI dashboard

@VladimirMikulic
Copy link
Contributor

@jywarren I guess your circumstances differ from the "normal" ones.
I am unable to reproduce the issue.

@VladimirMikulic
Copy link
Contributor

@jywarren what's the current status of this issue, are you still able to reproduce it?
This is a very old issue and a button has changed to "Ask" instead of "Publish".

SidharthBansal pushed a commit to publiclab/plots2 that referenced this issue Jan 20, 2020
* ADD: Post question system tests

Tests:
 - posting a question (publiclab/PublicLab.Editor#113)
 - form validation messages

* FIX: wiki revisions test from post_test.rb
NitinBhasneria pushed a commit to NitinBhasneria/plots2 that referenced this issue Jan 21, 2020
* ADD: Post question system tests

Tests:
 - posting a question (publiclab/PublicLab.Editor#113)
 - form validation messages

* FIX: wiki revisions test from post_test.rb
vinitshahdeo pushed a commit to vinitshahdeo/plots2 that referenced this issue Feb 1, 2020
* ADD: Post question system tests

Tests:
 - posting a question (publiclab/PublicLab.Editor#113)
 - form validation messages

* FIX: wiki revisions test from post_test.rb
NitinBhasneria pushed a commit to NitinBhasneria/plots2 that referenced this issue Feb 5, 2020
* ADD: Post question system tests

Tests:
 - posting a question (publiclab/PublicLab.Editor#113)
 - form validation messages

* FIX: wiki revisions test from post_test.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants