Jump to content
Lee Mac

403 Forbidden

Recommended Posts

Lee Mac

I'm currently receiving the following message when posting anything which includes code:

 

403.png.298dd33c11a865ab02911168b22c6619.png

 

Is this affecting others or is it just me?

Share this post


Link to post
Share on other sites
BIGAL

Had the same problem yesterday.

Share this post


Link to post
Share on other sites
CADTutor

OK. testing this now...

 

<h1>Hello</h1>
<p>Some sample code</p>

So, that worked. What happens when I try to submit?

Share this post


Link to post
Share on other sites
CADTutor

Ah! I got the same error as you when posting AutoLISP code without syntax highlighting but as you can see above, HTML works fine. Puzzling!

 

I'm going to have to do some investigation...

 

So it looks like the error occurs when any AutoLISP is posted. I've tried in a code block with and without syntax highlighting and outside of a code block. In each case I got the 403 error.

 

There have been no software updates recently, so I'm guessing this must be a server issue.

Share this post


Link to post
Share on other sites
GURU Support

This is a test post - please ignore.

Share this post


Link to post
Share on other sites
GURU Support
(defun DETAIL_0 ()
   (setq SYSVAR_LIST (mapcar '(lambda (X)
     (list X (getvar X)))
     '("CMDECHO"
       "OSMODE"
       "ORTHOMODE"
       "HIGHLIGHT"
      )))
   (setvar "CMDECHO" 0)
   (setvar "OSMODE" 0)
   (setvar "ORTHOMODE" 0)
   (setvar "HIGHLIGHT" 0)
   (if (zerop (getvar "TILEMODE")) ;;make sure we are mspace
      (if (= (getvar "CVPORT") 1) (progn ;;we are in paper space!
         (alert "You must be in Model Space for this routine to function!")
         (exit) ;;hard abort!
      ))
   )
   (if (zerop (getvar "WORLDUCS"))
     (command "_UCS" "_W"))
   nil
)

Share this post


Link to post
Share on other sites
rkmcswain

Testing this here.

 

(defun foo (arg)
 (sin (+ 9 arg))
)

(defun foo (arg)
 (sin (+ 9 arg))
)

Share this post


Link to post
Share on other sites
CADTutor

Hi All, it looks like we've managed to fix this issue but I'd be grateful if you could try posting some code in this thread as a test to ensure it's a robust fix.

 

Thanks

Share this post


Link to post
Share on other sites
CADTutor

Another test...

(defun DETAIL_0 ()
   (setq SYSVAR_LIST (mapcar '(lambda (X)
     (list X (getvar X)))
     '("CMDECHO"
       "OSMODE"
       "ORTHOMODE"
       "HIGHLIGHT"
      )))
   (setvar "CMDECHO" 0)
   (setvar "OSMODE" 0)
   (setvar "ORTHOMODE" 0)
   (setvar "HIGHLIGHT" 0)
   (if (zerop (getvar "TILEMODE")) ;;make sure we are mspace
      (if (= (getvar "CVPORT") 1) (progn ;;we are in paper space!
         (alert "You must be in Model Space for this routine to function!")
         (exit) ;;hard abort!
      ))
   )
   (if (zerop (getvar "WORLDUCS"))
     (command "_UCS" "_W"))
   nil
)

 

Share this post


Link to post
Share on other sites
rkmcswain
1 hour ago, CADTutor said:

Hi All, it looks like we've managed to fix this issue but I'd be grateful if you could try posting some code in this thread as a test to ensure it's a robust fix.

 

Thanks

 

(defun c:Hello ()
  (alert "Hello World")
)

 

(defun c:Hello ()
  (alert "Hello World")
)

 

Share this post


Link to post
Share on other sites
paulmcz

I tried but got 403 forbidden error

Share this post


Link to post
Share on other sites
CADTutor

@paulmcz could you post the code snippet you got the error with as an attachement so we can use it to test?

Share this post


Link to post
Share on other sites
paulmcz

This is a part of what I posted:

 

;;; Measures distance between 2 points, along polyline

(defun c:lm (/ a b d e d1 d2 p pl oecho osn)
  (vl-load-com)
  (command "cmdecho" (getvar "cmdecho"))
 
 

Share this post


Link to post
Share on other sites
paulmcz

In previous post, I copied the whole routine as regular text (without placing it in brackets wrapping) and got the error again. Then, I deleted a half of the routine - got the error. Only when I deleted most of the routine, it went through.

Share this post


Link to post
Share on other sites
Lee Mac

I'm now able to post the code that I previously couldn't here, so the issue appears to be at least partially fixed.

Share this post


Link to post
Share on other sites
Lee Mac

I'm now receiving the 403 error when attempting to post an embedded link to another post on the forum.

Share this post


Link to post
Share on other sites
CADTutor

OK, I also get the 403 error when posting paulmcz's code.

 

Share this post


Link to post
Share on other sites
CADTutor

Testing an embedded link.

 

That seems to work OK...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...